Skip to content
This repository has been archived by the owner on Sep 15, 2019. It is now read-only.
/ tclib Public archive

Websocket package for tinychat chat rooms.

License

Notifications You must be signed in to change notification settings

nortxort/tclib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tclib

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.

Setup

tclib has been confirmed to work on Python 3.7+ under Windows 7/10 (x64) and GNU/Linux (x64)

Requirements

See requirements.txt for information.

*colorama is an optional requirement. I am not sure, if it should be included or not, at this stage.

Usage.

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()

Submitting an issue.

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.

Author

License

The MIT License (MIT)

See LICENSE for more details.

Acknowledgments

Thanks to the following people, who in some way or another, has contributed to this project.

Releases

No releases published

Packages

No packages published

Languages