We announced the Type Server Protocol ( #TSP ) today so you can choose your type checker to power things like #Pylance in #vscode . We are launching with support for #Pyrefly so that if it's your preferred type checker in CI it can also be used with Pylance. devblogs.microsoft.com/python/annou...
Brett Cannon
Brett Cannon
@snarky.ca
#Python core developer who also works on packaging; works on Python stuff at #Microsoft (although this is a personal account). Proudly #Canadian.
4.1K followers80 following586 posts
Brett Cannon reposted
Brett Cannon reposted
We are looking for our next PM for my/Python team and our sibling Java team! www.linkedin.com/posts/marian...
Brett Cannon reposted
Did you know? @ucberkeleyofficial.bsky.social has added #Gleamlang to it's CS course!
Wrote a blog post about what gaps exist which prevent having reproducible builds for Python. snarky.ca/whats-missin... This came to me while writing my nomination statement for the PPC.
Brett Cannon reposted
Wow, @pypi.org crossed 2 EXABYTES bandwidth served in 2026. For comparison, **all traffic served in 2025** was only 1.95 Exabytes. Thanks to @fastly.com, over 99.999% of that is absorbed by their powerful global caching layer, chugging along to serve #OpenSource #Python users worldwide
I self-nominated myself for the Python packaging council today. I have posted my nomination statement as a blog post. snarky.ca/my-nominatio...
If you want to run or give supporting nominations to anyone else who's running (yes, that includes me), www.python.org/nominations/... is taking nominations until August 11, 14:00 UTC.
Brett Cannon reposted
Brett Cannon reposted
Replying to @gleam.run
Share details about your Gleam project with us! forms.gle/Yu6QZfnxNKXM...
If @jakebailey.dev was Norwegian.
A Norway fan has gone viral for not taking part in their Row celebration after matches and won't do it if they win the World Cup "It’s factually wrong; they didn’t row, they sailed over the Atlantic”
Brett Cannon reposted
📣 The moment is here. 📣 TypeScript 7 is officially released! 7️⃣ devblogs.microsoft.com/typescript/a...
Brett Cannon reposted
npm v12 is now generally available. npm install now makes install scripts, Git, and remote-URL dependencies opt-in by default. We're also retiring npm 2FA-bypass GAT: no account management (early Aug 2026), no direct publishing (~Jan 2027). More info at github.blog/changelog/20...
If you use GitHub Actions to publish to #PyPI, I wrote a blog post outlining what I consider the key things you can do to secure your publishing workflow. snarky.ca/how-to-publi... If you don't use GitHub Actions for publishing, this post will NOT be of interest to you.
@tiangolo.com are there any plans for hosting SQLite3 databases on @fastapicloud.com ? For a personal blog I just don't need something as fancy as Postgres which requires setting up another service. All I want is a SQLite3 file that I can occasionally download for backup purposes.
Brett Cannon reposted
Brett Cannon reposted
FastAPI Cloud is now in Public Beta ⚡ Deploy @fastapi.tiangolo.com apps with: fastapi deploy No waitlist. Try it now. 🚀 You Code. We Cloud. 😎 fastapicloud.com/blog/fastapi...
Brett Cannon reposted
Setting up a direct indexing account has generally not been worth the hassle, but it sure feels great to be able to exclude SpaceX from my investment list
BREAKING: SpaceX is now worth more than Amazon. SpaceX market cap is $2.75 trillion, Amazon's is $2.65 trillion. Amazon's profits were $78 billion last year. SpaceX lost $5 billion last year.
Brett Cannon reposted
The rainbow is here all year long, so we don't need to change the profile for June. But it is a good time to remind everyone that LGBTQIA+ rights are under attack all year long as well. And to steal @haskell.org's message: there would be no Gleam without trans people 🩵🩷🤍
Brett Cannon reposted
Gleam is free from corporate interference and control, but that means financially we rely entirely on our sponsors! Please consider supporting Gleam, even if just a couple of dollars. Thank you! 💖 gleam.run/sponsor/
Brett Cannon reposted
🤔📚 Wondering what to do this weekend? Grab the latest No Starch Press Humble Bundle, ‘Python: the Good Stuff’ and dig into 15 #Python related titles for just $36! A percentage of the proceeds goes to supporting the PSF! www.humblebundle.com/books/python...
A @humblebundle.com for people learning Python, people automating busywork, people teaching the machines, and people trying to escape Excel. Pay what you want. DRM-free. Supports @python.org https://www.humblebundle.com/books/python-good-stuff-no-starch-books
Brett Cannon reposted
💡 Fun fact for the day. Learn more about Gleam's 'use' in our language tour: tour.gleam.run/advanced-fea...
Brett Cannon reposted
Replying to @hugovk.dev
🐍🚀 Out now: Python 3.15 beta 2! 💤 Lazy imports! 🧊 frozendict builtin! 💂 sentinel builtin! 📉 Tachyon profiler! 🖼️ Frame pointers everywhere! 🎨 More colour! 🚌 & more! Library maintainer? Add 3.15 to your CI and keep those bugs coming! discuss.python.org/t/python-3-1... #Python315 #Python #release
`operator.itemgetter` and `attrgetter` get under-used IMO. Same goes for `else` clauses on `for` and `while` loops.
Python Tip #148 (of 365): Sort by specific sequence items with operator.itemgetter 🧵 Have an iterable of sequences (tuples, lists, etc.)? You can sort them by one or more of their indexes using itemgetter from Python's operator module. from operator import itemgetter #Python #DailyPythonTip
Brett Cannon reposted
Brett Cannon reposted
We have a unique keynote this year: Guido van Rossum - the creator of Python - will be the guest on an episode of the core.py podcast, recorded live from the #EuroPython stage by @lukasz.langa.pl and @pablogsal.com Grab your ticket: ep2026.europython.eu/tickets/ #europython #python
Brett Cannon reposted
excited to announce that Wizard Zines is now shipping Canadian orders from Canada! now shipping is cheaper & there's no risk of being hit with duties get your zines at wizardzines.com
Brett Cannon reposted
prek now supports cooldown in either user or project config: github.com/j178/prek/re... pre-commit closed and locked the feature request as one of many many duplicates, but I can't find any: github.com/pre-commit/p... #PreCommit #prek #cooldown
Brett Cannon reposted
PEP 831 (aka "frame pointers everywhere!") was accepted! If you are an author of a C extension or native lib built with a custom build system, it is now strongly recommended you add -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer to CFLAGS so profilers & debuggers can step through your lib.
Brett Cannon reposted
Well, let's fix those pprint defaults! mastodon.social/@treyhunner/... Which do you prefer? github.com/python/cpyth... github.com/python/cpyth... #Python #Python315 #pprint
Big news (for me at least): pprint on Python 3.15 is going to allow MUCH friendlier output! 🎉 Instead of: pprint.pprint(some_object) If you do this: pprint.pprint(some_object, indent=4, expand=True) You'll see output that looks like the most commonly used modern Python line-wrapping style!
Brett Cannon reposted
Go to your @fastapi.tiangolo.com project and run: uvx library-skills Teach your AI coding agents to use FastAPI properly. 😎 library-skills.io
Brett Cannon reposted
IT'S HAPPENING!!! 💃 People have asked me for an official @fastapi.tiangolo.com Conference for years. Here we go, let's meet in Amsterdam. ☕️
Big news: the first-ever ✨ FastAPI Conf ✨ is coming! 📍 Amsterdam 📅 October 28 Meet the FastAPI team, connect with developers ☕️ 🎟️ Join the waitlist for early ticket access: fastapiconf.com
Note the "installing from pylock.toml" part 😁
pip 26.1 is an incredible release, thank you to the pip maintainers!! 💜 – Relative dependency cooldown support! – Installing from pylock.toml – Multiple security fixes Read the full blog post by Richard Si: ichard26.github.io/blog/2026/04... #python #pypi #pip #security #oss #opensource
Brett Cannon reposted
The argument of "Hammock Driven Development" is simple: most bugs aren't caused by bad code, they're caused by insufficiently understood problems. More thinking, less typing. Seems more relevant today than ever. Watch the talk here: www.youtube.com/watch?v=f84n...
Brett Cannon reposted
Brett Cannon reposted
Now there's autocompletion and docs in pyproject.toml for FastAPI 🎉 [tool.fastapi] entrypoint = "main:app" Make sure you have a modern editor and TOML plugin, like @vscode.dev with Tombi 🤓
Brett Cannon reposted
Brett Cannon reposted
Brett Cannon reposted
Free-threaded Python with @fastapi.tiangolo.com 🧵🚀 (this is not a thread, just a threads emoji)
FastAPI 0.136.0 officially supports: ✨ free-threaded Python 🐍 ✨ (this announcement has no GIL puns) Thanks @oxykodit.bsky.social, @patrick.wtf, Nathan Goldbaum, @nucleonjohn.bsky.social 🙌 github.com/fastapi/fast...
Brett Cannon reposted
An internal team just adopted tsgo (soon TypeScript 7) and told us they were able to shave off about 400 hours a month of waiting on CI builds. npmx.dev/package/@typ...
Brett Cannon reposted
come work with meeee (again): we're hiring (again) at the Python Software Foundation! We're looking for a Sustainability Engineer to join my team for a once-in-a-lifetime contract role (global, remote) details: pythonsoftwarefoundation.applytojob.com/apply/xz5k3X...
PEP 832: virtual environment discovery discuss.python.org/t/106998 This PEP also puts me in a tie with @vstinner.bsky.social for being the 4th most prolific PEP (co-)author. 😅
Brett Cannon reposted
Real talk on PyCon US hotels and conference economics.
Are you going to #PyConUS? Have you booked in our hotel block? New on the blog, some hard numbers & why we’re in a tight spot. We only have until April 24th to turn the tide, so please read, share, and book your PyCon US stay in the official block today.