A module to interact with the Flare Radio API
Project description
Flare Radio Python Module
Description
A Python package that allows you to interact with the Flare Radio API. The API is currently limited, but more features will be added over time. Please ensure you regularly update this package to stay current.
Installation
pip install flareradio
Usage
There are currently two functions: stats()
and upcoming()
. Both are simple to use:
stats()
: Retrieves the currently playing song on Flare Radio.upcoming()
: Provides details about the next three shows.
All data is returned in JSON format. While other formats are not supported at this time, we plan to introduce additional options in the future.
Examples
from flareradio import stats, upcoming
# Get current stats
try:
data = stats()
print(data)
except Exception as e:
print(f"Error: {e}")
# Get upcoming shows
try:
shows = upcoming()
print(shows)
except Exception as e:
print(f"Error: {e}")
Support
If you encounter issues or have suggestions for improvement, feel free to join our Discord server to discuss.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file flareradio-1.0.2.tar.gz
.
File metadata
- Download URL: flareradio-1.0.2.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 670938e28da5c35af028d9df888b0e05a6cef32967e563bc92f01ec3fd69b363 |
|
MD5 | a76676dc5d5a40f0c90ba120806d9d46 |
|
BLAKE2b-256 | a4ba65151748d05b46509ea6d389c578dd4e53218189147f971fa280fbf0ed82 |
File details
Details for the file flareradio-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: flareradio-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcd165ab32b423fde3e210e13d6f3b3aa3c5b566b59c80e67120ea8af77d2a75 |
|
MD5 | 8706109b9b690b9f1fa9a2cc7de4291d |
|
BLAKE2b-256 | c4b3d6c21407dd3f994a6549b0beffebbbb29680e3e3ab8fd4665e9b094ecf34 |