Skip to main content

Flask webapp that will archive a podcast from a RSS feed. It will download the episodes and re-host them.

Project description

Archive Podcast

Check CheckType Test codecov Docker SpellCheck

Flask webapp that will archive a podcast from a RSS feed. It will download the episodes and re-host them.

Features:

  • Webapp
    • List of feeds hosted
    • File listing for unlisted episodes
    • Web player
    • Health check page
  • Looks for new episodes to fetch every hour
  • Rename feeds to indicate that they are an archive
  • Local or S3 storage backend

In theory this works in windows however I haven't tested it, it ~should be able to handle windows file paths fine.

Docs are at https://archivepodcast.readthedocs.io/en/latest/

Setup

Install dependencies

You will need to install ffmpeg for your platform. Should be on your package manager or download the binary to /usr/local/bin.

You will need to install git-lfs for your platform to fetch the .woff font files.

If you cloned the repo without git-lfs installed, run the following commands to fetch the files:

git lfs install
git lfs fetch --all
git lfs pull

Pre Commit Hooks

To set up pre-commit hooks run:

uv tool add pre-commit --upgrade
pre-commit install

Setup Python Environment

Development

uv venv
source .venv/bin/activate
uv sync

Production

uv venv
source .venv/bin/activate
uv sync --no-default-groups

Running archivepodcast webapp

This will run a webapp on http://localhost:5100 (configurable) that will:

  • Run persistently
  • Host RSS feeds of the podcasts
  • If "live" : true in config toml is set it will look for and download new episodes every hour
  • If you send it a SIGHUP command it will reload the configuration, be sure to check the logs to see if it was successful.

Development: flask --app archivepodcast run --port 5100

Production: waitress-serve --threads=4 --listen 0.0.0.0:5100 --call archivepodcast:create_app

An example guide on setting it up start to finish, with all features and saving episodes do disk can be found in the docs. There are others for if you want to use s3 to host assets, or even host the whole thing on s3.

Todo

  • readme again
  • Container Registry
  • header as a table, or divs
  • Fix font selection for frontend, done?
  • Cloudflare worker cron (CF still in beta)
    • Terraform example
  • pydantic xml

Prod time to beat running adhoc, 56 seconds.

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

archivepodcast-1.5.3.tar.gz (49.8 kB view details)

Uploaded Source

Built Distribution

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

archivepodcast-1.5.3-py3-none-any.whl (69.2 kB view details)

Uploaded Python 3

File details

Details for the file archivepodcast-1.5.3.tar.gz.

File metadata

  • Download URL: archivepodcast-1.5.3.tar.gz
  • Upload date:
  • Size: 49.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for archivepodcast-1.5.3.tar.gz
Algorithm Hash digest
SHA256 6c9412d38f51cdf32c1c053509eabc8ae6110b100e783ed118ed4060f8bdb34c
MD5 9de5616abb491028351d559a9c2d18c4
BLAKE2b-256 51d84333ea76c7ab5db21438bc3ddb4d032013af85c9145f57ce7d9e444700fe

See more details on using hashes here.

File details

Details for the file archivepodcast-1.5.3-py3-none-any.whl.

File metadata

  • Download URL: archivepodcast-1.5.3-py3-none-any.whl
  • Upload date:
  • Size: 69.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for archivepodcast-1.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bb6620ab23955dd18b9858cf86ee938bacb4e94f9a8494628127d0024c37dc73
MD5 4d6f90fa01cf1e8980ff5416dcf2a071
BLAKE2b-256 233a019423c0e946c364b34f260043d010cb609994cc107ab9ce42d3b5ae8a85

See more details on using hashes here.

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