Episoder
-
Topics covered in this episode:
New project to shorten django-admin to django because we are not monstersdjango-unicorn: The magical reactive component framework for Django Testing some tidbitsThe State of Python 2024 articleExtrasJokeWatch on YouTubeAbout the show
Sponsored by us! Support our work through:
Our courses at Talk Python TrainingThe Complete pytest CoursePatreon SupportersConnect with the hosts
Michael: @[email protected] / @mkennedy.codes (bsky)Brian: @[email protected] / @brianokken.bsky.socialShow: @[email protected] / @pythonbytes.fm (bsky)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: New project to shorten django-admin to django because we are not monsters
Jeff Tripplet has created django-cli-no-admin to shorten django-admin to just django.âOne of the biggest mysteries in Django is why I have to run django-admin from my terminal instead of just running django. Confusingly, django-admin has nothing to do with Djangoâs admin app.âInstead of typing things like: django-admin startproject mysite projectnameWe can type the shorter: django startproject mysite projectnameI love this kind of developer speedup / comfort improvementsAnd yes, Jeff wants Django to eventually include this as the default way to run the command line utilities.Michael #2: django-unicorn: The magical reactive component framework for Django
Add modern site functionality: Quickly add in simple interactions to regular Django templates without learning a new templating language.Skip the JavaScript build toolsNo API required: Skip creating a bunch of serializers and just use Django.Brian #3: Testing some tidbits
Ned BatchelderDifferent ways to test to see if a string has only 0 or 1 in it.And also, a way to check all the different ways to make sure they work.Fun post, and I learned aboutcleandoc - a way to strip leading blank space and maintain code block indentationI usually use textwrap.dedent()partition - splitting strings based on a substringUsing | to pass imports to eval() - I don't use eval much.However, no pytest! Hereâs a way to check all this with pytest: Testing some tidbits with pytestMichael #4: The State of Python 2024 article
Python usage with other languages drops as general adoption grows41% of Python developers have under 2 years of experiencePython learning expands through diverse channelsThe Python 2 vs. 3 divide is in the distant pastFlask, Django, and FastAPI remain top Python web frameworksMost Python web apps run on hyperscale cloudsContainers over VMs over hardwareuv takes Python packaging by stormExtras
Brian:
More Django: Dracula Theme for Django AdminMichael:
Zen Browser updateOffice refreshTranscripts (in some players)Joke:
Volkswagen, passing all the tests -
Topics covered in this episode:
jiterA new home for python-build-standalonemoka-pyuv: An In-Depth GuideExtrasJokeWatch on YouTubeAbout the show
Sponsored by us! Support our work through:
Our courses at Talk Python TrainingThe Complete pytest CoursePatreon SupportersConnect with the hosts
Michael: @[email protected] / @mkennedy.codes (bsky)Brian: @[email protected] / @brianokken.bsky.socialShow: @[email protected] / @pythonbytes.fm (bsky)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: jiter
Fast iterable JSON parser.About to be the backend for Pydantic and Logfire. Currently powers OpenAI / ChatGPT (along with Pydantic itself), at least their Python library, maybe more.jiter has three interfaces:JsonValue an enum representing JSON dataJiter an iterator over JSON dataPythonParse which parses a JSON string into a Python objectjiter-python - This is a standalone version of the JSON parser used in pydantic-core. The recommendation is to only use this package directly if you do not use pydanticBrian #2: A new home for python-build-standalone
Charlie MarshSee also Transferring Python Build Standalone Stewardship to Astral from Gregory Szorcpython-build-standalone is the project that has prebuilt binaries for different architectures.used by uv python install 3.12 and uv venv .venv --python 3.12 and uv syncThis is good stability news for everyone.Interesting discussion of prebuilt Python from CharlieMichael #3: moka-py
A high performance caching library for Python written in Rustmoka-py is a Python binding for the highly efficient Moka caching library written in Rust. This library allows you to leverage the power of Moka's high-performance, feature-rich cache in your Python projects.FeaturesSynchronous Cache: Supports thread-safe, in-memory caching for Python applications.TTL Support: Automatically evicts entries after a configurable time-to-live (TTL).TTI Support: Automatically evicts entries after a configurable time-to-idle (TTI).Size-based Eviction: Automatically removes items when the cache exceeds its size limit using the TinyLFU policy.Concurrency: Optimized for high-performance, concurrent access in multi-threaded environments.Brian #4: uv: An In-Depth Guide
On SaaS Pegasus blog, so presumably by Cory ZueGood intro to uvAlso a nice list of everyday commandsInstall python: uv python install 3.12I donât really use this anymore, as uv venv .venv --python 3.12 or uv sync install if necessarycreate a virtual env: uv venv .venv --python 3.12install stuff: uv pip install djangoadd project dependenciesbuild pinned dependenciesAlso discussion about adopting the new workflowExtras
Brian:
PydanticAI - not sure why I didnât see that comingIn the âgood to knowâ and âcommentary on societyâ area:Anti-Toxicity Features on BlueskyThe WIRED Guide to Protecting Yourself From Government SurveillanceMichael:
Go sponsor a bunch of projects on GitHubRegistration is open for PyConJoke: Inf
-
Mangler du episoder?
-
Topics covered in this episode:
Loop targetsasyncstdlibBagels: TUI Expense Trackerrloop: An AsyncIO event loop implemented in RustExtrasJokeWatch on YouTubeAbout the show
Sponsored by us! Support our work through:
Our courses at Talk Python TrainingThe Complete pytest CoursePatreon SupportersConnect with the hosts
Michael: @[email protected] / @mkennedy.codes (bsky)Brian: @[email protected] / @brianokken.bsky.socialShow: @[email protected] / @pythonbytes.fm (bsky)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: Loop targets
Ned BatchelderI donât think I would have covered this had it not been the surprising opposition to Nedâs code.Hereâs the snippet:
params = { "query": QUERY, "page_size": 100,}*# Get page=0, page=1, page=2, ...***for** params["page"] in itertools.count(): data = requests.get(SEARCH_URL, params).json() **if** not data["results"]: **break** ...Ned is utilizing the assignment in the for loop to use the value of count() and store it into the params["page"].
The article includes another version with a temp variable page_num, which I think the naysayers would prefer.But frankly, I think both are fine. Why not put the value right where you want it?Michael #2: asyncstdlib
The asyncstdlib library re-implements functions and classes of the Python standard library to make them compatible with async callables, iterables and context managers. It is fully agnostic to async event loops and seamlessly works with asyncio, third-party libraries such as trio, as well as any custom async event loop.Full set of async versions of advantageous standard library helpers, such as zip, map, enumerate, functools.reduce, itertools.tee, itertools.groupby and many others.Safe handling of async iterators to ensure prompt cleanup, as well as various helpers to simplify safely using custom async iterators.Small but powerful toolset to seamlessly integrate existing sync code into async programs and libraries.Brian #3: Bagels: TUI Expense Tracker
Jax TamâBagels expense tracker is a TUI application where you can track and analyse your money flow, with convenience oriented features and a complete interface.
Why an expense tracker in the terminal? I found it easier to build a habit and keep an accurate track of my expenses if I do it at the end of the day, instead of on the go. So why not in the terminal where it's fast, and I can keep all my data locally?â
Who hasnât wanted to write their own expense tracker?
This implementation is fun for lots of reasonsItâs still new and pretty small, so forking it for your own uses should be easyBuilt on textual is funinstall instructions based on uv tool seems to be the new normal: uv tool install --python 3.13 bagelstest suite startedpretty useful as is, actuallyNice that it includes a roadmap of future goalsWould be a fun project to help out with for anyone looking for anyone looking for a shiny new codebase to contribute to.Michael #4: rloop: An AsyncIO event loop implemented in Rust
An AsyncIO event loop implemented in RustFrom Giovanni Barillari, Creator of GranianRLoop is an AsyncIO event loop implemented in Rust on top of the mio crate.Disclaimer: This is a work in progress and definitely not ready for production usage.Run asyncio.set_event_loop_policy(rloop.EventLoopPolicy()) and done.Similar to uvloop.Extras
Brian:
Iâm currently listening to Four Thousand Weeks - Time Management for Mortals by Oliver Burkeman for the second time. Highly recommend. Development Advent Calendars for 2024 - Adrian RoselliBlack Friday at PythonTest.comMichael:
Docker cluster monitorCompare engagement across Mastodon / Bsky / Twitterhttps://bsky.app/profile/pythonbytes.fm/post/3lbseqgr5m22zhttps://fosstodon.org/@pythonbytes/113545509565796190https://x.com/pythonbytes/status/1861166179236319288Back on #277 we talked about StrEnum. Got a nice chance to use it this weekend.Maybe FinanceGo sponsor a bunch of projects on GitHubBlack Friday at Talk PythonJoke: CTRL + X onion
-
Topics covered in this episode:
Talk Python rewritten in QuartPyPI now supports digital attestationsDjango Rusty TemplatesPEP 639 is now supported by PYPIExtrasJokeWatch on YouTubeAbout the show
Sponsored by us! Support our work through:
Our courses at Talk Python TrainingThe Complete pytest CoursePatreon SupportersConnect with the hosts
Michael: @[email protected] / @mkennedy.codes (bsky)Brian: @[email protected] / @brianokken.bsky.socialShow: @[email protected] / @pythonbytes.fm (bsky)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: Talk Python rewritten in Quart
Rewrote all of talkpython.fm in Quart (10k lines of code total, 4k changed)Considered FastAPILitestarDjangoHugo Static Site + PythonFlaskDiscussed the multistage upgrade / conversion processAutomating tests for all 1,000 pagesBrian #2: PyPI now supports digital attestations
Dustin IngramâAttestations provide a verifiable link to an upstream source repository: By signing with the identity of the upstream source repository, such as in the case of an upload of a project built with GitHub Actions, PyPI's support for digital attestations defines a strong and verifiable association between a file on PyPI and the source repository, workflow, and even the commit hash that produced and uploaded the file. Additionally, publishing attestations to a transparency log helps mitigate against both compromise of PyPI and compromise of the projects themselves.âFor maintainersIf using GH Actions and Trusted Publishingmake sure you use pypa/gh-action-pypi-publish, version v1.11.0 or newerthatâs itIf notâSupport for automatic attestation generation and publication from other Trusted Publisher environments is planned.ââWhile not recommended, maintainers can also manually generate and publish attestations.âSee also PyPI Introduces Digital Attestations to Strengthen Python Package Security by Sarah GoodingAre we PEP 740 yet?Michael #3: Django Rusty Templates
by Lily FooteAn experimental reimplementation of Django's templating language in Rust.Goals100% compatibility of rendered output.Error reporting that is at least as useful as Django's errors.Improved performance over Django's pure Python implementation.Brian #4: PEP 639 is now supported by PYPI
from Brett CannonPEP 639 â Improving License Clarity with Better Package MetadataFor project metadata, use these fields: license and license-files:Examples license field
[project]license = "MIT"[project]license = "MIT AND (Apache-2.0 OR BSD-2-clause)"[project]license = "MIT OR GPL-2.0-or-later OR (FSFUL AND BSD-2-Clause)"[project]license = "LicenseRef-Proprietary"Examples of license-files:
[project] license-files = ["LICEN[CS]E*", "AUTHORS*"] [project] license-files = ["licenses/LICENSE.MIT", "licenses/LICENSE.CC0"] [project] license-files = ["LICENSE.txt", "licenses/*"] [project] license-files = []Extras
Brian:
Playground Wisdom: Threads Beat Async/Await - interesting read from Armin Ronacher about different language abstractions around concurrency.PythonTest.com Discord community is now liveLaunched last week, as of this morning weâve got 89 membersAnyone already a pythontest community member has received an inviteAnyone can join through courses.pythontest.comEverything at pythontest.com is 20% off through Dec 2 with code turkeysale2024âPython Testing with pytestâ eBook 40% off through Dec 2, use code turkeysale2024Michael:
Python 3.14.0a2 releasedStarter packs:Michaelâs Python people: https://bsky.app/starter-pack/mkennedy.codes/3lbdnupl26e2x Directory: https://blueskydirectory.com/starter-packs/allJoke: curl - heavy metal style!
-
Topics covered in this episode:
Thoughts on Djangoâs CorefuturepoolDon't return named tuples in new APIsZiglang: Migrating from AWS to Self-HostingExtrasJokeWatch on YouTubeAbout the show
Sponsored by us! Support our work through:
Our courses at Talk Python TrainingThe Complete pytest CoursePatreon SupportersConnect with the hosts
Michael: @[email protected] / @mkennedy.codes (bsky)Brian: @[email protected] / @brianokken.bsky.socialShow: @[email protected] / @pythonbytes.fm (bsky)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: Thoughts on Djangoâs Core
Carlton GibsonGreat discussion on Django and Core vs PluginsSustainability with limited peopleKeeping core smallThe release cycleeembrace plugins vs endorsing plugins.Michael #2: futurepool
via Pat DeckerTakes the concept of multiprocessing Pool to the async/await world.Create a pool then delegate the work:
async with FuturePool(2) as fp: result = await fp.map(async_pool_fn, range(10))I would LOVE to see something like this in a broader background asyncio worker pool concept.
But that concept doesnât exist in asyncio in Python and thatâs a failing of the framework IMO.Brian #3: Don't return named tuples in new APIs
Brett CannonFirst off, Iâm grateful for any post that talks about APIs and the API is a module, class, or package API and not a Web/REST API. The term API existed long before the internet.âe.g., get_mouse_position() very likely has a two-item tuple of X and Y coordinates of the screenââit actually makes your API more complex for both you and your users to use. For you, it doubles the data access API surface for your return type as you have to now support index-based and attribute-based data access forever (or until you choose to break your users and change your return type so it doesn't support both approaches)ââ⊠you probably don't want people doing with your return type, like slicing, iterating over all the items âŠâAlternativesclassdataclassdictionaryTypedDictSimpleNamespaceâMy key point in all of this is to prefer readability and ergonomics over brevity in your code. That means avoiding named tuples except where you are expanding to tweaking an existing API where the named tuple improves over the plain tuple that's already being used.âMichael #4: Ziglang: Migrating from AWS to Self-Hosting
The Rust Foundation for example, reports that they spent $404,400 on infrastructure costs in 2023.Zig lang has decided to use a single big cloud machine + mirrorsExtras
Brian:
Changing the Python Test communityWas started to answer questions for Test & Code listeners years ago. Primarily pytest questionsUsed to be Slack. Then moved to Podia forum. Now Iâm trying to work out a Discord solution that is both sustainable and usable.Michael:
PWang Bsky essayBuilding A Business From Python Expertise - Michael Kennedy on Work Item PodcastSubscribe to package releases, just put .atom on the end of their releases URL, for example: github.com/mikeckennedy/jinja_partials/releases â add .atom for RSSpytest-bdd 8.0.0 was just released via Jamie ThomsonThe big feature (in Jamieâs opinion) is the addition of data tables https://github.com/pytest-dev/pytest-bdd/blob/master/CHANGES.rst#800---2024-11-14Joke: Breaking: JavaScript Developer Commits to Framework for Record-Breaking 3 Weeks
-
Topics covered in this episode:
terminal-treeposting: The API client that lives in your terminalExtra, extra, extraUV does everything or enough that I'm not sure what else it needs to doExtrasJokeWatch on YouTubeAbout the show
Sponsored by:
ScoutAPM - Django Application Performance MonitoringCodeium - Free AI Code Completion & ChatConnect with the hosts
Michael: @[email protected] / @mkennedy.codes (bsky)Brian: @[email protected] / @brianokken.bsky.socialShow: @[email protected] / @pythonbytes.fm (bsky)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: terminal-tree
An experimental filesystem navigator for the terminal, built with TextualTested in macOS only at this point. Chances are very high it works on Linux. Slightly lower chance (but non-zero) that it works on Windows.Can confirm it works on LinuxBrian #2: posting: The API client that lives in your terminal
Also uses TextualFrom Darren BurnsInteresting that the installation instructions recommends using uv:uv tool install --python 3.12 postingVery cool. Great docs. Beautiful. keyboard centric, but also usable with a mouse.âFly through your API workflow with an approachable yet powerful keyboard-centric interface. Run it locally or over SSH on remote machines and containers. Save your requests in a readable and version-control friendly format.âAble to save multiple environmentsGreat colorsAllows scripting to run Python code before and after requests to prepare headers, set variables, etc.Michael #3: Extra, extra, extra
spaCy course swag give-away, enter for freeNew essay: Opposite of Cloud Native is?News: We've moved to HetznerNew package: Introducing chameleon-flask packageNew release: Listmonk Python clientTIOBE UpdatePEP 750 â Template StringsCanary emailLeft Omnivore, for Pocket, left Pocket for, âŠ, landed on InstapaperSupports direct import from Omnivore and PocketThough Hoarder is compellingTrying out Zen BrowserWasnât a fan of Arc (especially now) but the news turned me on to ZenBrian #4: UV does everything or enough that I'm not sure what else it needs to do
Jeff TriplettâUV feels like one of those old infomercials where it solves everything, which is where we have landed in the Python world.ââMy favorite feature is that UV can now bootstrap a project to run on a machine that does not previously have Python installed, along with installing any packages your application might require.âPartial list (see Jeffâs post for his complete list)uv pip install replaces pip installuv venv replaces python -m venvuv run, uv tool run, and uv tool install replaces pipxuv build - Build your Python package for pypiuv publish - Upload your Python package to pypi, replacing twine and flit publishExtras
Brian:
Coverage.py originally was just one fileTrying out BlueSky brianokken.bsky.socialNot because of Taylor Swift, but nice. There are a lot of Python people there.Joke: How programmers sleep
-
Topics covered in this episode:
GitHub action security: zizmorPython is now the top language on GitHubPython 3.13, what didn't make the headlinesPyCon US 2025ExtrasJokeWatch on YouTubeAbout the show
Sponsored by:
ScoutAPM - Django Application Performance MonitoringCodeium - Free AI Code Completion & ChatConnect with the hosts
Michael: @[email protected]: @[email protected]: @[email protected]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: GitHub action security: zizmor
Article: Ned Batchelder zizmor: William Woodruff & othersâa new tool to check your GitHub action workflows for security concerns.âInstall with cargo or brew, then point it at workflow yml files.It reports security concerns.Michael #2: Python is now the top language on GitHub
Thanks to Pat Decker for the heads up.A rapidly growing number of developers worldwideThis suggests AI isnât just helping more people learn to write code or build software fasterâitâs also attracting and helping more people become developers. First-time open source contributors continue to show wide-scale interest in AI projects. But we arenât seeing signs that AI has hurt open source with low-quality contributions.Python is now the most used language on GitHub as global open source activity continues to extend beyond traditional software development.The rise in Python usage correlates with large communities of people joining the open source community from across the STEM world rather than the traditional community of software developers.Thereâs a continued increase in first-time contributors to open source projects. 1.4 million new developers globally joined open source with a majority contributing to commercially backed and generative AI projects. Notably, we did not see a rise in rejected pull requests. This could indicate that quality remains high despite the influx of new contributors.Brian #3: Python 3.13, what didn't make the headlines
Some pretty cool updates to pdb : the command line Python debuggermultiline editingcode completion pathlib has a bunch of performance updatespython -m venv adds a .gitignore file that auto ignores the venv.Michael #4: PyCon US 2025
Site is live with CFP and datesHealth code is finally reasonable: âMasks are Encouraged but not RequiredâPyCon US 2025 DatesTutorials - May 14-15, 2025Sponsor Presentations - May 15, 2025Opening Reception - May 15, 2025Main Conference and Online - May 16-18, 2025Job Fair - May 18, 2025Sprints - May 19-May 22, 2025Extras
Brian:
Please publish and share more - Jeff TriplettMichael:
pre-commit-uvJust spoke with Sefanie Molin about pre-commit hooks on Talk PythonCurse you Omnivore!We have moved to hetzner Typora markdown appfree-threaded Python is now available via uvuv self updateuv python install --python-preference only-managed 3.13tJoke: Debugging char
-
Topics covered in this episode:
Python 3.14.0 alpha 1 is now availableuv supports dependency groupsdive: A tool for exploring each layer in a docker imagepytest-metadataExtrasJokeWatch on YouTubeAbout the show
Sponsored by us! Support our work through:
Our courses at Talk Python TrainingThe Complete pytest Course & Hello, pytest!Patreon SupportersConnect with the hosts
Michael: @[email protected]: @[email protected]: @[email protected]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: Python 3.14.0 alpha 1 is now available
First of seven planned alpha releases.Many new features for Python 3.14 are still being planned and written. Among the new major new features and changes so far:PEP 649: deferred evaluation of annotationsImproved error messagesBrian #2: uv supports dependency groups
we covered dependency groups in episode 406as of 0.4.27, uv supports dependency groupsdocs show how to add dependencies with uv add --groupalso âThe --dev, --only-dev, and --no-dev flags are equivalent to --group dev, --only-group dev, and --no-group dev respectively.âTo install a group, uv pip install --group doesnât work yet. Itâs waiting for PyPA to decide on an interface for pip, and uv pip will use that interface.But sync works.$ uv init # create a pyproject.toml$ uv add --group foo pytest$ uv venv # create venv$ uv sync --group foo # will install all dependencies, including group "foo"Michael #3: dive: A tool for exploring each layer in a docker image
via Mike FiedlerFeatures:Show Docker image contents broken down by layerIndicate what's changed in each layerEstimate "image efficiency"Quick build/analysis cyclesCI IntegrationBrian #4: pytest-metadata
An incredibly useful plugin for adding, you guessed it, metadata, to your pytest results.Required for pytest-html but also useful on itâs ownAdds metadata totext output with --verbosexml output when using --junit-xml, handy for CI systems that support junit.xmlOther plugins depend on this and report in other ways, such as pytest-htmlBy default, already grabsPython versionPlatform infoList of installed packagesList of installed pytest pluginsYou can add your own metadataYou can access all metadata (and add to it) from tests, fixtures, and hook functions via a metadata fixture.This is in the Top pytest Plugins list, currently #5.Extras
Brian:
Iâve started filtering deprecated plugins from the pytest plugin list.Iâm also going to start reviewing the list and pulling out interesting plugins as the topic of the next season of Test & Code.Michael:
Pillow 11 is outpip install deutschlandTalk Python has a dedicated blog, please subscribe!Joke: Dog names
-
Topics covered in this episode:
Open Source PledgeJeff Triplet's DjangoTVPEP 735 â Dependency Groups in pyproject.tomllivereloadExtrasJokeWatch on YouTubeAbout the show
Sponsored by ScoutAPM: pythonbytes.fm/scout
Connect with the hosts
Michael: @[email protected]: @[email protected]: @[email protected]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: Open Source Pledge
Learned about this because of this postWhy Django supports the Open Source PledgeStepsPay Open Source maintainers. Min to participate is 2k/year/dev at your companySelf-report annuallyPublish a blog post outlining your paymentsArminâs post about launching Open Source Pledge and mixing money with open sourceMichael #2: Jeff Triplet's DjangoTV
A nice aggregation of lots of Django conference talksFilter by conferenceGood search as wellBrian #3: PEP 735 â Dependency Groups in pyproject.toml
Author: Stephen Rosen, Sponsor: Brett Cannon, PEP-Delegate: Paul MooreAccepted. Resolotion Oct 10, 2024âThis PEP specifies a mechanism for storing package requirements in pyproject.toml files such that they are not included in any built distribution of the project.âAllow us to define named groups of dependencies that can be independent of the main project.ex:
[dependency-groups]test = ["pytest", "coverage"]docs = ["sphinx", "sphinx-rtd-theme"]typing = ["mypy", "types-requests"]typing-test = [{include-group = "typing"}, {include-group = "test"}, "useful-types"]âmightâ work like this: pip install --dependency-groups=test,typing
but tool venders are able to define how they use groups. Of course.Similar solutions multiple requirements.txt files: requirements_test.txt, requirements_docs.txt, etc.no standard naming convention, not standardized package extras: not gauranteed to be statically defined (TIL)additional to main dependencies, so not independentMichael #4: livereload
Example from talkpython.fm: asset_bundler_watcher.pyThe docs are sparse, so see the gist aboveExtras
Brian:
Personal Blogs are no longer personal when AI gets too involved - KJayMillerMind Your Image Metadata - Stefanie MolinMichael:
14% of our listeners are in Germany, thanks Germany!Prost!Hetzner comes to the USJoke:
A programmerâs partner asks them: âWould you go get a loaf of bread from the store? And if they have eggs, get a dozen.â A while later, the programmer returns with 12 loaves of bread and says âThey had eggs.âFrom https://savvyprogrammer.io/software-jokes/ -
Topics covered in this episode:
Briefer: Dashboards and notebooks in a single placeIntroduction to programming with Pythonsetup-uvHTML for peopleExtrasJokeWatch on YouTubeAbout the show
Sponsored by ScoutAPM: pythonbytes.fm/scout
Connect with the hosts
Michael: @[email protected]: @[email protected]: @[email protected]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: Briefer: Dashboards and notebooks in a single place
Notebooks and dashboards with Python, SQL, scheduling, native visualizations, code generation, and more.In Briefer, you can: Create notebooks and dashboards using Markdown, Python, SQL, and native visualizations. Build interactive data apps using inputs, dropdowns, and date pickers. Generate code and queries using an AI that understands your database schema and your notebook's context. Schedule notebooks and dashboards to run and update periodically. Create and test ad-hoc pipelines using writebacks.Briefer vs. Traditional BI Tools: Briefer is better than traditional BI tools because it's faster and more flexible, thanks to Python.Briefer vs. Traditional Notebooks: In Briefer, you can run SQL queries against connected data sources directly in your notebook. Then, Briefer will automatically turn your query into a data frame and store it in a variable that you can use in your Python blocks.Brian #2: Introduction to programming with Python
Jose BlancaâPython intro aimed at students with no prior programming experience.ââRelies mainly on examples and exercises.ââDoes not try to cover every detail of the Python language, but just what a beginner might need to start the journey.âTech: â⊠built with the quarto publishing system complemented by the quarto live extension that allows Python to run in the web browser by using pyodide.âRuns on anything, since it doesnât require a local install of PythonRunning 3.12.1, looks like. Although thatâs a bit hidden. Seems like it should be more visible.Michael #3: setup-uv
Set up your GitHub Actions workflow with a specific version of uvInstall a version of uv and add it to PATHCache the installed version of uv to speed up consecutive runs on self-hosted runnersRegister problem matchers for error output(Optional) Persist the uv's cache in the GitHub Actions Cache(Optional) Verify the checksum of the downloaded uv executableBrian #4: HTML for people
Teaching HTML in a rather fun way.Includes basic CSSExtras
Michael:
A new article: We Must Replace uWSGI With Something ElseDjango unique email loginJoke: So much OâReally
-
Topics covered in this episode:
Python 3.13.0 released Oct 7PEP 759 â External Wheel Hostingpytest-freethreadedpytest-editExtrasJokeWatch on YouTubeAbout the show
Sponsored by ScoutAPM: pythonbytes.fm/scout
Connect with the hosts
Michael: @[email protected]: @[email protected]: @[email protected]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: Python 3.13.0 released Oct 7
Thatâs today!Whatâs New In Python 3.13Interpreter (REPL) improvementsexit works (really, this is worth the release right here)Multiline editing with history preservation.history sticks around between sessionsDirect support for REPL-specific commands like help, exit, and quit, without the need to call them as functions.Prompts and tracebacks with color enabled by default.Interactive help browsing using F1 with a separate command history.History browsing using F2 that skips output as well as the >>> and ⊠prompts.âPaste modeâ with F3 that makes pasting larger blocks of code easier (press F3 again to return to the regular prompt).exit now works without parensImproved error messagesColorful tracebacksBetter messages fornaming a script/module the same name as a stdlib module.naming a script/module the same name as an installed third party module.misspelling a keyword argumentFree threaded CPythonIncluded in official installers on Windows and macOSRead these links to figure out how - itâs not turned on by defaultLotâs more. see the Whatâs new pageMichael #2: PEP 759 â External Wheel Hosting
pypi.org ships over 66 petabytes / month backed by FastlyThere are hard project size limits for publishers to PyPIWe can host the essence of a .whl as a .rim file, then allow an external download URLSecurity: Several factors as described in this proposal should mitigate security concerns with externally hosted wheels, such as:Wheel file checksums MUST be included in .rim files, and once uploaded cannot be changed. Since the checksum stored on PyPI is immutable and required, it is not possible to spoof an external wheel file, even if the owning organization lost control of their hosting domain.Externally hosted wheels MUST be served over HTTPS.In order to serve externally hosted wheels, organizations MUST be approved by the PyPI admins.Brian #3: pytest-freethreaded
PyCon JP 2024 Team:This extension was created at PyCon JP sprints with Anthony Shaw and 7 other folks listed in credits.âA pytest plugin for helping verify that your tests and libraries are thread-safe with the Python 3.13 experimental freethreaded mode.âTesting your project for compatibility with freethreaded Python.Testing in single thread doesnât test that.Neither does testing with pytest-xdist, because it uses multiprocessing to parallelize tests.So, Ant and others âmade this plugin to help you run your tests in a thread-pool with the GIL disabled, to help you identify if your tests are thread-safe.ââAnd the first library we tested it on (which was marked as compatible) caused a segmentation fault in CPython! So you should give this a go if you're a package maintainer.âMichael #4: pytest-edit
A simple Pytest plugin for opening editor on the failed tests.Type pytest --edit to open the failing test code Be sure to set your favorite editor in the ENV variablesExtras
Michael:
New way to explore Talk Python courses via topicsThis has been in our mobile apps since their rewrite but finally comes to the webLet's go easy on PyPI, OK? essayHynekâs video: uv IS the Future of Python Packaging djade-pre-commitPolyfill.io, BootCDN, Bootcss, Staticfile attack traced to 1 operatorPurgeCSS CLI Python 3.12.7 releasedIncremental GC and pushing back the 3.13.0 releaseuv making the roundsLLM fatigue, is it real?Take the Python Developers Survey 2024Joke: Funny 404 pages
We have something at least interesting at pythonbytes.fm -
Topics covered in this episode:
uv under discussion on Mastodonerdantic: Entity Relationship DiagramsExtra, Extra, ExtraDjango Extra, Extra, ExtraExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/403 -
Topics covered in this episode:
Architecture Decision Records (ADRs)narwhals: extremely lightweight compatibility layer between dataframesMicrosoft wants Three Mile Island to fuel its AI power needszsh-in-dockerExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/402 -
Topics covered in this episode:
âWe must replace uwsgi by something elseâLetâs build and optimize a Rust extension for PythonFake recruiter coding tests target devs with malicious Python packagesMonthly PSF Board Office HoursExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/401 -
Topics covered in this episode:
Python 3.13.0RC2, 3.12.6, 3.11.10, 3.10.15, 3.9.20, and 3.8.20 are now available!Docker images using uv's python10 years of sustainable open source - Read the DocshumanizeExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/400 -
Topics covered in this episode:
Why I Still Use Python Virtual Environments in DockerPython Developer Survey ResultsAnaconda Code add-in for Microsoft ExcelDisabling Scheduled Dependency UpdatesExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/399 -
Topics covered in this episode:
Open Source Mythsuv 0.3.0 and all the excitementTop pytest PluginsA comparison of hosts / providers for Python serverless functions (aka Faas)ExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/398 -
Topics covered in this episode:
pyawaitableAnnotated area charts with plotnineDeltaDBPyCon US 2024 Recap + Videos are upExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/397 -
Topics covered in this episode:
uv venv --python & uv pythonPython 3.12.5 releasedCompile and use dependencies for multiple Python versions in ToxCatalog of Dark PatternsExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/396 -
Topics covered in this episode:
py-free-threading.github.ioPythonâs Supportive and Welcoming Environment is Tightly Coupled to Its ProgressStatus pages for sites!PEP 751 â A file format to list Python dependencies for installation reproducibilityExtrasJokeSee the full show notes for this episode on the website at pythonbytes.fm/395 - Se mer