MikeTrendsTrends right now

⬢github Python · 123 ★ +19 since we first saw it · pushed 21 h ago · MIT

Facebook/lifeguard

Lifeguard is a static analyzer to detect Lazy Imports incompatibilities and ease the adoption overhead for Lazy Imports in Python

Lifeguard is a fast static analyzer that scans Python codebases and flags patterns incompatible with Lazy Imports (PEP 810), such as module-level side effects, registry patterns, and sys.modules manipulation. It analyzes ASTs in parallel, defaults to marking unclear cases unsafe, and helps teams adopt lazy imports to reduce startup time and memory usage.

Why now: Not clear from the sources, though interest likely stems from growing attention around PEP 810 lazy imports and Lifeguard's beta push toward Python 3.15.

Who it is for: Python developers and maintainers of large codebases who want to safely adopt lazy imports to cut startup times and memory usage.

pythonstatic-analysislazy-importspep810rustlinter

lazy-importspep810pythonruststatic-analysis

Open on GitHub →

Stars over our 128 snapshots: 104 to 123, since 1 d ago.

Where people talked about it

API: https://socialmediatrends-api.osmike.com/v1/repos/Facebook/lifeguard