Skip to main content

Simple client interface.

Project description

https://travis-ci.org/youknowone/ircclient.svg?branch=master

ircclient

Simple IRC client interface.

Example

from ircclient.client import DispatchClient

client = DispatchClient(('localhost', 6667), blocking=True)
client.connect()

m = client.dispatch()  # ircclient.struct.Message
assert m.type == 'CONNECTED'  # connected message which is out of irc protocol

client('nick', 'testnick')  # list args are joined. colons will be automatically added.
client('user 8 * :{name}', name='realname')  # keyword args are formatted as raw string

while True:
    m = client.dispatch()  # raw=True option will make it returns raw text
    print(m)  # ircclient.struct.Message

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

ircclient-0.2.1.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file ircclient-0.2.1.tar.gz.

File metadata

  • Download URL: ircclient-0.2.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ircclient-0.2.1.tar.gz
Algorithm Hash digest
SHA256 41cee3712a6e5b0ae2fa6e1309aa6f0dd470971f8f277a129dcf2af2adfb8e7c
MD5 975e966b5ffdb8ccf372288daa98d230
BLAKE2b-256 a9c1f118b1064f719deab17c0caeead52d77cedd7e913d3cb49ca6c83f2e37c0

See more details on using hashes here.

Supported by

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