Skip to main content

A podcast feed generator

Project description

podryk: A podcast feed generator

An RSS 2.0 feed writer for Python for generating Podcast feeds. Supported features:

Podryk is opinionated: If there is multiple conflicting specifications for a feature (like chapters), only one will be implemented.

Installation

You can install the python library with:

pip install podryk

Usage

An example with only required attributes:

from podryk import Enclosure, Episode, Guid, Podcast

feed = Podcast(
    canonical_link="https://example.com/canonical.rss",
    title="Podcast title",
    description="Podcast description",
    link="https://example.com/episode.html",
    language="en",
    explicit=False,
    image="https://example.com/podcast.png",
    episodes=[
        Episode(
            title="Episode title",
            guid=Guid(guid="12345678-1234-5678-1234-567812345678"),
            enclosure=Enclosure(
                url="https://example.com/audio.mp3",
                length=30000,
                type="audio/mpeg",
            ),
        )
    ],
).to_feed()

An example with all possible attributes:

from datetime import datetime, timedelta, timezone

from podryk import (
    Chapter,
    Enclosure,
    Episode,
    EpisodeType,
    Guid,
    Podcast,
    PodcastCategory,
    PodcastType,
    TextRecord,
    Transcript,
)

feed = Podcast(
    canonical_link="https://example.com/canonical.rss",
    title="Podcast title",
    description="Podcast description",
    link="https://example.com/episode.html",
    language="en",
    copyright="Copyright notice",
    categories=[
        PodcastCategory.FILM_REVIEWS,
        PodcastCategory.FILM_INTERVIEWS,
    ],
    explicit=True,
    image="https://example.com/podcast.png",
    author="Podcast author",
    type=PodcastType.SERIAL,
    complete=False,
    locked=False,
    guid="3595bd1c-50a4-504d-baf4-99de513b3737",
    text_records=[TextRecord(purpose="verify", content="S6lpp-7ZCn8-dZfGc-OoyaG")],
    episodes=[
        Episode(
            title="Episode title",
            guid=Guid(guid="12345678-1234-5678-1234-567812345678"),
            enclosure=Enclosure(
                url="https://example.com/audio.mp3",
                length=30000,
                type="audio/mpeg",
            ),
            link="https://example.com/episode.html",
            publication_date=datetime(2014, 6, 20, 10, 35, tzinfo=timezone.utc),
            description="Episode description",
            duration=timedelta(hours=1, minutes=10, seconds=50),
            image="https://example.com/episode.png",
            explicit=False,
            season_number=2,
            episode_number=30,
            type=EpisodeType.FULL,
            block=False,
            transcripts=[
                Transcript(url="https://example.com/episode.vtt", type="text/vtt"),
            ],
            chapters=[
                Chapter(start=timedelta(seconds=10), title="Episode chapter 1"),
                Chapter(
                    start=timedelta(minutes=2),
                    title="Episode chapter 2",
                    href="https://example.com/chapter.html",
                ),
            ],
        )
    ],
).to_feed()

Miscellaneous

Podryk implements a subset from the following Podcast specifications:

Create a ticket if you find any deviations from the mentioned specifications.

You can validate your podcast feed using one of these services:

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

podryk-0.1.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

podryk-0.1.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file podryk-0.1.0.tar.gz.

File metadata

  • Download URL: podryk-0.1.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for podryk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 00a13f9d5c46edf3e97620899e043f05963520e26615edc0782525274441c222
MD5 3aac28ee753745afaed3fea305d32b9e
BLAKE2b-256 49d91266104a5ccc2739623fc2647298c0a3056a4ea611c2082400f269de71c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for podryk-0.1.0.tar.gz:

Publisher: release.yml on julien-hadleyjack/podryk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file podryk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: podryk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for podryk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a270d1edf2136fb1ed2a8838307414d8d5f2014d2111c3479f7825eb6f265f04
MD5 a8d3a49ca415d993f75223348906727e
BLAKE2b-256 8a06d8a49a29bb61babc801a4c5ec671fce5595a942ece47ce4a30dfb0d5a657

See more details on using hashes here.

Provenance

The following attestation bundles were made for podryk-0.1.0-py3-none-any.whl:

Publisher: release.yml on julien-hadleyjack/podryk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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