Anže
@anze3db.pecar.me
1.3K followers 160 following 130 posts
Writing Python and surfing waves 🏄‍♂️
Posts Media Videos Starter Packs
anze3db.pecar.me
Yes, it's milliseconds. The web server and PostgreSQL server run on the same machine, so there is no network lag.
anze3db.pecar.me
I've improved the performance of the starter packs list query from about 200ms to 2ms. 🎉

The trick was to stop dynamically computing the number of accounts in a starter pack and instead precompute it in a column.

A bit more work on each update, but worth it!
anze3db.pecar.me
Yesterday, Python 3.14 was released, and today all of my Django side projects are running on 3.14. 🎉

The upgrade didn't require any code changes on my part, but I did see a few return statements in the finally block SyntaxWarnings in a few dependencies.
Reposted by Anže
pablogsal.com
🐍 Python 3.14 is here! 🎉

✨ Template strings (t-strings) for safer string interpolation
🚀 Free-threaded Python officially supported (bye GIL!)
🎨 Syntax highlighting in the REPL
📦 Zstandard compression in stdlib
🔍 Remote PDB debugging

Full release notes: docs.python.org/3.14/whatsne...
anze3db.pecar.me
Oh interesting! Would be great to know why Granian worked so much better. I had many services under heavy load but the bottleneck was never Gunicorn.
anze3db.pecar.me
Over the weekend, I migrated one of my Django Apps from Gunicorn to Granian.

TLDR:
• The migration went smoothly.
• There were no visible performance gains.
• I still can't set a timeout for requests.

I also wrote a blog post about this: blog.pecar.me/migrating-g...
Migrating Gunicorn to Granian
I migrated one of my Django apps from Gunicorn to Granian yesterday. Here is how the migration went and some of my thoughts on Granian and Gunicorn.
blog.pecar.me
anze3db.pecar.me
The plan with this meetup group is to meet on every first Thursday of the month. To get up to date info join us on Discord

discord.gg/23emSpY7
Join the Python 🐍 Lisbon Meetup Discord Server!
Discord server for the Python Lisbon Meetup community. | 51 members
discord.com
Reposted by Anže
setnomt.bsky.social
The Python Lisbon Meetup is kicking itself up. We will meet monthly, every first Thursday. Edition #0 is less than a month away, on Sep 4th.

Join us on Discord for tuning in!

discord.gg/PEnzcJzNyj
anze3db.pecar.me
pip, pip-compile, and now uv. The migration from pip-compile to uv took 5 minutes 😄

Optional chaining would save you time when writing new code but makes debugging more difficult as you no longer know where the null came from…
anze3db.pecar.me
Agreed, very dumb to standardize on a format that only has object, array, string, bool, and "number" types. 😆
anze3db.pecar.me
How many different state libs did you go through in 10 years? How many reuter migrations? How many libs to render a table? Are you still writing class components?

Yes, Python 2 -> 3 was pain but still easier than getting a project from jQuery to React. Python 2 came out 6 years before jQuery.
anze3db.pecar.me
This is a json problem not a python problem because json doesn't have a datetime type 🤷‍♂️
anze3db.pecar.me
But at least you don’t need to rewrite your code in a new framework every other year 🤷‍♂️
anze3db.pecar.me
The best TED Talk I've seen was about tying shoes.

It's mind blowing that we are all taught the weaker form of the knot as kids and never learn that there is a stronger version.

www.ted.com/talks/terry...
How to tie your shoes
Terry Moore found out he'd been tying his shoes the wrong way his whole life. In the spirit of TED, he takes the stage to share a better way.
www.ted.com
anze3db.pecar.me
LLMs really are an amazing peace of technology. How were we ever able to live without them?
Thank you very much! :) was transformed into "Gratitude for assistance was expressed"
anze3db.pecar.me
Air75 v3 from NuPhy
anze3db.pecar.me
Early birthday present has arrived! 🎂
Reposted by Anže
mathspp.com
Who's up for showing up at @pyconpt.bsky.social this Thursday to give a 30 minute talk?

We just had a last-minute cancellation!
anze3db.pecar.me
I have not but I also haven’t done much with async Django either 🤷‍♂️
Reposted by Anže
djangoproject.com
Happy 20th birthday Django! 💝🎂🎉

www.djangoproject.com/weblog/2025/...

Our open source journey started 20 years ago today, on July 13th 2005. Come celebrate this big milestone at one of our many community events this year

#Python #Django #OpenSource #DjangoBirthday
Happy 20th birthday Django!
Posted by Thibaud Colas & Benjamin Balder Bach on July 13, 2025
www.djangoproject.com
anze3db.pecar.me
I already listen to too many dude’s podcasts 😅

I read the book a few years back and I highly recommend it in any shape or form.

The trailer for the movie also looks great but don’t see it if you haven't read the book since it spoils more than half of it!