Python Byte-Size: SQLModel, GitHub.dev, and Productivity Tools

·46m 12s
Shared point

Introduction

In this episode, Michael Kennedy and Brian Okken, joined by guest Dan Taylor from Microsoft's Python team, discuss the latest developments and tools in the Python ecosystem. They cover everything from improving developer productivity to advanced database modeling.

Developer Tools & Utilities

Keeping Your Computer Awake

  • WakePy: A cross-platform library that helps prevent your system from entering sleep mode while executing long-running Python scripts.
  • Caffeinate: An OS-level utility for macOS to control sleep settings via the terminal without needing additional heavy software.

Web-Based Edits with GitHub

  • github.dev: A powerful browser-based version of VS Code integrated directly into GitHub.
  • By simply pressing the "." key while viewing a repository, developers can make quick code edits, commit changes, and benefit from extension support, including Vim mode and basic Python autocomplete.

Log Analytics with GoAccess

  • GoAccess: A lightweight, real-time web log analyzer that provides insights into website traffic without the need for intrusive browser-based trackers. It is an excellent privacy-focused alternative to Google Analytics.

Advanced Python Coding

SQLModel: Database & API Synergy

"This new SQLModel library looks just awesome because it actually combines the schema for talking to the database and speaking to your API into one schema object."

  • SQLModel: Created by Sebastián Ramírez, this library simplifies app development by unifying SQLAlchemy database models and Pydantic API models.
  • It leverages type hints to ensure a superior IntelliSense and developer experience, minimizing the need to manually translate between data layers.

Firmware Hacking with KMK

  • KMK: A framework for mechanical keyboards that uses CircuitPython. Users can customize keymaps, macros, and RGB lighting effects with simple Python files.

Type Inference using Machine Learning

  • Type4Py: A tool that uses a state-of-the-art machine learning model to infer type annotations. It is particularly useful for retrofitting older codebases with modern static analysis standards.

Topics

Chapters

7 chapters
Python Bytes
AI chat — answers grounded in episodes