{"id":21027283,"url":"https://github.com/bynect/pytmi","last_synced_at":"2026-02-28T06:24:10.649Z","repository":{"id":57457888,"uuid":"325913787","full_name":"bynect/pytmi","owner":"bynect","description":"TMI (Twitch Messaging Interface) library for Python","archived":false,"fork":false,"pushed_at":"2024-10-10T06:48:27.000Z","size":83,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-20T03:13:06.783Z","etag":null,"topics":["asynchronous","asyncio","client","irc-client","irc-library","irc-protocol","python","python3","tmi","twitch","twitch-chat","twitch-irc"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pytmi/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bynect.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-01T04:03:07.000Z","updated_at":"2024-10-10T06:48:30.000Z","dependencies_parsed_at":"2024-11-19T11:57:37.616Z","dependency_job_id":"fd15c363-9fe0-4ca3-ba9b-0aae8b862a69","html_url":"https://github.com/bynect/pytmi","commit_stats":{"total_commits":55,"total_committers":1,"mean_commits":55.0,"dds":0.0,"last_synced_commit":"cbc8a3622db9914c9ab65ad91ed42b4e13a432a8"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/bynect/pytmi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bynect%2Fpytmi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bynect%2Fpytmi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bynect%2Fpytmi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bynect%2Fpytmi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bynect","download_url":"https://codeload.github.com/bynect/pytmi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bynect%2Fpytmi/sbom","scorecard":{"id":260058,"data":{"date":"2025-08-11","repo":{"name":"github.com/bynect/pytmi","commit":"9efac4c78553fef94a05489971bb7b8af8c52b7f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T10:37:54.721Z","repository_id":57457888,"created_at":"2025-08-17T10:37:54.722Z","updated_at":"2025-08-17T10:37:54.722Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29926323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"online","status_checked_at":"2026-02-28T02:00:07.010Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asynchronous","asyncio","client","irc-client","irc-library","irc-protocol","python","python3","tmi","twitch","twitch-chat","twitch-irc"],"created_at":"2024-11-19T11:49:21.252Z","updated_at":"2026-02-28T06:24:10.635Z","avatar_url":"https://github.com/bynect.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pytmi\n\n[![package_version](https://img.shields.io/pypi/v/pytmi)](https://pypi.org/project/pytmi/)\n[![license](https://img.shields.io/pypi/l/pytmi)](https://choosealicense.com/licenses/mit/#)\n[![python_version](https://img.shields.io/pypi/pyversions/pytmi)](https://www.python.org/)\n[![wheel](https://img.shields.io/pypi/wheel/pytmi)](https://pypi.org/project/pytmi/)\n\nTMI (Twitch Messaging Interface) library for Python.\n\nYou can get your OAuth token with the site `https://twitchapps.com/tmi/`.\n\n## Example\n\nHere'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.\n\n```python\nimport asyncio\nimport pytmi\n\nasync def main() -\u003e None:\n    nick = input(\"Insert your Twitch nickname: \").strip()\n    token = input(\"Insert your Twitch OAuth token: \").strip()\n    channel = input(\"Insert the channel to join: \").strip()\n\n    async with pytmi.Client() as client:\n        await client.login_oauth(token, nick, channel)\n        await client.join(channel)\n        await client.send_message(\"Hello, Twitch!\")\n\nif __name__ == \"__main__\":\n    try:\n        loop = asyncio.new_event_loop()\n        loop.run_until_complete(main())\n    except:\n        print(\"Something went wrong.\")\n```\n\nYou can find others usage example inside the [`test`](/test) directory.\n\n## Known bugs\n\n* Spurious errors when using SSL.\n\n* Possible problems with pending tasks (if you don't cleanup them properly).\n\n## Todos\n\n* Handle connection and login error in a better way.\n\n* Handle messages that are not correctly encoded in UTF8.\n\n## Changelog\n\n### v1.0.0\n\n* Major version bump.\n\n* Add a background task that collects messages in a buffer and sends pong as needed.\n\n* Rewrite Client code.\n\n* Change methods name (`part` -\u003e `leave`, `privmsg` -\u003e `send_message`).\n\n* Add async context manager (`async with`) support for Client.\n\n### v0.3.0\n\n* Major library simplification and rewriting.\n\n* Removed buggy background task.\n\n* Add library logging.\n\n### v0.2.3\n\n* Add background task to collect messages (removed in `v0.3.0`).\n\n* Refactor code.\n\n### v0.2.2\n\n* Add message buffer abstraction.\n\n* Major code refactoring.\n\n### v0.2.1\n\n* Minor code refactoring.\n\n### v0.2.0\n\n* Rewrite library to be asynchronous.\n\n* Add SSL support (enabled by default).\n\n* Reorganize project structure.\n\n### v0.1.1\n\n* Minor code refactoring.\n\n* Improve message handling and parsing.\n\n### v0.1.0\n\n* Initial version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbynect%2Fpytmi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbynect%2Fpytmi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbynect%2Fpytmi/lists"}