{"id":13501460,"url":"https://github.com/PetterKraabol/Twitch-Python","last_synced_at":"2025-03-29T09:30:34.280Z","repository":{"id":33114293,"uuid":"151992604","full_name":"PetterKraabol/Twitch-Python","owner":"PetterKraabol","description":"Object-oriented Twitch API for Python developers","archived":false,"fork":false,"pushed_at":"2024-05-31T10:59:20.000Z","size":223,"stargazers_count":214,"open_issues_count":24,"forks_count":37,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-02T06:29:18.784Z","etag":null,"topics":["api-wrapper","twitch"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/twitch-python","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/PetterKraabol.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":[],"custom":["https://www.paypal.me/petterkraabol"]}},"created_at":"2018-10-07T22:59:11.000Z","updated_at":"2024-08-12T19:42:16.000Z","dependencies_parsed_at":"2024-06-18T18:43:31.314Z","dependency_job_id":null,"html_url":"https://github.com/PetterKraabol/Twitch-Python","commit_stats":{"total_commits":76,"total_committers":7,"mean_commits":"10.857142857142858","dds":0.1578947368421053,"last_synced_commit":"1c60f04030c5fad379e4de290474da4d36297152"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PetterKraabol%2FTwitch-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PetterKraabol%2FTwitch-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PetterKraabol%2FTwitch-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PetterKraabol%2FTwitch-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PetterKraabol","download_url":"https://codeload.github.com/PetterKraabol/Twitch-Python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222481459,"owners_count":16991450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api-wrapper","twitch"],"created_at":"2024-07-31T22:01:38.481Z","updated_at":"2024-10-31T20:31:19.626Z","avatar_url":"https://github.com/PetterKraabol.png","language":"Python","readme":"# Twitch Python\n\n[![Discord](https://user-images.githubusercontent.com/7288322/34471967-1df7808a-efbb-11e7-9088-ed0b04151291.png)](https://discord.gg/wZJFeXC)\n[![Build Status](https://api.travis-ci.org/PetterKraabol/Twitch-Python.svg?branch=master)](https://travis-ci.org/PetterKraabol/Twitch-Python)\n\n\n`pip install --user twitch-python`\n\nAn object-oriented approach to accessing the Twitch API and live chat with relationships and smart caching.\n\n### Requirements\n\n* [Python 3.10 or newer](https://www.python.org/downloads/)\n* [A Twitch client ID](https://dev.twitch.tv/console/apps)\n\n### Usage\n\n```python\n# Twitch API\n\nimport twitch\n\nhelix = twitch.Helix('client-id', 'client-secret')\n```\n\n```python\n# Users\n\nfor user in helix.users(['sodapoppin', 'reckful', 24250859]):\n    print(user.display_name)\n\n\nprint(helix.user('zarlach').display_name)\n```\n\n```python\n# Videos\n\nfor video in helix.videos([318017128, 317650435]):\n    print(video.title)\n\n\nprint(helix.video(318017128).title)\n```\n\n```python\n# Video Comments (VOD chat)\n\nfor comment in helix.video(318017128).comments:\n    print(comment.commenter.display_name)\n\n\nfor video, comments in helix.videos([318017128, 317650435]).comments:\n    for comment in comments:\n        print(comment.commenter.display_name, comment.message.body)\n\n\nfor video, comments in helix.user('sodapoppin').videos().comments:\n        for comment in comments:\n            print(comment.commenter.display_name, comment.message.body)\n\n\nfor user, videos in helix.users(['sodapoppin', 'reckful']).videos(first=5):\n        for video, comments in videos.comments:\n            for comment in comments:\n                print(comment.commenter.display_name, comment.message.body)\n```\n\n```python\n# Twitch Chat\n\ntwitch.Chat(channel='#sodapoppin', nickname='zarlach', oauth='oauth:xxxxxx').subscribe(\n        lambda message: print(message.channel, message.user.display_name, message.text))\n```\n\n### Features\n- Object-oriented relationships\n- Smart caching\n- New Twitch API (Helix)\n- VOD chat from Twitch API v5\n\n---\n\n[Documentation](https://github.com/PetterKraabol/Twitch-Python/wiki) • [Twitch API](https://dev.twitch.tv/docs/) • [Twitch-Chat-Downloader](https://github.com/PetterKraabol/Twitch-Chat-Downloader)\n","funding_links":["https://www.paypal.me/petterkraabol"],"categories":["Python","Libraries"],"sub_categories":["Python"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPetterKraabol%2FTwitch-Python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPetterKraabol%2FTwitch-Python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPetterKraabol%2FTwitch-Python/lists"}