nrk-psapi
Asynchronous Python client for the NRK Podcast/Radio API
Installation
pip install nrk-psapi
Usage
The following are some basic examples of how to use the library.
Get information about a specific podcast:
import asyncio
from nrk_psapi import NrkPodcastAPI
async def main():
"""Main function."""
async with NrkPodcastAPI() as client:
podcast = await client.get_podcast(podcast_id="desken_brenner")
print(podcast)
if __name__ == "__main__":
asyncio.run(main())
Get all episodes for a specific podcast:
episodes = await client.get_podcast_episodes(podcast_id="desken_brenner")
for episode in episodes:
print(episode)
Search for a specific podcast:
search_results = await client.search(
query="Norsk", search_type=SearchResultType.PODCAST
)
for result in search_results.hits:
print(result)
Get curated podcasts:
curated_podcasts = await client.curated_podcasts()
for section in curated_podcasts.sections:
print(section)
for podcast in section.podcasts:
print(podcast)
Contributing
If you'd like to contribute to the project, please submit a pull request or open an issue on the GitHub repository.
License
nrk-psapi is licensed under the MIT license. See the LICENSE file for more details.
Contact
If you have any questions or need assistance with the library, you can contact the project maintainer at @bendikrb.
Metadata
Release files for nrk-psapi 0.11.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| nrk_psapi-0.11.2.tar.gz | 40.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nrk_psapi-0.11.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 92.2 kB
Release files / nrk_psapi-0.11.2.tar.gz
| Download URL | nrk_psapi-0.11.2.tar.gz |
|---|---|
| Size | 40.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40aea4b54901973835a1265609f23f1246596ea6b58082da903479997934aa11
|
|
BLAKE2b-256 checksum How to use checksums |
1c8d5a29b3277746a74479b22d55792c8ed2ba70a720508c043408469e53485d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.9
|
Release files / nrk_psapi-0.11.2-py3-none-any.whl
| Download URL | nrk_psapi-0.11.2-py3-none-any.whl |
|---|---|
| Size | 51.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a7ad864fdb3a23c137f8a25c9c76e9faa134c1ae1cf64bb94bf8d1e0bc508e19
|
|
BLAKE2b-256 checksum How to use checksums |
b68985bc723cb4dd8370bf2723462cb7f2ce8ccc6b8f8baa9015abfbd67ce915
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.9
|
Security for nrk-psapi 0.11.2
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.