podqast
Python BytesMichael Kennedy and Calvin Hendryx-ParkerAll episodes

#505 Introducing diskcache-oxide

40 min
Next episode#506 Raft, Rust, and release day31 min
Get its new episodes on Latest. No account

Topics covered in this episode:

Watch on YouTube

About the show

Sponsored by LongLink: pythonbytes.fm/longlink

Connect with the hosts

Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Tuesday at 7am PT. Older video versions available there too.

Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.

Michael #1: tinyjobs: a SQLite job queue goes free-threaded

tinyjobs is a Python job queue and cron scheduler that starts with a SQLite file and no dependencies. Switch the URL to Postgres or Redis without rewriting tasks. It runs async tasks natively, embeds workers in FastAPI, and plugs into Django 6's tasks framework. The creator's free-threading audit found four races hidden by the GIL.

Docker setup:

services:
web:
build: .
command: uvicorn main:api --host 0.0.0.0
volumes: [jobs:/data]
worker:
build: .
command: tinyjobs worker --app tasks:app --shutdown-timeout 25
stop_grace_period: 40s
volumes: [jobs:/data]
volumes:
jobs:
external: true

Calvin #2: funkycache: cache Python functions in SQLite

Episode page ↗
More from Python Bytes