Brought to you by Michael and Brian - take a Talk Python course or get Brian's pytest book

#373: Changing Directories

Published Tue, Mar 5, 2024, recorded Tue, Mar 5, 2024
Watch this episode on YouTube
Play on YouTube
Watch the live stream replay

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!


Want to go deeper? Check our projects