Bernát Gábor
gjbernat.bsky.social
Bernát Gábor
@gjbernat.bsky.social
Senior Software engineer @Bloomberg (from 🇭🇺🇷🇴🇬🇧), living in Los Angeles 🇺🇸 @ThePsf fellow. Maintainer of many - http://bernat.tech/about (tox, virtualenv,...) Python packages. Opinions my own.
My presentation about using rust from python from PyConUS got published very quickly this year 😁
youtu.be/CqOZdTFb4io?...
🐍 Python meets the crab 🦀 - Friendship at first sight? (Sponsor: Bloomberg)
YouTube video by PyCon US
youtu.be
May 21, 2025 at 12:29 AM
🚀 tox 4.26 is out!

- Introduces free-threaded builds (just add t to your env name)
- Adds support for Python 3.14
- Fixes virtualenv no longer bundling wheel on >3.9
- Drops support for Python 3.8

Huge thanks to all contributors! 🙌
🔗 github.com/tox-dev/tox/...
Release 4.26.0 · tox-dev/tox
What's Changed Add a missing quote in a TOML example @ config.rst by @webknjaz in #3509 Add colour to GitHub Actions CI logs by @hugovk in #3525 Fix using deprecated virtualenv option --wheel by @...
github.com
May 13, 2025 at 3:04 PM
@hugovk.dev now that template strings are a thing can we use them in standard logging to use F string like formatting without performance complications? docs.astral.sh/ruff/rules/l... 🤔
logging-f-string (G004) | Ruff
Checks for uses of f-strings to format logging messages.
docs.astral.sh
May 9, 2025 at 2:41 PM
See you there 😎
April 25, 2025 at 12:58 AM
April 12, 2025 at 1:09 PM
Reposted by Bernát Gábor
Today on our Speaker 📣 Spotlight 💡 we're highlighting @gjbernat.bsky.social who will be presenting Python Meet The Crab - Friendship At First Sight?

Join us April 13 either in-person or virtually to watch. Get your ticket today pytexas.org/2025
April 10, 2025 at 5:03 PM
What popular Python packages are using Rust (PyO3), I got cryptography, pydantic, ruff, uv and polars. What else am I missing?
April 2, 2025 at 4:14 PM
Reposted by Bernát Gábor
PEP 751 has been accepted! peps.python.org/pep-0751/

This means #Python now has a lock file standard that can act as an export target for tools that can create some sort of lock file. And for some tools the format can act as their primary lock file format as well instead of some proprietary format.
PEP 751 – A file format to record Python dependencies for installation reproducibility | peps.python.org
This PEP proposes a new file format for specifying dependencies to enable reproducible installation in a Python environment. The format is designed to be human-readable and machine-generated. Installe...
peps.python.org
March 31, 2025 at 9:28 PM
@sethmlarson.dev do you have a newer page of Rust vs Python on PyPI chart? Is there a top n (10) most popular packages using rust?
March 31, 2025 at 10:42 PM
Reposted by Bernát Gábor
Today on our Speaker 📣 Spotlight 💡 we're highlighting our second tutorial presenter, @gjbernat.bsky.social, who will presenting: The new wave of Python Packaging

Join us April 11 in-person for this tutorial and learn all about modern Python packaging! pytexas.org/2025
March 21, 2025 at 5:00 PM
Seems neither my tutorial or two talk proposals made the cut for this years PyCon US conference :)
February 8, 2025 at 1:03 AM
Because prettier is a bit heavy weight for formatting XML/XSDs and there's no better alternative for a pre-commit hook that handles XML created xml-fmt pypi.org/project/xml-... (uses under the hood CPython stdlib XML formatter docs.python.org/3/library/xm...) - 3.9+.
pypi.org
January 31, 2025 at 11:49 PM
Surprised me a bit that pre-commit-uv got 3 million downloads per month after just one of being released. 😱 Way more popular than expected 🤔 cc @crmarsh.com
January 21, 2025 at 7:28 PM
The latest virtualenv github.com/pypa/virtual... adds support for freethreaded Pythons, thanks Robsdedude for the contribution!
Release 20.29.0 · pypa/virtualenv
What's Changed release 20.28.1 by @gaborbernat in #2818 Makes --python command-line flag take precedence over env var by @filiplajszczak in #2821 Add free-threaded Python support by @robsdedude in...
github.com
January 15, 2025 at 9:29 PM
Reposted by Bernát Gábor
Textual 1.0 has been released. 🥳

Three years in the making. A TUI framework that is bigger than the terminal.

To celebrate, I want to give away some trade secrets. Because I am appalling at keeping secrets.

Tell me what you think of the diagrams...

textual.textualize.io/blog/2024/12...
Textual - Algorithms for high performance terminal apps
Textual is a TUI framework for Python, inspired by modern web development.
textual.textualize.io
December 12, 2024 at 3:27 PM
Reposted by Bernát Gábor
We're excited to announce the #PyTexas 2025 tutorials! Join us April 11, 2025 as @alsweigart.bsky.social and @gjbernat.bsky.social lead us in two AMAZING tutorials! Get your tickets today:

Schedule: https://www.pytexas.org/2025/schedule/tutorials/
Get Tickets 🎫 :
PyTexas 2025
April 11th – 13th, 2025
pretix.eu
December 11, 2024 at 4:00 PM
Reposted by Bernát Gábor
Today is my first day at Astral! Very excited to work with @crmarsh.com and the gang on Python tooling. It'll be fun (and strange) to focus on only one language for a bit!
December 2, 2024 at 2:54 PM
Reposted by Bernát Gábor
This cute armadillo wants you to submit to the #PyTexas CFP. He told me so.

https://pretalx.com/pytexas-2025/
Deadline to submit: 12/1 @ 11:59pm CST
November 27, 2024 at 2:00 AM
Proposals for @pytexas.org and @pycon.us 2025 done 😀 Make sure to submit yours before the deadline ends 😇
November 27, 2024 at 11:17 PM
Reposted by Bernát Gábor
I wrote a blog post explaining what the #PSF Conduct WG does since I have heard some people get it wrong.

snarky.ca/what-the-psf...
What the PSF Conduct WG does
In the past week I had two people separately tell me what they thought the PSF Conduct WG did and both were wrong (and incidentally in the same way). As such, I wanted to clarify what exactly the WG d...
snarky.ca
November 27, 2024 at 12:29 AM
@crmarsh.com seen
UV@Jane street, you said with rust you have a high confidence that you will be able to run it. I don't share that opinion as I run into in the past cases where some dependency crate failed to compile, especially if you're using more novel platforms like ARM on Windows and MacOS 😅
November 26, 2024 at 6:12 AM
Cut two releases to virtualenv today github.com/pypa/virtual... 👍
Releases · pypa/virtualenv
Virtual Python Environment builder. Contribute to pypa/virtualenv development by creating an account on GitHub.
github.com
November 26, 2024 at 4:34 AM
Reposted by Bernát Gábor
Everyone who just joined and is looking for Python people to connect with, I made a "starter pack" with many of the fun accounts. Add them to your followers list, #python:

go.bsky.app/3Uzma1g
November 20, 2024 at 12:10 AM