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-1.1.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for podryk-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a4d88b11f5af13f09940abe7d0febb48b293d729657dc904cd5d5bfc0772dfe7
MD5 a28b18bc1a565a1226238f721dc2782a
BLAKE2b-256 79e80d94ffa1b596698b249a1309821972395be8223aea40f3a4219d7a0262b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for podryk-1.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-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: podryk-1.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-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed5173095a17a47bb95d5b392216022a18b69a8d0914860c73fb0e9bc5b0d8a3
MD5 04b2896f65208e33e940ce5998d49eba
BLAKE2b-256 e3f44574a492f2dbf94b52cd98c7efa8705fb0507926d7a2ec1c8d96433ea193

See more details on using hashes here.

Provenance

The following attestation bundles were made for podryk-1.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