Python support for codecontext is provided as a small native checker that validates
@context annotations in # comments.
It validates:
@contexttag syntax- known type/subtype combinations
- local
{@link file:...}resolution - explicit
[verified:YYYY-MM-DD]dates
codecontext_python: parser and CLI entrypointtests: conformance and checker tests
# @context decision:constraint {@link file:docs/context/api-limits.md} !high [verified:2026-03-24] -- Stripe caps batch size at 100.
def clamp_batch_size(size: int) -> int:
return min(size, 100)python3 -m pip install -e packages/python
codecontext-python examples/python/payments/gateway.py