Python Bytes artwork

#373 Changing Directories

Python Bytes

English - March 05, 2024 08:00 - 26 minutes - 18.4 MB - ★★★★★ - 205 ratings
Technology Homepage Download Apple Podcasts Google Podcasts Overcast Castro Pocket Casts RSS feed


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

Watch on YouTube

About the show

Sponsored by ScoutAPM: pythonbytes.fm/scout

Connect with the hosts

Michael: @[email protected]
Brian: @[email protected]
Show: @[email protected]

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!

Twitter Mentions