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:
Watch on YouTube

About the show

Sponsored by ScoutAPM: pythonbytes.fm/scout

Connect with the hosts

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

Extras

Brian:

Michael:

Joke: Ship it!