Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ovos-media-provider-pyradios

OVOS MediaProvider plugin for internet radio. It replaces the deprecated OCP search skill ovos-skill-pyradios.

Instead of broadcasting ovos.common_play.query over the bus and waiting for skills to answer, the OCP pipeline loads MediaProvider plugins in-process, gates them by routing, and calls search() directly. This plugin wraps the pyradios client for the radio-browser.info API.

pyradios ships no mediavocab bridge, so this plugin builds mediavocab.Release objects itself from the raw station dicts: each station becomes a MediaType.RADIO Work plus a continuous-stream Release that points at the resolved stream URL.

Install

pip install ovos-media-provider-pyradios

Usage

OCP loads this plugin through its opm.media.provider entry point, so most users never call it directly. To use it as a standalone library, call search() with a mediavocab.Signals object:

from mediavocab import Signals
from ovos_media_provider_pyradios import PyRadiosMediaProvider

provider = PyRadiosMediaProvider()
releases = provider.search(Signals(title="BBC Radio 1"))
for release in releases:
    print(release.work.title, release.uri)

search() queries radio-browser by station name. If signals carries genre or content tags, the plugin passes them through as a radio-browser tag_list filter. It returns an empty list when the request carries neither a title nor genres, or when the radio-browser API is unreachable.

Routing

There is no declarative routing table. OCP calls every installed provider's search() method for each query; a provider that cannot serve the query (no title or genre tags in the request, no matching stations, an unreachable radio-browser API) just returns an empty list.

Entry point

[project.entry-points."opm.media.provider"]
pyradios = "ovos_media_provider_pyradios:PyRadiosMediaProvider"

Configuration

Key Default Description
max_results 10 Maximum number of stations returned per search.

License

Apache-2.0

Metadata

Release files for ovos-media-provider-pyradios 0.0.1a6

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

Source distribution (sdist)

Source distribution for ovos-media-provider-pyradios 0.0.1a6
File Size Uploaded Provenance Actions
ovos_media_provider_pyradios-0.0.1a6.tar.gz 10.6 kB Without provenance Details for ovos_media_provider_pyradios-0.0.1a6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ovos-media-provider-pyradios 0.0.1a6
File Interpreter ABI Platform Actions
ovos_media_provider_pyradios-0.0.1a6-py3-none-any.whl Python 3 none any Details for ovos_media_provider_pyradios-0.0.1a6-py3-none-any.whl

Total release size: 21.0 kB

Release files / ovos_media_provider_pyradios-0.0.1a6.tar.gz

Download URL ovos_media_provider_pyradios-0.0.1a6.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f125103585e07ada7dc1785b5e094e46029c099463b0aadbf95bd6bf68f87a05
BLAKE2b-256 checksum
How to use checksums
0d9e0dedc3737caf488db033603fc9d7ca09aedc98bc0fd4dafc260ccb4a7a01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / ovos_media_provider_pyradios-0.0.1a6-py3-none-any.whl

Download URL ovos_media_provider_pyradios-0.0.1a6-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a4490a059ece21b6fe3db746168b5ac15b63d434836cafe792296be6c925cc7
BLAKE2b-256 checksum
How to use checksums
de4ef48af7b026ce6989ecba90da188593f28c9355feb53ea7b0aebb4e7dd0bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for ovos-media-provider-pyradios 0.0.1a6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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