Python Bytes - #445 Auto-activate Python virtual environments for any project

Topics covered in this episode:
Watch on YouTube

About the show

Python Bytes 445

Sponsored by Sentry: pythonbytes.fm/sentry - Python Error and Performance Monitoring

Connect with the hosts

Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Monday at 10am PT. Older video versions available there too.

Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.

Michael #1: pyx - optimized backend for uv

  • via John Hagen (thanks again)
  • I’ll be interviewing Charlie in 9 days on Talk Python → Sign up (get notified) of the livestream here.
  • Not a PyPI replacement, more of a middleware layer to make it better, faster, stronger.
  • pyx is a paid service, with maybe a free option eventually.

Brian #2: Litestar is worth a look

  • James Bennett
  • Michael brought up Litestar in episode 444 when talking about rewriting TalkPython in Quart
  • James brings up
    • scaling - Litestar is easy to split an app into multiple files
    • Not using pydantic - You can use pydantic with Litestar, but you don’t have to. Maybe attrs is right for you instead.
  • Michael brought up
    • Litestar seems like a “more batteries included” option.
    • Somewhere between FastAPI and Django.

Brian #3: Django remake migrations

  • Suggested by Bruno Alla on BlueSky
  • In response to a migrations topic last week
  • django-remake-migrations is a tool to help you with migrations and the docs do a great job of describing the problem way better than I did last week
  • “The built-in squashmigrations command is great, but it only work on a single app at a time, which means that you need to run it for each app in your project. On a project with enough cross-apps dependencies, it can be tricky to run.”
  • “This command aims at solving this problem, by recreating all the migration files in the whole project, from scratch, and mark them as applied by using the replaces attribute.
  • Also of note
    • The package was created with Copier
    • Michael brought up Copier in 2021 in episode 219
    • It has a nice comparison table with CookieCutter and Yoeman
    • One difference from CookieCutter is yml vs json.
    • I’m actually not a huge fan of handwriting either. But I guess I’d rather hand write yml.
    • So I’m thinking of trying Copier with my future project template needs.

Michael #4: django-chronos

  • Django middleware that shows you how fast your pages load, right in your browser.
  • Displays request timing and query counts for your views and middleware.
  • Times middleware, view, and total per request (CPU and DB).

Extras

Brian:

  • Test & Code 238: So Long, and Thanks for All the Fish
    • after 10 years, this is the goodbye episode

Michael:

Joke: python is better than java

The Government Huddle with Brian Chidester - 192: The One with the Political Philosopher

Crom Carmichael, a government contracting entrepreneur, investor, and historian joins the show to explore what a truly efficient government could look like and what history has shown us to be the best way achieve one. We discuss his journey into political philosophy and the creation of his educational platform, Giants of Political Thought, and dive into the historical roots of government. Finally, we unpack the evolution of the U.S. healthcare system, the impact of tax policy on public services, and the role of innovation—especially AI—in driving productivity.

array(3) { [0]=> string(57) "https://mcdn.podbean.com/mf/web/rewjc3b6i9pptmdn/Crom.m4a" [1]=> string(0) "" [2]=> string(8) "37480871" }

The Stack Overflow Podcast - The future of Vue is you (and You)

Ryan welcomes Evan You, the creator of Vue.js, to explore the origins of Vue.js, the challenges faced during its development, and the project’s growth over a decade. They dive into potential integrations for AI, future developments for Vue.js, and the sustainability of open-source projects. 

Episode notes: 

Vue.js is a progressive JavaScript framework that’s approachable, performant, and versatile for building web user interfaces.

Check out what Evan and his team are doing to create the next generation of tooling at Void Zero

Vue was ranked as the eighth most-popular web framework in the 2025 Developer Survey. 

Congrats to Stellar Question badge winner Hari, who won for asking the question JavaScript - Track mouse position

See Privacy Policy at https://art19.com/privacy and California Privacy Notice at https://art19.com/privacy#do-not-sell-my-info.

Code Story: Insights from Startup Tech Leaders - S11 Bonus: Greg Shove, Section

Greg Shove was born in Canada, raised in Britain, and eventually moved to the United States. Through all of these places he lived, he learned to believe in equal access for people, never to quit, and to work hard and win - all of this, respectively. When he moved to California, he was told to visit the local grocery store to meet more tech people than he would in a year in Canada. After business school, he worked for Apple and has launched or participated in 7 startups. Outside of tech, he loves to BBQ Argentinian style, inspired by the chef Francis Mallman.

Six years ago, Greg started a company to teach people skills and how to become the best manager and executive they could be. The business did well, but mainly it was because of the pandemic. In 2023, he started playing with GPT, and he realized that he needed to pivot himself, and his business as well.

This is the creation story of Section.

Sponsors

Links




Support this podcast at — https://redcircle.com/code-story-insights-from-startup-tech-leaders/donations

Advertising Inquiries: https://redcircle.com/brands

Privacy & Opt-Out: https://redcircle.com/privacy

Lex Fridman Podcast - #477 – Keyu Jin: China’s Economy, Tariffs, Trade, Trump, Communism & Capitalism

Keyu Jin is an economist specializing in China’s economy, international macroeconomics, global trade imbalances, and financial policy. She is the author of The New China Playbook: Beyond Socialism and Capitalism.
Thank you for listening ❤ Check out our sponsors: https://lexfridman.com/sponsors/ep477-sc
See below for timestamps, transcript, and to give feedback, submit questions, contact Lex, etc.

Transcript:
https://lexfridman.com/keyu-jin-transcript

CONTACT LEX:
Feedback – give feedback to Lex: https://lexfridman.com/survey
AMA – submit questions, videos or call-in: https://lexfridman.com/ama
Hiring – join our team: https://lexfridman.com/hiring
Other – other ways to get in touch: https://lexfridman.com/contact

EPISODE LINKS:
Keyu’s X: https://x.com/KeyuJin
Keyu’s Website: https://keyujin.com/
The New China Playbook (Book): https://amzn.to/4lpgmyK

SPONSORS:
To support this podcast, check out our sponsors & get discounts:
Allio Capital: AI-powered investment app that uses global macroeconomic trends.
Go to https://alliocapital.com/
UPLIFT Desk: Standing desks and office ergonomics.
Go to https://upliftdesk.com/lex
Hampton: Community for high-growth founders and CEOs.
Go to https://joinhampton.com/lex
Lindy: No-code AI agent builder.
Go to https://go.lindy.ai/lex
LMNT: Zero-sugar electrolyte drink mix.
Go to https://drinkLMNT.com/lex

OUTLINE:
(00:00) – Introduction
(00:35) – Sponsors, Comments, and Reflections
(08:26) – Misconceptions about China
(12:57) – Education in China
(22:14) – Economic reforms of Deng Xiaoping
(27:33) – Mayor economy and GDP growth race
(41:20) – Growing up in China
(46:58) – First time in the US
(51:12) – China’s government vs business sector
(54:46) – Communism and capitalism
(58:25) – Jack Ma
(1:04:37) – China’s view on innovation and copying ideas
(1:11:15) – DeepSeek moment
(1:15:09) – CHIPS Act
(1:16:56) – Tariffs and Trade
(1:29:21) – Immigration
(1:34:08) – Taiwan
(1:39:54) – One-child policy
(1:47:51) – China’s economy collapse predictions
(1:52:34) – Advice for visiting China

PODCAST LINKS:
– Podcast Website: https://lexfridman.com/podcast
– Apple Podcasts: https://apple.co/2lwqZIr
– Spotify: https://spoti.fi/2nEwCF8
– RSS: https://lexfridman.com/feed/podcast/
– Podcast Playlist: https://www.youtube.com/playlist?list=PLrAXtmErZgOdP_8GztsuKi9nrraNbKKp4
– Clips Channel: https://www.youtube.com/lexclips

Big Technology Podcast - Is The AI Going To Escape? — With Anthony Aguire

Anthony Aguirre is the executive director of the Future of Life Institute. He joins Big Technology to discuss how AI could fail in the worst case and whether our push toward increasingly autonomous, general systems puts control out of reach. Tune in to hear how agentic systems operating at superhuman speed complicate oversight, and why “just unplug it” is naive. Hit play for a cool‑headed, nuanced conversation with clear takeaways you can use to evaluate AI strategy, policy, and risk.

---

Enjoying Big Technology Podcast? Please rate us five stars ⭐⭐⭐⭐⭐ in your podcast app of choice.

Want a discount for Big Technology on Substack + Discord? Here’s 25% off for the first year: https://www.bigtechnology.com/subscribe?coupon=0843016b

Questions? Feedback? Write to: bigtechnologypodcast@gmail.com

Code Story: Insights from Startup Tech Leaders - S11 E12: Ravi Madabhushi, ScaleKit

Ravi Madabhushi finds that all of the stops along his professional journey were accidental. He grew up in a tiny village in the south of India - so small, it would take you 10 minutes to sprint across it, end to end. His goals back then were common - get a job, get married, etc. - but after he moved to Bangalore post school, he got acquainted with startups... and was hooked. Outside of tech, he is married with 2 kids. He enjoys playing tennis, badminton, and squash. He got introduced to squash when he was playing tennis, it started raining, and they were forced inside to play "inside tennis"... IE squash.

Ravi and his team had a successful exit from their prior company, and decided to give startups another go. They wanted to solve the authentication problem for builders wanting to focus on their product - not building auth. What they found was a new arena in the world of AI, agents, and authentication of everything in between.

This is the creation story of ScaleKit.

Sponsors

Links



Support this podcast at — https://redcircle.com/code-story-insights-from-startup-tech-leaders/donations

Advertising Inquiries: https://redcircle.com/brands

Privacy & Opt-Out: https://redcircle.com/privacy

The Stack Overflow Podcast - AI isn’t stealing your job, it’s helping you find it

Wenjing Zhang, VP of Engineering, and Caleb Johnson, Principal Engineer at LinkedIn, sit down with Ryan to discuss how semantic search and AI have transformed LinkedIn’s job search feature. They explore the engineering efforts behind transitioning from keyword-based search and the impact of AI models on LinkedIn’s job seekers and employers.


Episode notes: 

LinkedIn is the world’s largest professional network with more than one billion members.

Connect with Caleb on LinkedIn.

Connect with Wenjing on LinkedIn.

Congrats to Mattias Larsson, who won a Populist badge for answering Singleton Class which requires some async call.

See Privacy Policy at https://art19.com/privacy and California Privacy Notice at https://art19.com/privacy#do-not-sell-my-info.

Python Bytes - #444 Begone Python of Yore!

Topics covered in this episode:
Watch on YouTube

About the show

Sponsored by DigitalOcean: pythonbytes.fm/digitalocean-gen-ai Use code DO4BYTES and get $200 in free credit

Connect with the hosts

Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Monday at 10am PT. Older video versions available there too.

Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.

Brian #1: Coverage.py regex pragmas

  • Ned Batchelder

  • The regex implementation of how coverage.py recognizes pragmas is pretty amazing.

  • It’s extensible through plugins

    • covdefaults adds a bunch of default exclusions, and also platform- and version-specific comment syntaxes.
    • coverage-conditional-plugin gives you a way to create comment syntaxes for entire files, for whether other packages are installed, and so on.
  • A change from last year (as part of coverage.py 7.6 allows multiline regexes, which let’s us do things like:

    • Exclude an entire file with \\A(?s:.*# pragma: exclude file.*)\\Z
    • Allow start and stop delimiters with # no cover: start(?s:.*?)# no cover: stop
    • Exclude empty placeholder methods with ^\\s*(((async )?def .*?)?\\)(\\s*->.*?)?:\\s*)?\\.\\.\\.\\s*(#|$)
    • See Ned’s article for explanations of these

Michael #2: Python of Yore

  • via Matthias
  • Use YORE: ... comments to highlight CPython version dependencies.
    # YORE: EOL 3.8: Replace block with line 4.
    if sys.version_info < (3, 9):
    from astunparse import unparse
    else:
    from ast import unparse
    

Then check when they go out of support:

$ yore check --eol-within '5 months'
./src/griffe/agents/nodes/_values.py:11: Python 3.8 will reach its End of Life within approx. 4 months

Even fix them with fix .

Michael #3: nox-uv

  • via John Hagen
  • What nox-uv does is make it very simple to install uv extras and/or dependency groups into a nox session's virtual environment.
  • The versions installed are constrained by uv's lockfile meaning that everything is deterministic and pinned.
  • Dependency groups make it very easy to install only want is necessary for a session (e.g., only linting dependencies like Ruff, or main dependencies + mypy for type checking).

Brian #4: A couple Django items

  • Stop Using Django's squashmigrations: There's a Better Way
    • Johnny Metz
    • Resetting migrations is sometimes the right thing.
    • Overly simplified summary: delete migrations and start over
  • dj-lite
    • Adam Hill
    • Use SQLite in production with Django
    • “Simplify deploying and maintaining production Django websites by using SQLite in production. dj-lite helps enable the best performance for SQLite for small to medium-sized projects. It requires Django 5.1+.”

Extras

Brian:

  • Test & Code 237: FastAPI Cloud with Sebastian Ramirez
    • will be out later today
  • pythontest.com: pytest fixtures nuts and bolts - revisited
    • A blog series that I wrote a long time ago.
    • I’ve updated it into more managable bite-sized pieces, updated and tested with Python 3.13 and pytest 8

Michael:

Joke: Copy/Paste