Metadata-Version: 2.4
Name: xradios
Version: 0.1.0.dev1
Summary: Search, bookmark, and stream internet radio stations
Author-email: "André P. Santos" <andreztz@gmail.com>
Requires-Python: >=3.11
Requires-Dist: appdirs>=1.4.4
Requires-Dist: click>=8.1.8
Requires-Dist: cmd-parser>=0.0.1
Requires-Dist: jsonrpclib-pelix>=0.4.3.4
Requires-Dist: pluginbase>=1.0.1
Requires-Dist: pyradios>=2.1.0
Requires-Dist: python-mpv>=1.0.7
Requires-Dist: streamscrobbler3>=0.0.4
Requires-Dist: textual>=3.1.0
Requires-Dist: tinydb>=4.8.2
Description-Content-Type: text/markdown

# Xradios 📻

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

[![PyPI Version](https://img.shields.io/pypi/v/xradios?color=blue)](https://pypi.org/project/xradios/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python Version](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)

**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)

```bash
pipx install xradios
```

### Alternative: Install via pip
```bash
pip install --user xradios
```

## Usage 🚀

Start the server:

```bash
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:

```bash
git clone git@github.com:andreztz/xradios.git
cd xradios
```

2. Install in editable mode with development dependencies:
```bash
pip install -e .
```

3. Run tests:
```bash
pytest
```

## Contributing 🤝

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

## Troubleshooting 🔧

- **No audio?** Ensure `mpv` or `libmpv` is installed and accessible in you PATH.

## Meta 📬

André P. Santos – [@ztzandre](https://twitter.com/ztzandre) – andreztz@gmail.com

Distributed under the MIT license. See [LICENSE](LICENSE) for details.

GitHub: [https://github.com/andreztz/xradios](https://github.com/andreztz/xradios)
