Skip to main content

A minimal Twitch CLI client. Browse categories and streams with fzf, play with mpv.

Project description

Twitch Play

A minimal Twitch CLI app built on top of mpv, streamlink, and fzf.

Requirements

Setup

There's a clientId in the config.py file, which you can use for experiments. Ideally, you want to create your own app and use it, following the steps below:

  1. Register an app at dev.twitch.tv/console, set OAuth redirect to http://localhost:8765/callback, type Website Integration, and copy your Client ID.
  2. Set your Client ID in twitch_play/config.py.
$ git clone https://github.com/kasramp/twitch-play
$ cd twitch-play
$ python -m venv venv && source venv/bin/activate
$ pip install -r requirements.txt
$ ./play-twitch

Usage

Key Action
Enter Play stream at best quality
Ctrl-L Play at 480p
Ctrl-H Play at 720p
Ctrl-B Play at best quality
Ctrl-O Pick quality from list
Ctrl-F Search categories (category screen)
Esc Go back

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twitch_play-0.1.1.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twitch_play-0.1.1-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file twitch_play-0.1.1.tar.gz.

File metadata

  • Download URL: twitch_play-0.1.1.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for twitch_play-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c398f3c75b312c66dbe2bc8d0fd67453a68fbbd19d88373cfae5be4d1e6bf334
MD5 3a8a1f85b9540ebc01b42226f4321487
BLAKE2b-256 1e96c1fb3b8a370b43761bb4d37431b1835534675dc80cc8d0436d2acba362d0

See more details on using hashes here.

File details

Details for the file twitch_play-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: twitch_play-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for twitch_play-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd76759262cebd682a768deff1909d10c6988324f96e5a760f4642252d779de9
MD5 b8112fa6f3e2dad4967e273f3aa1ab70
BLAKE2b-256 83f7dece0322d3c35576828053dbec194ecfdd1fa99bd94186e2b88cc8eef61d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page