Metadata-Version: 2.4
Name: codepot-gen
Version: 0.1.0
Summary: General OpenAPI inference and multi-language code generation engine
Author: Codepot
Keywords: openapi,codegen,generator,typescript,dart
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Code Generators
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: typer>=0.12.5
Requires-Dist: rich>=13.9.0
Requires-Dist: questionary>=2.0.0
Requires-Dist: pydantic>=2.8.0
Requires-Dist: pydantic-settings>=2.4.0
Requires-Dist: PyYAML>=6.0.2
Requires-Dist: jinja2>=3.1.4
Requires-Dist: pluralizer>=2.0.0

Codepot Gen
===========

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

Installation
------------

```bash
pip install codepot-gen
```

CLI Usage
---------

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

Short aliases are also installed:

```bash
apigen --help
codepot --help
```

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

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

Python Usage
------------

```python
from codepot_gen import GeneratorApp

app = GeneratorApp()
```

Build And Publish
-----------------

Install build tools:

```bash
python -m pip install build twine
```

Build locally:

```bash
python -m build
```

Check the package:

```bash
python -m twine check dist/*
```

Publish to TestPyPI first:

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

Publish to PyPI:

```bash
python -m twine upload dist/*
```
