Blogs
Pydantic series
The focus in this blog is on validation, as well as being able to return the same output as we got the input. Which is a json format. As an example, when parsing an IP address as a string, the output value should be a string again and not an ipaddress object. Or the MAC address which needs to retain …
Managing dockers using …
Synology NAS devices are great and easy to use devices. The model I use is plenty strong to running a few containers as well. However, the Synology Docker application is not the best when it comes to managing multiple containers. It is a bit clunky and does not provide the flexibility I want. …
Taskfile magic with …
I have been using Taskfile for a while now, and I really like it. It is a great alternative to Makefile, and it has some nice features that make it easier to use.
In this post I wanted to share some “magic” to be able to select the right docker compose application to use. Either the …
Convert poetry to uv
When I encountered #uv I fell for it right away. I was already using ruff for a while and started looking into rye, which was the intermediate step before it became uv.
Creating a uv repo is easy, just run uv init $project and you are off to the races. Using it for new projects is easy if you are …
Improved shebang for your …
Sometimes you just want a script, without having to specify a virtualenv or polluting your global python environment. Given PEP-0723 we can build scripts as we would normally, though now add a few comments to it to specify the dependencies.
When we combine that with uv we can easily run the script …
Paperless
Recently I was helping out some friends with paperless, how to structure their documents, how to implement a flow for their documents, etc. On occasion this triggered me to look at how I use paperless myself. I’ve been using it for a while now and I’m very happy with it. I’ve also …
Pypi Trusted Publisher …
Be the cool kid on pypi, I thought, use the Trusted Publisher Management and OpenID Connect (OIDC)… I thought…
While working on my latest repo convert_poetry2uv, I wanted to automatically push the builds to pypi. Traditionally a username/password combination was used, which was later …
Contact form made simple
Today I ran into a service that allows you to create a contact form without having to write a bunch of code. Making it really easy to incorporate it in your mkdocs website.