browniebroke.com

Posts tagged as "python"

Manage deprecations with Python warnings in a Django project

November 22, 20245 min read

Python has a module in its standard library that can be very helpful tool to manage deprecations. It’s commonly used by libraries but can…

Keep uv.lock file up-to-date with Dependabot updates

October 02, 20242 min read

In the past couple of weeks, there has been a lot of interest in the Python community for what started as a new Python package manager, but…

Narrow state of a Django model using Python TypeGuard

August 31, 20244 min read

Today, I came across a problem with type checking in a Django project which led me to use for the first time. I’ve heard about them in…

Attest build provenance for a Python package in GitHub actions

August 08, 20244 min read

As you may have noticed, supply chain attacks ae on the rise. These attacks usually target a small piece of software infrastructure that the…

Bulk updating multiple repos with all-repos

July 10, 20237 min read

I like the open source communities and all the developments that they enable. As a developer, I like to have the ability to solve my own…

Nested ViewSets with Django REST Framework

May 05, 20236 min read

I’ve been using Django REST Framework for a while now but mainly in old projects where lots of code have been written. In most cases, these…

Convert a Poetry package to the src layout

January 19, 20223 min read

The layout is commonly used in Python ecosystem nowadays (even the pytest docs recommend it), but I’m not really using it on my projects. I…

Convert Python requirements to Poetry format

January 07, 20212 min read

I recently wrote about migrating a Python project to Poetry, however, this guide is quite manual process. I recently came across dephell, wh…

Migrating a project to Poetry

October 18, 20209 min read

Poetry is a tool solving the problem of Python packaging. It was started back in February 2018 by Sébastien Eustace (also the author of pend…

Auto-update pre-commit hooks with GitHub Actions

July 12, 20203 min read

Pre-commit hooks are great to reduce the feedback loop for things like linting and auto-formatting. Git supports them out of the box, but…

Making Celery work nicely with Django transactions

June 25, 20195 min read

I’ve been using Celery in my Django projects for about 5 years now. Along the way, I made some mistakes, learned from them and picked up a…

Static vs. Media files in Django

June 18, 20196 min read

Django is a great Web framework for building Web applications in Python. It comes with a lot of batteries included that you’ll most likely…

Add cache-control header to an entire S3 Bucket using Boto3

May 01, 20192 min read

I recently came across a task which seem pretty generic, but for which I couldn’t find an existing solution online: update the header for…

See all posts...

© 2024, Built with Gatsby