Registry / communication / irc

irc

JSON →
library20.5.0pypypiunverified

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.

communicationhttp-networking
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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 37.2MB
glibc
py 3.103.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
from irc import metadata

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()
Debug
Known footguns
breakingIn v20.0.0, the `irc.client` module was restructured. `irc.client.IRC` is now `irc.client.IRCClient`. Old imports break.
breakingIn v20.0.0, `on_join`, `on_part`, etc. callbacks now receive `connection` and `event` arguments (previously different).
gotchaThe library uses Python's `select` module by default, which does not support Windows' socket behaviour. On Windows, it may hang or fail.
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.

Agent activity
15 hits · last 30 days
gptbot
4
ahrefsbot
3
claudebot
3
amazonbot
2
script
1
Resources