Skip to main content

General OpenAPI inference and multi-language code generation engine

Project description

Codepot Gen

OpenAPI inference and template-driven code generation for TypeScript, Dart, and debug output.

Installation

pip install codepot-gen

CLI Usage

codepot-gen emit \
  --input openapi.yaml \
  --language typescript \
  --output ./generated

Short aliases are also installed:

apigen --help
codepot --help

Bundled templates are included in the package. You can still override them:

codepot-gen emit \
  --input openapi.yaml \
  --language dart \
  --output ./sdk \
  --templates ./templates/dart

Python Usage

from codepot_gen import GeneratorApp

app = GeneratorApp()

Build And Publish

Install build tools:

python -m pip install build twine

Build locally:

python -m build

Check the package:

python -m twine check dist/*

Publish to TestPyPI first:

python -m twine upload --repository testpypi dist/*

Publish to PyPI:

python -m twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codepot_gen-0.1.0.tar.gz (138.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codepot_gen-0.1.0-py3-none-any.whl (214.0 kB view details)

Uploaded Python 3

File details

Details for the file codepot_gen-0.1.0.tar.gz.

File metadata

  • Download URL: codepot_gen-0.1.0.tar.gz
  • Upload date:
  • Size: 138.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for codepot_gen-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0777440d6108b49c460e6bcc6cd850f44639f7638907d74c22b4431b3187928a
MD5 4889a8295d1419be053675037f05ad0e
BLAKE2b-256 4befd638faf5a23db08e0be484da420676f1f344b2e5d13b5954bee64036c4e1

See more details on using hashes here.

File details

Details for the file codepot_gen-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: codepot_gen-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 214.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for codepot_gen-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a34d9371d1db8044d16b45bb7b5330b061f95a855451f5a38b18308f9325cb3
MD5 0f6d483a02511c29ed9b384ac9f95917
BLAKE2b-256 d4010fde6ec01d3b975278945fb37e5f2e1172a6d86599a15768fc090a69dae6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page