Skip to main content

Simple PyIRC

This project aims at providing a very simple IRC client that can be easily used in Python scripts to ouput some results or information.

The client is written in Python3, respects PEP-8 syntax and should be fully documented with reST-formatted docstrings.

It supports both RFC 1459 and RFC 2812 server implementations.

This project is not a full-blown IRC client. It is not meant to act as a bot which would listen and react to IRC messages. For such usage, refer to PyPI's irc package for instance. This IRC client is meant to be lighter and simply send messages to a channel or to an another user from time to time.

Usage

The targeted use case is to be able to connect to a set of specific channels on a server, keep the connection alive and be able to send messages to this channel from time to time when other components of the project require it.

from simple_pyirc import IRCClient


irc_client = IRCClient("my.irc.network", "mynick")

irc_client.join("#chan")

# Do something ...

irc_client.privmsg("#chan", "Result: 42")

# Do something else ...

irc_client.quit()

Or one can also use the context manager if a quick connection is required:

from simple_pyirc import IRCClient

with IRCClient("my.irc.network", "mynick") as irc_client:
    irc_client.join("#chan")
    irc_client.msg("#chan", "Hello & Good Bye !")

Release files for simple-pyirc 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simple-pyirc 0.0.1
File Size Uploaded
simple_pyirc-0.0.1.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simple-pyirc 0.0.1
File Interpreter ABI Platform
simple_pyirc-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.5 kB

Release files / simple_pyirc-0.0.1.tar.gz

Download URL simple_pyirc-0.0.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d06a31715e7a11484bd10b999660875b7a4cf72815839afb155d9c957737ec44
BLAKE2b-256 checksum
How to use checksums
753ab96f3ee53f6c259c56c5d601e8a90f0e02cb86509de969479b5d57e85ebf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.3

Release files / simple_pyirc-0.0.1-py3-none-any.whl

Download URL simple_pyirc-0.0.1-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2eadb60e41223ad02776213cf8ee9535ccc284772c6f75649367aa27e788071
BLAKE2b-256 checksum
How to use checksums
a3557a17ebaef48648f889411d9d0ae3866881ca29092672e7b4644425ec0656
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page