Skip to main content

A simple npr streaming cli

Project description

npr-cli

A simple cli for streaming your favorite npr stations.

Installation

pip install npr-cli

Installation requires VLC, homebrew instructions can be found here.

Usage

npr

npr up # start the npr daemon
npr down  # stop the npr daemon

npr search # search stations by name, call or zip code.
npr search -q <your search> # search stations directly.

npr play # play your latest stream.
npr stop # stop streaming

npr favorites # select a stream from your favorites.

TODO:

  • Better handling of daemon, launchd/systemd
  • Run daemon behind gunicorn/uvicorn
  • Allow over writing of last line in terminal, a giant stack of commands is ugly.
  • Create a "Now Playing" page to display known metadata about a stream

Issues

Please report any bugs you encounter as issues to this repository.

Building and publishing

pip install --upgrade build twine

python -m build

# testpypi deploy and install
python -m twine upload --repository testpypi dist/*
pip install --index-url https://test.pypi.org/simple/ --no-deps npr-cli

python -m twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

npr-cli-0.1.1.tar.gz (9.8 kB view hashes)

Uploaded Source

Built Distribution

npr_cli-0.1.1-py3-none-any.whl (13.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page