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

#370: Your Very Own Heroku

Published Tue, Feb 6, 2024, recorded Tue, Feb 6, 2024
Watch this episode on YouTube
Play on YouTube
Watch the live stream replay

About the show

Sponsored by us! Support our work through:

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: Dokku

  • An open source PAAS alternative to Heroku.
  • Dokku helps you build and manage the lifecycle of applications from building to scaling.
  • Powered by Docker, you can install Dokku on any hardware.
  • Once it's set up on a host, you can push Heroku-compatible applications to it via Git.
  • Rich plug in architecture.

Brian #2: Summary of Major Changes Between Python Versions

  • Nicholas Hairs
  • Changes between versions & Tools & utilities to help with switching
  • Hopefully you’re already at least at 3.8, but come on, 3.11 & 3.12 are so fun!
  • Useful things
    • pyupgrade can automatically upgrade code base
      • (However, I frequently just upgrade and run tests and let my old code be as-is until it bugs me. - Brian)
    • black checks pyproject.toml requires-python setting and uses version specific rules.
  • Versions (way more highlights listed in the article)
    • 3.8
      • Assignment expressions := walrus
      • f"{variable=}" now works
    • 3.9
      • Typing has built in generics like dict[], so no more from typing import Dict
      • Dict union operator
      • Strings can removeprefix and removesuffix
    • 3.10
      • Structural pattern matching match/case
      • Typing: Union using pipe |
      • Dataclasses support slots=True and kw_only=True
    • 3.11
      • tomllib included as a standard TOMP parser
      • Exception groups
      • Exception Notes add_note()
      • Typing: A Self type
      • Star unpacking expressions allowed in for statements: for x in *a, *b:
    • 3.12
      • f-strings can re-use quotes
      • Typing: better type parameter syntax
      • Typing: @override decorator ensures a method being overridden by a child class actually exists.

Michael #3: How to check Internet Speed via Terminal? speedtest-cli

  • Command line interface for testing internet bandwidth using speedtest.net
  • Just pipx install speedtest-cli
  • Has a Python API too

Brian #4: Blogs: We all should blog more

Extras

Brian:

Michael:

Joke: White Lies


Want to go deeper? Check our projects