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

Installation

Quick install (recommended)

$ pipx install twitch-play

Or with pip:

$ pip install twitch-play

Then run:

$ twitch-play

From source

$ 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

Configuration

There's a Client ID 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. Go to dev.twitch.tv/console and register a new app.
  2. Set the OAuth redirect URL to http://localhost:8765/callback and category to Website Integration.
  3. Copy your Client ID and set it in twitch_play/config.py.

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-C Copy channel name to the clipboard
Ctrl-F Search categories (category screen)
Esc Go back

Chat

Key Action
/ Search
p Pause chat scrolling
k Go up in the chat
j Go down in the chat

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.2.2.tar.gz (22.7 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.2.2-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: twitch_play-0.2.2.tar.gz
  • Upload date:
  • Size: 22.7 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.2.2.tar.gz
Algorithm Hash digest
SHA256 c8bec1f39056c416493bb7a8794462ab9581d5713cd80d86bb6136a589f7b7f0
MD5 d5557f9b90f6687fad0992a99450c4ad
BLAKE2b-256 cbbe22e128f189e0e6583573e2773c7497603346efd19982573f3e80244d4968

See more details on using hashes here.

File details

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

File metadata

  • Download URL: twitch_play-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 23.0 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.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a7d537a66e7ac9a0be3ba1ca615dd8bd57d3f9d568e93eb825a0e0583ddf05d3
MD5 ffc9183782c023ef8006a7cc0817ef08
BLAKE2b-256 0bf1bd64270cdb10e194cd922d449059bb27e22c028b99217cad2816234d19e3

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