A simple asyncio.Protocol implementation designed for IRC
Project description
async-irc
An implementation of asyncio.Protocol for IRC
Using the library
- You can install the library using pip:
pip install async-irc
Example
import asyncio
from asyncirc.protocol import IrcProtocol
from asyncirc.server import Server
loop = asyncio.get_event_loop()
servers = [
Server("irc.example.org", 6697, True),
Server("irc.example.com", 6667),
]
async def log(conn, message):
print(message)
async def main():
conn = IrcProtocol(servers, "BotNick", loop=loop)
conn.register_cap('userhost-in-names')
conn.register('*', log)
await conn.connect()
await asyncio.sleep(24 * 60 * 60)
try:
loop.run_until_complete(main())
finally:
loop.stop()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file async_irc-0.3.0.tar.gz.
File metadata
- Download URL: async_irc-0.3.0.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dac1e069659cd61000c460998c43c3af68407d8700fa1bf6a04b449d2f2743d
|
|
| MD5 |
77fa8c470bc22dcc69c8bb825e364e20
|
|
| BLAKE2b-256 |
8a447318235330f645380860028c932e678410dc17f50f62b91b5b36d410d7a8
|
Provenance
The following attestation bundles were made for async_irc-0.3.0.tar.gz:
Publisher:
python-publish.yml on TotallyNotRobots/async-irc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
async_irc-0.3.0.tar.gz -
Subject digest:
7dac1e069659cd61000c460998c43c3af68407d8700fa1bf6a04b449d2f2743d - Sigstore transparency entry: 678293584
- Sigstore integration time:
-
Permalink:
TotallyNotRobots/async-irc@878bc4aa1cccaae4830bac8a26d1d3e59e8fd069 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/TotallyNotRobots
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@878bc4aa1cccaae4830bac8a26d1d3e59e8fd069 -
Trigger Event:
push
-
Statement type:
File details
Details for the file async_irc-0.3.0-py3-none-any.whl.
File metadata
- Download URL: async_irc-0.3.0-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed161a76f70222dd992a30879d57fdcf773e3a9a151f6bf1981257bcb0f73341
|
|
| MD5 |
54d2913585e60cb3fac864e0aaed7a84
|
|
| BLAKE2b-256 |
f8dd7928b1f9132f7b97e6855ad4ded6f61d23118e2ccc0548e5e5f9a897988f
|
Provenance
The following attestation bundles were made for async_irc-0.3.0-py3-none-any.whl:
Publisher:
python-publish.yml on TotallyNotRobots/async-irc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
async_irc-0.3.0-py3-none-any.whl -
Subject digest:
ed161a76f70222dd992a30879d57fdcf773e3a9a151f6bf1981257bcb0f73341 - Sigstore transparency entry: 678293601
- Sigstore integration time:
-
Permalink:
TotallyNotRobots/async-irc@878bc4aa1cccaae4830bac8a26d1d3e59e8fd069 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/TotallyNotRobots
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@878bc4aa1cccaae4830bac8a26d1d3e59e8fd069 -
Trigger Event:
push
-
Statement type: