Repository navigation
mpat 0.1.0
First usable release.
@patch(target, depends_on=..., until=..., on_drift=..., review_by=..., note=...)andwatch(target, ...)- Fingerprints from the installed source file via
ast, never from live objects mpat.lock: TOML, keyed tables, atomic writempat lock,mpat check [--json],mpat show; exit codes 0/1/2- Drift statuses:
ok,missing,moved,signature,body,value,no_source,unlocked,stale,review mpat.testing: generated pytest tests for drift and for patches whoseuntilcondition flipped- Denylist for security-critical modules, overridable only via
[tool.mpat] allow - Python 3.11 to 3.14, typed (
py.typed)
Docs: https://monkeypat.ch