Toy project I use to learn new technologies, mainly REST concepts. https://2chainz.ansonbiggs.com
The latest versions is build using UV, FastAPI and Pytest. I was planning on adding some Robot Framework which a job wanted me to learn, but it didn’t seem like something I wanted to learn. The project is running locally on Tower thanks to Cloudflare Tunnels.
FastAPI turned out to be a pretty high quality library, but I’m not sure it totally lived up to the hype for this project. Automatic documentation generation is pretty slick, and it is fun to have something so performant with almost no work. My favorite part is probably how easy it was to write tests for.
from fastapi.testclient import TestClient
client = TestClient(app, base_url="http://chainz.ansonbiggs.com")
is pretty much all the setup that was needed to run tests against the REST API.
UV made this project really easy to work with as well. As I’ve talked about a few times, up until recently I would use a Docker Dev Container for working with Python. But, this made running locally really easy, even when I needed to switch machines, and it made setting up the GitLab CI CD really easy.