Skip to main content

A library for interacting with BBC Radio stations and streams

Project description

Auntie Sounds

A library for interacting with BBC radio stations via an interface to BBC Sounds. It was written to be used for the BBC Sounds provider for Music Assistant but exists as a standalone library.

Features

✅ Signing into a BBC Sounds account
✅ Listing current station programming
✅ Obtaining a stream to listen to a station
✅ Getting the current and previous segments (typically songs) on a station

Not implemented

❌ Pausing or rewinding live radio
❌ Displaying and listening to previous shows

Notes

  • It is written as an async library
  • A BBC account is not required for most actions, but as BBC region-locks streams and is turning off non-UK access soon, is it the supported way to use it

Example Usage

import asyncio
from sounds import exceptions
from sounds.client import SoundsClient

async def main():
    try:
        async with SoundsClient() as client:
            if await client.auth.authenticate(username, password):
                stations = await client.stations.get_stations()
                bbc_6music = await client.stations.get_station("bbc_6music", include_stream=True)
                stream = bbc_6music.stream.uri
                schedule = bbc_6music.schedule
    except exceptions.LoginFailedError:
        ...
    except exceptions.APIResponseError:
        ...
    except exceptions.NetworkError:
        ...

asyncio.run(main())

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

auntie_sounds-1.1.4.tar.gz (270.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auntie_sounds-1.1.4-py3-none-any.whl (297.0 kB view details)

Uploaded Python 3

File details

Details for the file auntie_sounds-1.1.4.tar.gz.

File metadata

  • Download URL: auntie_sounds-1.1.4.tar.gz
  • Upload date:
  • Size: 270.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for auntie_sounds-1.1.4.tar.gz
Algorithm Hash digest
SHA256 7f9cb9f43e2c0ef15c05672f5e73d01c19d3f998256300e718c22b229904984d
MD5 d1f624e8138283652e87e0210e3d47fb
BLAKE2b-256 0ec0f9660962b766d00ee54eb22bebc6d3ad7dc71f478e51847e0b392df493bc

See more details on using hashes here.

File details

Details for the file auntie_sounds-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: auntie_sounds-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 297.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for auntie_sounds-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4a6d317066af4a23812a3e70eb82f7e9f9016af0520c23d68d914e61aa335443
MD5 3d5db603ece4543c974181a6e60b6285
BLAKE2b-256 098c3cf06e62d4fbad31c0bf4f857cb5ff6fe254c6dd369525562d11de13a199

See more details on using hashes here.

Supported by

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