We're sunsetting PodQuest on 2025-07-28. Thank you for your support!
Export Podcast Subscriptions
cover of episode #438 Motivation time

#438 Motivation time

2025/6/30
logo of podcast Python Bytes

Python Bytes

AI Deep Dive AI Chapters Transcript
People
B
Brian Ocken
M
Michael Kennedy
Topics
Brian Ocken: Trey Hunner的Python Morsels网站提供了一系列有用的Python速查表,涵盖了字符串方法、内置函数、F字符串、Pathlib模块以及大O符号等主题。其中,F字符串速查表可以帮助开发者快速查找格式化数字的方法,Pathlib模块速查表则提供了读取和写入文件内容的便捷方式。此外,Python的迷你命令行实用程序也十分实用,例如http.server可以启动一个简单的HTTP服务器,json.tool可以格式化JSON输出,calendar可以打印日历。在Windows上,还可以使用Python的命令行工具来访问zip、gzip和tar等实用程序。 Michael Kennedy: F字符串的格式化技巧非常丰富,可以进行零填充或空格填充。Pathlib 模块有很好的文档,但一个简洁的速查表也很不错。

Deep Dive

Shownotes Transcript

Topics covered in this episode:

- ** [Python Cheat Sheets from Trey Hunner](https://www.pythonmorsels.com/articles/cheat-sheet/?featured_on=pythonbytes))**

Watch on YouTube)

About the show

Sponsored by Posit: pythonbytes.fm/connect)

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.

Brian #1: Python Cheat Sheets from Trey Hunner)

Michael #2: Automatisch)

  • Open source Zapier alternative

  • Automatisch helps you to automate your business processes without coding.

  • Use their affordable cloud solution or self-host on your own servers.

  • Automatisch allows you to store your data on your own servers, good for companies dealing with sensitive user data, particularly in industries like healthcare and finance, or those based in Europe bound by General Data Protection Regulation (GDPR).

Michael #3: mureq-typed)

  • Single file, zero-dependency alternative to requests. Fully typed. Modern Python tooling.

  • Typed version of mureq (covered in 2022 on episode 268)

  • Intended to be vendored in-tree by Linux systems software and other lightweight applications.

  • mureq-typed is a drop-in, fully API compatible replacement for mureq updated with modern Python tooling:

  • Type checked with mypy, ty, and pyrefly.

  • Formatted with black, no ignore rules necessary.

  • Linted with ruff (add these rules) for mureq.py to your per-file-ignores).

Brian #4: My CLI World)

  • Frank Wiles

  • Encouragement to modify your command line environment

  • Some of Franks tools

  • direnv), zoxide), fd), ack), atuin), just)

  • Also some aliases, like gitpulllog)

  • Notes

  • We covered poethepoet) recently, if just just isn’t cutting it for you.

  • I tried to ilke starship, bit for some reason with my setup, it slows down the shell too much.

Extras

Brian:

Joke:

- Brian read a few quotes from the book

Disappointing Affirmations, by Dave Tarnowski

  • “You are always just a moment away from your next worst day ever. Or your next best day ever, but let’s be realistic.”

  • “You can be anything you want. And yet you keep choosing to be you. I admire your dedication to the role.”

  • “Today I am letting go of the things that are holding me back from the life that I want to live. Then I’m picking them all up again because I have separation anxiety.”