pyrcb2
pyrcb2 is an asyncio-based library for writing IRC bots. It is designed to be easy to use, customizable, and high-level.
pyrcb2 includes features such as account tracking, user prefix tracking (voice, op, etc.), messaging delaying to prevent throttling, and long message splitting.
pyrcb2 also makes use of asyncio and coroutines in Python. This allows you to write asynchronous code in a linear fashion—you can handle responses to commands right after you send them.
# Wait until the bot has joined #channel.
await bot.join("#channel")
print("There are", len(bot.users["#channel"]), "users in #channel.")
# Get user1's account.
result = await bot.get_account("user1")
if result.success:
account = result.value or "(no account)"
print("user1 is logged in as", account)
Installation
Install with pip:
$ pip3 install pyrcb2
Or download the source code and install with setup.py:
$ ./setup.py install
Alternatively, you can download the source code and install with pip:
$ pip3 install .
You will need to run the commands above as root if you’re installing globally. You can use the --user option to install to your home directory instead.
Documentation
Documentation for pyrcb2 is available at https://taylor.fish/pyrcb2/. If you’re new to pyrcb2, start with this guide and take a look at the examples.
Tests
To run pyrcb2’s tests, run python3 -m tests. If you have coverage installed, you can run coverage run -m tests.__main__ to get information on test coverage.
License
pyrcb2 is licensed under the GNU Lesser General Public License, version 3 or later. Some parts are released under other licenses; see the full license notice and individual files for details.
Metadata
Release files for pyrcb2 0.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyrcb2-0.6.2.tar.gz | 174.8 kB | Without provenance | Details for pyrcb2-0.6.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyrcb2-0.6.2-py3-none-any.whl | Python 3 | none | any | Details for pyrcb2-0.6.2-py3-none-any.whl |
Total release size: 273.5 kB
Release files / pyrcb2-0.6.2.tar.gz
| Download URL | pyrcb2-0.6.2.tar.gz |
|---|---|
| Size | 174.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c19320e2250c35e54e4c7e848ba474dff21ba87a6be9f61a255e6668fb3ca45
|
|
BLAKE2b-256 checksum How to use checksums |
1a29496b5a87463cf926fe2491e4efd8fbe2165b220b9ccd587d2353c26442e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1+
|
Release files / pyrcb2-0.6.2-py3-none-any.whl
| Download URL | pyrcb2-0.6.2-py3-none-any.whl |
|---|---|
| Size | 98.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4fc1af459261d4c7da1522b4792442303b05f895710c265cad7b94a5de294edf
|
|
BLAKE2b-256 checksum How to use checksums |
f592a0e00aa08aa76356d63de0a4eccfe7df1f63ecbccb8a531713c587328a91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1+
|
Security for pyrcb2 0.6.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.