A simple cmdline radio to listen to python podcasts and some music.
Project description
dev-radio
dev-radio is simple command line tool to listen to radio and developer podcasts.
NOTE: This package requires vlc to be installed on your system.
Listen to radio.
Listen to podcasts.
Contents
Installation
Just run pip install dev-radio
use pip3
if you are on Linux.
Usage
Help menu
Shows the help menu about dradio and it's subcommands.
$ dradio --help
Radio
Play radio streams.
radio help
$ dradio radio --help
# Using alias.
$ dradio rad --help
Listing all the radio stations.
$ dradio radio --list
# Using alias.
$ dradio radio -L
# or
$ dradio rad -L
Playing a radio station named jpop.
$ dradio radio --play jpop
# Using alias
$ dradio radio -P jpop
# or
$ dradio rad -P jpop
Adding new radio station.
# adds a new station with name hip-hop0
$ dradio radio --add-station hip-hop0 https://stream.laut.fm/1000hiphop
# Using alias
$ dradio radio -A hip-hop0 https://stream.laut.fm/1000hiphop
# or
$ dradio rad -A hip-hop0 https://stream.laut.fm/1000hiphop
Deleting a radio station.
$ dradio radio --del-station hip-hop0
# Using alias
$ dradio radio -D hip-hop0
# or
$ dradio rad -D hip-hop0
Renaming a radio station.
$ dradio radio --rename-station hip-hop0 hip-hop
# Using alias
$ dradio radio -R hip-hop0 hip-hop
# or
$ dradio rad -R hip-hop0 hip-hop
Resetting all the stations to default ones.
This deletes any newly added stations, renamed stations and restores the default radio stations.
$ dradio radio --reset
# No alias for reset option.
$ dradio rad --reset
Check which stations are working.
$ dradio radio --check
# Using alias
$ dradio radio -C
# or
$ dradio rad -C
Podcast
Play podcasts.
podcast help
$ dradio podcast --help
# Using alias
$ dradio pod --help
List all the podcasts.
This prints list of all currently available podcasts.
$ dradio podcast --list
# Using alias
$ dradio pod --list
# or
$ dradio pod -L
Show all the episodes of a podcast.
$ dradio podcast --all-eps stackoverflow
# Using alias
$ dradio podcast -A stackoverflow
# or
$ dradio pod -A stackoverflow
Play an episode of a podcast.
# 0 is the episode ID NOT episode number.
# Passing episode ID as 0 plays the latest episode of the podcast.
$ dradio podcast --play stackoverflow 0
# Using alias
$ dradio podcast -P stackoverflow 0
# or
$ dradio pod -P stackoverflow 0
Setting up development environment.
git clone https://github.com/Legion-God/dev-radio.git
cd dev-radio
then create your virtual environmentvirtualenv venv
- Activate your venv by entering
source venv/bin/activate
, if you are on Windows use.\venv\Scripts\activate
pip install -r requirements.txt
- To install package locally, run
pip install -e .
- And you are done !
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dev-radio-1.0.10.tar.gz
(14.4 kB
view hashes)
Built Distribution
dev_radio-1.0.10-py3-none-any.whl
(126.4 kB
view hashes)
Close
Hashes for dev_radio-1.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a235fb87bcf75ff1edda04a1aae8cfe9f4e724bcc165eb23f8170c1987af108b |
|
MD5 | a89a4cc1200c8406e5db8dd8ed4efa40 |
|
BLAKE2b-256 | 7f68dcdcb0c8089d9158f5474d66bce4c090baf4a5bb33db26f4cc73711133a0 |