Skip to main content

Terminal-based internet radio player

Project description

🎧 PX7 Terminal Radio

PX7 Terminal Radio

PX7 Terminal Radio is a lightweight, feature-rich command-line internet radio player built in Python.

It lets you search, stream, and control thousands of radio stations directly from your terminal, with added support for streaming audio from YouTube search results.

Powered by the Radio Browser API and VLC, PX7 delivers a fast and minimal listening experience without leaving your terminal.

Features

  • Search and stream internet radio stations
  • Filter stations by tag, country, language, bitrate, and more
  • Sort results using API parameters (votes, click count, etc.)
  • Playback controls: play, pause, resume, stop
  • Lightweight and fast CLI interface
  • Stream audio directly from YouTube search results

Requirements

  • Python 3.9+
  • VLC Media Player (required for audio playback)

📦 Installation

Install via pip (Recommended)

pip install px7-radio

🚀 Usage

Start the application:

px7-radio

If the command doesn't work, you can run:

python -m px7_radio

You will see a prompt:

>>

Radio Commands

Command Description
radio search <query> Search radio stations by name
radio search --tag=<tag> Filter by tag (e.g., jazz, lofi)
radio search --country=<country> Filter by country
radio search --language=<language> Filter by language
radio search --limit=<number> Limit number of results
radio search --order=votes Sort results (votes, clickcount, bitrate)
play <index> Play selected station
pause Pause playback
resume Resume playback
stop Stop playback

Advanced Filtering

PX7 supports full Radio Browser API parameters:

radio search lofi --limit=5
radio search --tag=jazz --country=US
radio search chill --order=clickcount

API Docs: https://www.radio-browser.info/

YouTube Commands

Stream audio directly from YouTube search results:

Command Description
yt search <query> Search and stream audio
yt search <query> --limit=<n> Limit results
yt search <query> --no-postfix Disable query enhancement

Smart Query Enhancement

By default:

yt search <query>

Automatically becomes:

<query> original audio song

This improves audio-focused results (songs, mixes, etc.)

Disable it with:

yt search <query> --no-postfix

🧠 Example Usage

>> radio search lofi
>> play 1
>> yt search joji
>> yt search the weeknd lofi --no-postfix

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

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

px7_radio-0.1.4.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

px7_radio-0.1.4-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file px7_radio-0.1.4.tar.gz.

File metadata

  • Download URL: px7_radio-0.1.4.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for px7_radio-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5590e2a0a4ffd44986c8505a0455022c6b7c81fabee50b0b1794eb4206a672a9
MD5 916adcbc6dafb10a7820eae01282fe53
BLAKE2b-256 d3ce66b7467854fd06187a6c3e77f8d9655696d472d4f8d649ada950c0de2507

See more details on using hashes here.

File details

Details for the file px7_radio-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: px7_radio-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for px7_radio-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ac07934f0694412cb7a945942ad5c65b6d21fdb24b611d7bfa340d26644bcd9a
MD5 8a54b7da1ead33ea671c5902572e879c
BLAKE2b-256 42169cd113eb33267ae6473982d1d5c467a88d4fe1555aa5a1ea73e307d3ecb9

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