Generate Time-Sortable IDs with Python 3.14’s UUID v7
Plus auto-infer Python types with Pyrefly
Grab your coffee. Here are this week’s highlights.
📅 Today’s Picks
Generate Time-Sortable IDs with Python 3.14’s UUID v7
Problem
UUID4 generates purely random identifiers that lack chronological ordering.
Without embedded timestamps, you need separate timestamp fields and custom sorting logic to organize records by creation time.
Solution
Python 3.14 introduces UUID version 7 with built-in timestamp ordering.
Key features:
Determine creation order by comparing two UUIDs directly
Retrieve exact creation time by extracting the embedded timestamp
Pyrefly: Automatic Type Inference for Python
Problem
By default, MyPy ignores untyped function bodies, forcing you to manually annotate variables and return types to get meaningful type checking.
This adds overhead and clutters your code with types that don’t add much value.
Solution
Pyrefly automatically infers return types and local variable types from usage, so you only annotate function parameters and public APIs where it matters.
Other features:
Lightning-fast type checking built in Rust
Works with VSCode, Neovim, Helix, Emacs, and Zed
Recognizes dataclass transforms from attrs, Pydantic, and similar libraries
☕️ Weekly Finds
pyrsistent [Python Utils] - Persistent/Immutable/Functional data structures for Python
wrapt [Python Utils] - A Python module for decorators, wrappers and monkey patching
Shiny for Python [Dashboard] - Build fast, beautiful reactive web applications in Python
💬 Rate Your Experience
How would you rate your newsletter experience? Share your feedback →
🔍 Explore More on CodeCut
Tool Selector - Discover 70+ Python tools for AI and data science
Production Ready Data Science - A practical book for taking projects from prototype to production


