Skip to main content

pyIRCSDK is a Python library for creating IRC bots and clients. It is designed to provide granular access to raw mesages and to provide an event emitter like interface for handling messages.

Project description

pyIRCSDK

pyIRCSDK is a Python library for creating IRC bots and clients. It is designed to provide granular access to raw mesages and to provide an event emitter like interface for handling messages.

Installation

pip install pyIRCSDK

Usage

from pyIRCSDK import IRCClient

client = IRCClient("irc.freenode.net", 6667, "pyIRCSDK", "pyIRCSDK")
client.event.on("message", lambda message: print(message))
client.event.on("connected", lambda: client.send("JOIN #pyIRCSDK"))
client.event.on("raw", lambda message: print(message))
client.connect()

More event to come soon:

  • connected
  • disconnected
  • join
  • part
  • kicked
  • message
  • raw

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

pyircsdk-0.0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

pyircsdk-0.0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file pyircsdk-0.0.1.tar.gz.

File metadata

  • Download URL: pyircsdk-0.0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pyircsdk-0.0.1.tar.gz
Algorithm Hash digest
SHA256 be9da615ee99a358ba6187eb65b2b9a2d2743e98179b4c7ccfb4def4999dd3e8
MD5 630af8db303e3c517e2024c1c185c65a
BLAKE2b-256 2841aad8f3cedda796de08ceee92ed77ef416f3febc0d7134f6c635effe2a60e

See more details on using hashes here.

File details

Details for the file pyircsdk-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyircsdk-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pyircsdk-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9419382eeebd8817bac574059338939b461839e658a19995b086e2e71f1dfe52
MD5 867b81f562055b619524bc54d917ecfb
BLAKE2b-256 8ca22f02a4324db2616040d5d042b4d2162b935569cf9e13a25cdf272bbe28b5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page