Websocket package for tinychat chat rooms.
This is more or less a rewrite of pinylib, but for python 3. This implements some benefits(hopefully) that python 3 has to offer, one of them being asynchronous implementation using asyncio.
Since this is my first attempt at asynchronous programming, some things might not work as exspected, and some things might be changed later.
I'd like to mention, that a lot of inspiration has been taken from the discord package by Rapptz.
tclib has been confirmed to work on Python 3.7+ under Windows 7/10 (x64) and GNU/Linux (x64)
See requirements.txt for information.
*colorama is an optional requirement. I am not sure, if it should be included or not, at this stage.
A simple client that will enter a room with a random nick.
from tclib import TinychatClient
client = TinychatClient('aroomname')
client.run()
If you wanted a specific name in the room, you could do so by providing the nick
keyword.
client = TinychatClient('aroomname', nick='mycoolnick')
client.run()
Similar to the nick
keyword, you can use the account
and password
keywords to have the client use a tinychat account.
client = TinychatClient('aroomname', account='tinychataccount', password='accountpassword')
client.run()
Please read through the TODOs and/or issues before submitting a new issue. If you want to submit a new issue, then use the ISSUE TEMPLATE.
The MIT License (MIT)
See LICENSE for more details.
Thanks to the following people, who in some way or another, has contributed to this project.