Skip to main content

Python client for the Radio Browser API

Project description

Pyradios

Upload Python Package Python package

Python client for the Radio Browser API

Installation

 pip install pyradios

Examples

In [1]: from pyradios import RadioBrowser

In [2]: rb = RadioBrowser()

In [3]: rb.search(name="BBC Radio 1", name_exact=True)
Out[3]:
[{'changeuuid': '4f7e4097-4354-11e8-b74d-52543be04c81',
  'stationuuid': '96062a7b-0601-11e8-ae97-52543be04c81',
  'name': 'BBC Radio 1',
  'url': 'http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p',
  'url_resolved': 'http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p',
  'homepage': 'http://www.bbc.co.uk/radio1/',
  'favicon': 'https://cdn-radiotime-logos.tunein.com/s24939q.png',
  'tags': 'bbc,indie,entertainment,music,rock,pop',
  'country': 'United Kingdom',
  'countrycode': 'GB',
  'state': '',
  'language': 'english',
  'votes': 5018,
  'lastchangetime': '2020-01-19 13:17:11',
  'codec': 'MP3',
  'bitrate': 128,
  'hls': 0,
  'lastcheckok': 1,
  'lastchecktime': '2020-02-03 19:44:37',
  'lastcheckoktime': '2020-02-03 19:44:37',
  'lastlocalchecktime': '2020-02-03 09:23:37',
  'clicktimestamp': '2020-02-04 00:16:54',
  'clickcount': 2880,
  'clicktrend': 40}]  

Help

In [1]: from pyradios import RadioBrowser

In [2]: help(RadioBrowser)

Development Setup

$ git clone https://github.com/andreztz/pyradios.git
$ cd pyradios
$ virtualenv venv
$ source venv/bin/activate
$ pip install -e .[dev]

Run Tests

$ pytest

Release History

- Work in progress

Meta

Andre P. Santos – @ztzandreandreztz@gmail.com

Distributed under the MIT LICENSE. See LICENSE for more information.

https://github.com/andreztz

Contributing

  1. Fork it (https://github.com/andreztz/pyradios/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

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

pyradios-2.1.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

pyradios-2.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file pyradios-2.1.0.tar.gz.

File metadata

  • Download URL: pyradios-2.1.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for pyradios-2.1.0.tar.gz
Algorithm Hash digest
SHA256 5d3a70f1b805668df93c99e0afda30794e9f637280a6126cac48642b35872c80
MD5 3641bcb0021ef04ae0571fdf6b5f1ceb
BLAKE2b-256 e324350a91a39880748864bd8b883cd3fb22b9f298ea89de014c58d610d13006

See more details on using hashes here.

File details

Details for the file pyradios-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyradios-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for pyradios-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6dbea430c0dc41cf13306baeb763cbaada153c40bdbd6c4907210330e8575ebf
MD5 4961c6b4a89450b13b605f0d3d28cda1
BLAKE2b-256 c701b71fb0f12ad7609a857a2dd3e8e6bff700656d2f58297034df42adec34e2

See more details on using hashes here.

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