IRC (Internet Relay Chat) protocol library for Python. Provides client and server implementations. Current version: 20.5.0. Release cadence: irregular, a few times per year.
Install & Compatibility
Where this runs
tested against v20.5.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 37.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.7s · import 0.000s · 38MB
36MB installed
● package 36MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
from irc.client import IRCClient
from irc import contextlib
Basic IRC bot connecting to Libera.Chat and printing messages.
import irc.client
import os
server = 'irc.libera.chat'
port = 6667
nick = 'MyBot'
class MyClient(irc.client.SimpleIRCClient):
def on_welcome(self, connection, event):
connection.join('#testchannel')
def on_pubmsg(self, connection, event):
print(f"{event.source.nick}: {event.arguments[0]}")
client = MyClient()
client.connect(server, port, nick)
client.start()
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.