https://github.com/k0rmarun/pyweechat
Python library for communicating with an weechat irc relay
https://github.com/k0rmarun/pyweechat
irc irc-client irc-library python python-3
Last synced: 2 months ago
JSON representation
Python library for communicating with an weechat irc relay
- Host: GitHub
- URL: https://github.com/k0rmarun/pyweechat
- Owner: k0rmarun
- License: mit
- Created: 2017-04-01T13:17:07.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-04T17:15:25.000Z (about 8 years ago)
- Last Synced: 2026-03-15T09:57:50.931Z (3 months ago)
- Topics: irc, irc-client, irc-library, python, python-3
- Language: Python
- Size: 16.6 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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()