Web application from scratch, Part II

This is the second post in my web app from scratch series. If you haven’t read it yet, you can find the first part here. You’ll want to read that one first.

Web application from scratch, Part I

This is the first in a series of posts in which I’m going to go through the process of building a web application (and its web server) from scratch in Python. For the purposes of this series, I’m going to solely rely on the Python standard library and I’m going to ignore the WSGI standard.

Without further ado, let’s get to it!

Automatic retries with Celery

One of the things that I think Celery could be doing better out of the box is to provide support for automatically retrying tasks on failure (thereby forcing users to write idempotent tasks by default).

Dramatiq cron with APScheduler

Here’s a quick way you can combine Dramatiq and APScheduler to automatically schedule tasks to execute at certain times.

Podcast.init interview

I was on Tobias Macey’s podcast to talk about Dramatiq.

Prometheus metrics and API Star

This past week I started playing with API Star and I’m kind of in love with it right now. Being a new project, its docs are a bit lacking – its source code, however, is high quality and easy to understand – so it took me a little time to figure out a way to automatically track request and response metrics using Prometheus.

Building a PDF API with Django and Dramatiq

In this post I talk about how you can use Django, Dramatiq and h2p to create a simple HTTP API that can turn any URL into a PDF.

Announcing django_dramatiq

An app that integrates Django with Dramatiq.

Announcing h2p

This past week I released h2p, a simple python frontend to libwkhtmltox that lets you generate PDF files from web pages without needing to spawn subprocesses.

Announcing dramatiq

The Celery alternative you’ve always wanted.