Skip to main content

Xradios 📻

"Search, bookmark, and stream internet radio stations directly from your terminal."

PyPI Version License: MIT Python Version

Xradios is a terminal tool to discover and streaming radio stations worldwide.

Features ✨

  • Search: Find radio stations by name, genre, country, language or other criteria.
  • Stream: Play radio stations directly in your terminal.
  • Interactive Interface: Navigate and control playback with keyboard shortcuts.
  • Bookmarks: Save stations for quick access. (TODO)

Installation 🛠️

Prerequisites

  • Python 3.8 or higher
  • mpv or libmpv for audio playback

Using pipx (recommended)

pipx install xradios

Alternative: Install via pip

pip install --user xradios

Usage 🚀

Start the server:

xradiosd

Launch the interactive interface:

xradios

Commands

  • Open command line: Press :
  • Navigate: Use Ctrl + UP/Ctrl + DOWN to move focus.
  • Search for stations: search tag=rock limit=100 order=votes
  • Play a station: Select a station with UP/DOWN and press ENTER.
  • Exit: Press Ctrl + q

Press ? to see a complete list of shortcuts and commands.

Development Setup 💻

  1. Clone the repository and navigate into project directory:
git clone git@github.com:andreztz/xradios.git
cd xradios
  1. Install development dependencies using the following command:
uv sync --dev
  1. Start the xradios server by running:
xradiosd
  1. Open a new terminal, and run textual console to monitor log messsages:
textual console
  1. In another terminal run xradios application in development mode:
textual run --dev xradios
  1. Run tests:
pytest

Contributing 🤝

Contributions are welcome! Please open an issue or submit a pull request.
See CONTRIBUTING.md for guidelines.

Troubleshooting 🔧

  • No audio? Ensure mpv or libmpv is installed and accessible in you PATH.

Meta 📬

André P. Santos – @ztzandre – andreztz@gmail.com

Distributed under the MIT license. See LICENSE for details.

GitHub: https://github.com/andreztz/xradios

Metadata

Release files for xradios 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xradios 0.2.0
File Size Uploaded
xradios-0.2.0.tar.gz 61.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xradios 0.2.0
File Interpreter ABI Platform
xradios-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 75.8 kB

Release files / xradios-0.2.0.tar.gz

Download URL xradios-0.2.0.tar.gz
Size 61.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3c985f8fd77233a292e8675c2914ed1842ac869f641e6acc242f7a2832333643
BLAKE2b-256 checksum
How to use checksums
c116d111f56d420da6f9316f71690acdc7ca95621c0e2d9e3eaedb1072848626
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 8, 2025.

Transparency log

Release files / xradios-0.2.0-py3-none-any.whl

Download URL xradios-0.2.0-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2187009833b03236e053c9dc47fe7798182aa956af2d17d393eb3f097a268c8b
BLAKE2b-256 checksum
How to use checksums
3ba54530419eed0201dee73460831e14c4baf5766e1ed6685043814b4eb0ef95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 8, 2025.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page