Skip to main content

A minimal Twitch CLI client using fzf and 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.0.tar.gz (18.4 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.0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: twitch_play-0.1.0.tar.gz
  • Upload date:
  • Size: 18.4 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.0.tar.gz
Algorithm Hash digest
SHA256 845bd6a919cb60cbf56d78f581d55980ec375b32f37cde51507c8b9fa689c5d0
MD5 84ce4ecafc4d47662208cc33d9a0f49d
BLAKE2b-256 8f220b4cb5f205f61412b4a0509d511934c24c845a3228c6df0a941bbb517061

See more details on using hashes here.

File details

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

File metadata

  • Download URL: twitch_play-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 925aee86c9d46bed1f8fcd893d0a749ba6b0f49f63941c5eae958020c51ede92
MD5 ae5478ba8cb2f6b47eab70eb41a90822
BLAKE2b-256 bc463a264a4c1692e879bbb59d85d2f4145a723c31f31cc40a47bcb397bc11d7

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