Skip to main content

AzuracastPy is a Python package that allows for straightforward access to AzuraCast’s API.

Installation

AzuracastPy can be installed using pip.

pip install AzuracastPy

Quickstart

With the url of a radio hosted on AzuraCast, an instance of the AzuracastClient class can be created like so (An API Key is needed for more sensitive requests):

from AzuracastPy import AzuracastClient

client = AzuracastClient(
    radio_url="radio_url",
    api_key="(Optional) api_key"
)

With this instance, radio stations can be interacted with and queried:

# Get all stations served from the hosted radio.
stations = client.stations()
print(stations)

# Get data of a specific station.
station = client.station(1)
print(station.name, station.description, station.requestable_songs())

# Create a podcast on a station (API Key required).
from AzuracastPy.enums import Languages, PodcastCategories

station = client.station(1)

new_podcast = station.podcast.create(
    title="New podcast",
    description="This is a random description",
    language=Languages.ARABIC,
    categories=[
        PodcastCategories.Arts.DESIGN,
        PodcastCategories.Comedy.COMEDY_INTERVIEWS
    ]
)

Documentation

AzuracastPy’s documentation is located at https://azuracastpy.readthedocs.io/en/latest/.

Metadata

Release files for AzuracastPy 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for AzuracastPy 0.0.2
File Size Uploaded
azuracastpy-0.0.2.tar.gz 84.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for AzuracastPy 0.0.2
File Interpreter ABI Platform
AzuracastPy-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 181.6 kB

Release files / azuracastpy-0.0.2.tar.gz

Download URL azuracastpy-0.0.2.tar.gz
Size 84.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8d5104a85ed29ea4abb402eef4197ede3a2ce7544be385c147783785e1298765
BLAKE2b-256 checksum
How to use checksums
591cc010497bf370a95f94b1f7958c523e9d2382e31a34a69f431122b398e853
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / AzuracastPy-0.0.2-py3-none-any.whl

Download URL AzuracastPy-0.0.2-py3-none-any.whl
Size 96.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b32bb8283876a67ff7685f230835e3b6c9439061afa76ee97ffd8ce1e2151d9
BLAKE2b-256 checksum
How to use checksums
373728dd96e326eefa06398ff66dc1eba078e87c992950110b0a858780f450a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page