cover of episode #409 We've moved to Hetzner write-up

#409 We've moved to Hetzner write-up

2024/11/14
logo of podcast Python Bytes

Python Bytes

AI Deep Dive AI Chapters Transcript
People
B
Brian
Python 开发者和播客主持人,专注于测试和软件开发教育。
M
Michael
帮助医生和高收入专业人士管理财务的金融教育者和播客主持人。
Topics
Michael 推荐了 terminal-tree,一个基于 Textual 构建的终端文件系统导航器,它可以以图形化方式浏览和操作文件系统,支持键盘和鼠标操作,可以通过 SSH 使用,使用 UV 安装方便快捷。Brian 推荐了 posting,一个同样基于 Textual 构建的终端 API 客户端,界面美观,功能强大,支持脚本编写,可以方便地进行 API 测试,还可以保存 API 交互历史,并支持版本控制。

Deep Dive

Chapters
terminal-tree is an experimental filesystem navigator for the terminal built with Textual, allowing users to explore and interact with the file system using a graphical interface.
  • Works on macOS and Linux, with limited support for Windows.
  • Allows keyboard and mouse interaction for file system exploration.
  • Supports previewing files and jumping to different directories quickly.

Shownotes Transcript

Topics covered in this episode:

- [**terminal-tree**](https://github.com/willmcgugan/terminal-tree?featured_on=pythonbytes))

Watch on YouTube)

About the show

Sponsored by:

  • ScoutAPM) - Django Application Performance Monitoring

  • Codeium) - Free AI Code Completion & Chat

Connect with the hosts

Join us on YouTube at pythonbytes.fm/live) to be part of the audience. Usually Monday at 10am 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: terminal-tree)

  • An experimental filesystem navigator for the terminal, built with Textual)

  • Tested in macOS only at this point. Chances are very high it works on Linux. Slightly lower chance (but non-zero) that it works on Windows.

  • Can confirm it works on Linux

Brian #2: posting: The API client that lives in your terminal)

  • Also uses Textual

  • From Darren Burns

  • Interesting that the installation instructions recommends using uv:

  • uv tool install --python 3.12 posting

  • Very cool. Great docs. Beautiful. keyboard centric, but also usable with a mouse.

  • “Fly through your API workflow with an approachable yet powerful keyboard-centric interface. Run it locally or over SSH on remote machines and containers. Save your requests in a readable and version-control friendly format.”

  • Able to save multiple environments

  • Great colors

  • Allows scripting to run Python code before and after requests to prepare headers, set variables, etc.

Michael #3: Extra, extra, extra

Brian #4: UV does everything or enough that I'm not sure what else it needs to do)

  • Jeff Triplett

  • “UV feels like one of those old infomercials where it solves everything, which is where we have landed in the Python world.”

  • “My favorite feature is that UV can now bootstrap a project to run on a machine that does not previously have Python installed, along with installing any packages your application might require.”

  • Partial list (see Jeff’s post for his complete list)

  • uv pip install replaces pip install

  • uv venv replaces python -m venv

  • uv run, uv tool run, and uv tool install replaces pipx

  • uv build - Build your Python package for pypi

  • uv publish - Upload your Python package to pypi, replacing twine and flit publish

Extras

Brian:

Joke: How programmers sleep)