#381: Python Packages in the Oven
Published Tue, Apr 30, 2024,
recorded Tue, Apr 30, 2024
About the show
Sponsored by ScoutAPM: pythonbytes.fm/scout
Connect with the hosts
- Michael: @mkennedy@fosstodon.org
- Brian: @brianokken@fosstodon.org
- Show: @pythonbytes@fosstodon.org
Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Tuesdays at 11am 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: Announcing py2wasm: A Python to Wasm compiler
- py2wasm converts your Python programs to WebAssembly, running them at 3x faster speeds
- thanks to Nuitka
Brian #2: Exploring Python packages with Oven and PyPI Browser
- pypi.org is great, but there are some handy alternatives
- Oven
- Shows how to install stuff with pip, pdm, rye, and poetry
- Similar meta and description as PyPI
- Includes README.md view (no tables yet, though)
- Nice listing of versions
- Ability to look at what files are in wheels and tarballs (very cool)
- Can deploy yourself. Node/Remix app.
- Really slick.
- PyPI Browser
- View versions
- View wheel and tarball contents.
- Metadata and contents.
- No README view
- Is a Starlette app that you can deploy on your on with a private registry. So that’s cool.
Michael #3: PyCharm Local LLM
- Pretty awesome full line completer based on a local LLM for PyCharm
- Requires PyCharm Professional
- An example, given this partial function in Flask:
@blueprint.get('/listing') def listing(): videos = video_service.all_videos()
Typing ret →
That is, typing ret autocompletes to:
return flask.render_template('home/listing.html', videos=videos)
Which is pretty miraculous, and correct.
Brian #4: Google shedding Python devs (at least in the US).
- Google lays off staff from Flutter, Dart and Python teams weeks before its developer conference - techcrunch
- Python, Flutter teams latest on the Google chopping block - The Register
- “Despite Alphabet last week reporting a 57 percent year-on-year jump in net profit to $23.66 billion for calendar Q1, more roles are being expunged as the mega-corp cracks down on costs.”
- “As for the Python team, the current positions have reportedly been "reduced" in favor of a new team based in Munich.”
- MK: Related and timely: How one power-hungry leader destroyed Google search
Extras
Brian:
- Python Gotcha: strip, lstrip, rstrip can remove more than expected
- Reminder: You probably want .removesuffix() and .removeprefix()
Michael:
Joke: Broken System