Metadata-Version: 2.1
Name: pytmi
Version: 0.2.0rc0
Summary: TMI (Twitch Messaging Interface) library for Python.
Home-page: https://github.com/bynect/pytmi
Author: nect
License: UNKNOWN
Description: # pytmi
        
        [![package_version](https://img.shields.io/pypi/v/pytmi)](https://pypi.org/project/pytmi/)
        [![license](https://img.shields.io/pypi/l/pytmi)](https://choosealicense.com/licenses/mit/#)
        [![python_version](https://img.shields.io/pypi/pyversions/pytmi)](https://www.python.org/)
        [![wheel](https://img.shields.io/pypi/wheel/pytmi)](https://pypi.org/project/pytmi/)
        
        TMI (Twitch Messaging Interface) library for Python.
        
        ## Example
        
        Here's a little application that logs in the user using OAuth, joins the Twitch channel requested by the user, sends the message `Hello, Twitch!` to the chat and then leaves the channel.
        
        ```python
        import asyncio
        import pytmi
        
        
        async def main() -> None:
            nick = input("Insert your Twitch nickname: ").lstrip()
            token = input("Insert your Twitch OAuth token: ").lstrip()
            channel = input("Insert the channel to join: ").lstrip()
        
            client = pytmi.TmiClient()
            await client.login_oauth(token, nick)
        
            await client.join(channel)
            await client.send_privmsg("Hello, Twitch!")
        
            await client.part(channel)
            await client.logout()
        
        
        if __name__ == "__main__":
            try:
                loop = asyncio.new_event_loop()
                loop.run_until_complete(main())
            except:
                print("Something went wrong.")
        ```
        
        You can find a [usage example](docs/example.py) inside the `docs` directory.
        
        ## Todos
        
        * TmiClient respond to server ping only when constantly reading messages. Consider using scheduler or asyncio.Task for the moment.
        
        ## Changelog
        
        ### v0.2.0
        
        * Rewrite library to be asynchronous.
        
        * Add SSL support (enabled by default).
        
        * Reorganize project structure.
        
        ### v0.1.1
        
        * Minor refactoring.
        
        * Improve message handling and parsing.
        
        ### v0.1.0
        
        * Initial version.
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >= 3.6
Description-Content-Type: text/markdown
