pyweechat

Python library for communicating with an weechat irc relay


Keywords
irc, irc-client, irc-library, python, python-3
License
MIT
Install
pip install pyweechat==0.2

Documentation

pyweechat

Python library for communicating with an weechat irc relay.

Note

This library is currently in alpha. Expect everything to change one day.

Usage

from pyweechat import WeeChatSocket
from pprint import pprint

w = WeeChatSocket(hostname="localhost", port=8000, use_ssl=False)
w.connect(password=None, compressed=True)
w.send("sync irc.robustirc.#icannotexist")
try:
    while True:
        ret = w.poll()
        if ret:
            pprint(vars(ret))
except KeyboardInterrupt:
    pass
w.disconnect()