Infer a normalized generation model from OpenAPI and apply bundled or project-owned Jinja template packs.
python -m pip install codepotgOn this page
Getting started
Install
Verify the installation:
Create a project configuration
CodepotG uses Codepotg.yaml or Codepotg.yml.
allow: true is mandatory. It is an explicit acknowledgement that generation may write files and run configured commands.
CodepotFile.yml and CodepotFile.yaml belong to the TypeScript codepotx workflow and are rejected by CodepotG.
Preview the task
A dry run resolves input, templates, selections, output paths, lifecycle modes, cleanup plans, and commands without writing files or executing commands.
Review:
- selected language and template directory;
- planned managed and immutable files;
- refused unsafe paths;
- cleanup paths;
- diagnostics and unresolved references.
Generate
Run every task in file order:
Use a custom template pack
A custom pack normally contains:
Inspect a pack before generation
The command reports templates, import strategy, lifecycle defaults, selections, emissions, providers, and barrels.
Typical development loop
Python API
Use the application API when another Python tool owns orchestration. CLI and API calls use the same runtime workflow.