Python Package

Scan lifecycle statique

Scan AST Pro+ (Thread/Timer/logger/QThread). Hors de check --extended, pas une preuve RSS.

Accès anticipé: Jusquu2019au 2026-12-31

check-lifecycle est un test qualite Pro+ (lifecycle_scan). Il trouve des motifs AST a file:line. Il ne mesure pas le RSS ni les threads OS — cela reste Gist Factor.

Points cles

  • CLI: sous Windows les exemples utilisent py -3.12 -m <module> ... (par exemple py -3.12 -m manifestguard ...). Sous Linux/macOS cela correspond en general a python3.12 -m ....
  • Community peut lire ce guide et list-tests. L execution exige Trial/Pro ou plus.
  • Detecteurs : list bloat, I/O sync, context managers, Thread sans join, Timer sans cancel, addHandler sans garde, QThread optionnel.
  • Pas dans check --extended. Ajoutez-le comme gate CI separee.

Workflow recommande

  1. py -3.12 -m manifestguard check-lifecycle
  2. Corriger Thread/Timer/logger ; pour PyQt/PySide appeler quit()/wait().
  3. Garder check --extended --refactor --verbose comme autre commande.

Demarrage rapide

py -3.12 -m manifestguard check-lifecycle
py -3.12 -m manifestguard check --extended --refactor --verbose

Prérequis

Colonnes
Installation interpreter
Python 3.12 + pip
Recommended default path for installation and CLI calls.
Project target versions
Python 3.8 to 3.12
These are the project/runtime targets mgpy can analyze.
mgpy runtime
Validated on Python 3.10 to 3.13
The tool runtime itself is covered for this range.
CLI invocation
Windows: py -3.12 -m manifestguard
Linux/macOS usually maps to python3.12 -m manifestguard.
Runtime packages
tomlkit, click, pydantic, packaging, watchdog, PyNaCl, rfc8785
tomli is only added for Python below 3.11.
Offline / wheel install
Optional via pip --no-index or wheel
Useful for air-gapped or approved bundle distribution paths.