radio is a command line tool to just listen to the radio.
Installation
pip install radio
or
pip install --upgrade radio
Usage
Just play the radio like this…
radio play <id>
Look for available radios with
radio show
Search for you favourite radio with
radio search <term>
or else add it with
radio add <id> --name "My Favourite Radio" --url <streaming-url>
General usage:
radio [OPTIONS] COMMAND [ARGS]...
Options:
- --version
Show the version and exit.
- --help
Show this message and exit.
Commands
- add:
Add or update a radio information.
- play:
Play a radio.
- remove:
Remove a radio information.
- search:
Search radio in the available radios.
- show:
Show all radios information.
add
Add or update a radio information.
Usage:
radio add [OPTIONS] RADIO_ID
Options:
- -n, --name TEXT
Radio complete fancy name. [required]
- -u, --url TEXT
Radio playable streaming url. [required]
- --help
Show this message and exit.
For example:
radio add convos --name "Radio Con Vos FM 89.9" --url https://server1.stweb.tv/rcvos/live/chunks.m3u8
play
Play a radio.
Usage:
radio play [OPTIONS] RADIO_ID
Options:
- --help
Show this message and exit.
Turn off the radio by pressing “q” or with Ctrl-<C>.
remove
Remove a radio information.
Usage:
radio remove [OPTIONS] RADIO_ID
Options:
- --help
Show this message and exit.
search
Search radio in the available radios.
Usage:
radio search [OPTIONS] STRING
Options:
- -i, --invert
Invert filter.
- --help
Show this message and exit.
show
Show all radios information.
Usage:
radio show [OPTIONS]
Options:
- --urls
Also show Streaming URLS.
- --count
Show how many radios are available.
- --help
Show this message and exit
How does it plays the radio?
It requires any of the following media player:
ffplayer (ffmpeg package)
cvlc (vlc package)
mplayer
Priority or alternative players yet to make customizable in future versions.
ToDo
support multiples radio lists (is it useful?)
support downloading radio lists from somewhere
customize player and priorities or autodetect (something like rifle in the ranger-fm package)
what more?
help me at https://github.com/quijot/radio-package
License
radio is licensed under the do What The Fuck you want to Public License, WTFPL. See the LICENSE file.
Metadata
Release files for radio 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| radio-0.1.3.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| radio-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.4 kB
Release files / radio-0.1.3.tar.gz
| Download URL | radio-0.1.3.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2be6e6dca5560bb04b8f089dd8180e9bc79512da21c19bbc09e2c94d5e43706
|
|
BLAKE2b-256 checksum How to use checksums |
cbf1e530792dd2a60a79d8c842d9dc233f95567b623957528855c7e409d8b44a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.5 Linux/5.8.5-arch1-1
|
Release files / radio-0.1.3-py3-none-any.whl
| Download URL | radio-0.1.3-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e616972660901aa8caa2b80cabf4d858c236882e91d4fc7b57c658b80f652ba
|
|
BLAKE2b-256 checksum How to use checksums |
d021575010c822c2ca80d13873aedfcecd3b69e9de6f0eae87b3c8c4c978b2a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.5 Linux/5.8.5-arch1-1
|