Python Bytes is a weekly podcast hosted by Michael Kennedy and Brian Okken. The show is a short discussion on the headlines and noteworthy news in the Python, developer, and data science space.
#373 Changing Directories
March 05, 2024
00:26:33
19.29 MB
Downloads: 0
Topics covered in this episode:
- zoxide
- Smart CLIs with Typer
- Python recommended officially by the US Government
- Textual tutorials at Mouse vs Python
- Extras
- Joke
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.
Michael #1: zoxide
- zoxide is a smarter cd command, inspired by z and autojump.
- It remembers which directories you use most frequently, so you can "jump" to them in just a few keystrokes.
- zoxide works on all major shells and platforms.
Brian #2: Smart CLIs with Typer
- Rahul Pai
- Lots of TILs here, even though I’ve been using Typer for years.
- Examples of
- Auto-detection of arguments and types based on type hints
- Help text is a smidge clunkier
- Prompting for missing arguments
- Defaulting to an enviromental variable for missing args
- Print help if no args given
- Explicit app and subcommands with a comparison to argparse
- Reusable commands with result_callback
- Several topics covered in comparison with argparse
- See also Testing argparse Applications
Michael #3: Python recommended officially by the US Government
- The US government explicitly recommends memory safe languages.
- Python is one of them
- The comparison to big tech by Samuel is interesting
Brian #4: Textual tutorials at Mouse vs Python
- Mike Driscoll
- Most recently Creating a Modal Dialog For Your TUIs in Textual
- Textualize already has some pretty great documentation at textual.textualize.io
- But it’s cool to see some different tutorials on it.
Extras
Brian:
- Is UV the FUTURE of Python PACKAGING? 🐍📦 - Hynek
- Nice context on how uv fits into all of the existing packaging challenges and some hope for the future.
- venmo feed is public by default
Michael:
- ngrok Python SDK
- Djangonauts on Talk Python
- Maybe just a new case and battery for your phone?
Joke: Ship it!