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 ✅ Displaying and listening to previous shows

Not implemented

❌ Pausing or rewinding live radio

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:
        client = SoundsClient()
        if await client.auth.authenticate(username, password):
            stations = await client.stations.get_stations()
            schedule = await client.schedules.get_schedule("bbc_6music", date="2025-10-26")
            bbc_6music = await client.stations.get_station("bbc_6music", include_stream=True)
            
    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.6.tar.gz (261.3 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.6-py3-none-any.whl (286.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: auntie_sounds-1.1.6.tar.gz
  • Upload date:
  • Size: 261.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for auntie_sounds-1.1.6.tar.gz
Algorithm Hash digest
SHA256 62c5ebc7a706a4378490f58054bb4f5c42f11c4494ba4adca63fc926577e6522
MD5 46acad3e9bcea6c87d12b9f83cd3205b
BLAKE2b-256 2ee52e3f6872ea2d086d9f15148f878c41ed33db7b0b4f340222229236b4cb5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: auntie_sounds-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 286.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for auntie_sounds-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3b39f7c28acf6e339e24baf36c8ba2bb917bb08981f4945b675d462856c396cb
MD5 e0117d1ecf81820512dd2542067116e4
BLAKE2b-256 73bfc1071fa2e8f7fa295afe6cbebd8148cab24f5afefb96edba89a147050004

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