Skip to main content
File added late

1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.

radio.py

Command-line frontend for mplayer designed to make listening to online radio easy.

Homepage: http://www.guyrutenberg.com/radiopy

Features

  • Allows you to easily play your favorite online radio stations.

  • Adding new stations to radio.py is very simple.

  • Record radio streams.

  • Sleep and Wake-Up features.

  • Search TuneIn for new stations.

Installation

To install radio.py, use pip:

pip install radiopy

The latest development version is available via git from SourceForge:

pip install git+http://git.code.sf.net/p/radiopy/code

See the pip documentation for more details.

Usage

usage: radio.py [OPTIONS] station_name

positional arguments:
  station_name          Station name

optional arguments:
  -h, --help            show this help message and exit
  -s MIN, --sleep MIN   go to sleep after MIN minutes
  -w MIN, --wake-up MIN
                        wake up and start playing after MIN minutes
  -l, --list            show a list of known radio stations and their homepage
  -c SIZE, --cache SIZE
                        set the size of the cache in KBytes [default: 320]
  -r FILE, --record FILE
                        record the stream as mp3 and save it to FILE
  --random              let radio.py select a random station for you
  -v, --verbose         Verbose mode. Multiple -v options increase the
                        verbosity
  -q, --quiet           Quiet mode. Multiple -q options decrease the
                        verbosity.
  --version             show program's version number and exit

Listening

To listen to a station just pass it’s name to radio.py:

radio.py BBC World Service

The list of supported can be viewed using --list flag. Additionally, radio.py will search TuneIn when given an unkown station.

Wakeup and Sleep

You can use the --wake-up and --sleep to make radio.py start to play after specified number of minutes and shut itself down after specified number of minutes accordingly:

radio.py --wake-up 30 BBC World Service
radio.py --sleep 60 BBC World Service

Recording

radio.py also supports recording streams to file:

radio.py --record news BBC World Service

This dumps the raw stream to a file named news. The exact version of the file depends on the exact stream. The dumped stream using can be played using mplayer. You can later use avconv (or ffmpeg) to converted the dumped stream to any format that suits you.

This option can also be combined with the --sleep and --wake-up flags to time the recording.

Files

radio.py comes with a builtin list of stations. If you want to add new stations (or override existing ones) you can add them to /etc/radiopy (global configuration) or to ~/.radiopy (per-user). The format is:

[BBC World Service News]
home: http://bbcworldservice.com/
stream: http://www.bbc.co.uk/worldservice/meta/tx/nb/live/ennws.pls

Authors

Metadata

Release files for radiopy 0.6

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

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for radiopy 0.6
File Size Uploaded Provenance Actions
radiopy-0.6.tar.gz 18.5 kB File added late: Without provenance Details for radiopy-0.6.tar.gz

Release files / radiopy-0.6.tar.gz

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL radiopy-0.6.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
062af9228b43c0e8d07f15f4dd0a4de755189a49f67ce9404f20db88fa8213a4
BLAKE2b-256 checksum
How to use checksums
b4d8c56cb77c74b84fa9edae6365582a840a71dd6969322dcfc198451637f94b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for radiopy 0.6

Upload timing

File added late

1 file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.


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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6 This release

1 release file No provenance

0.5

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