Python packageSupported stable generatorAvailable now
Infer a normalized generation model from OpenAPI and apply bundled or project-owned Jinja template packs.
python -m pip install codepotgOn this page
codepotg
codepotg is the stable Python and Jinja generation runtime in the Codepot ecosystem.
It consumes OpenAPI 3.0 or 3.1 JSON/YAML, builds an indexed source cache, normalizes schemas and application metadata, plans files through a template pack, renders Jinja templates, and applies guarded project writes.
Package status
- PyPI package:
codepotg - current package version:
1.0.0 - Python: 3.11 or newer
- binary:
codepotg - template engine: Jinja 3
- input: OpenAPI 3.0 or 3.1 JSON/YAML
- bundled targets: TypeScript, Next.js, Dart, and debug packs
CodepotG is active and supported. It remains the mature generator while equivalent behavior is stabilized in codepotx.
What CodepotG owns
- JSON streaming and indexed JSONL caches;
- cached YAML-to-canonical-JSON compatibility conversion;
- normalized contract and dependency inference;
- legacy and graph-based
paths.yamlplanning; - Jinja templates, partials, filters, and raw files;
- language adapters and target helpers;
- managed and immutable lifecycle policies;
- dry runs, guarded cleanup, before/after commands, and diagnostics;
- atomic writes and generation reports;
- optional memory tracing.
Learning path
- Install and run a first task
- Understand the generation pipeline
- Configure
Codepotg.yaml - Use tasks and CLI commands
- Build a template pack
- Write
paths.yaml - Write Jinja templates
- Understand the template context
- Browse variable reference groups
- Understand OpenAPI preservation
- Configure lifecycle safety
- Tune performance and memory
- Apply best practices
Basic workflow
Continue with Getting started.