codegen
codegen is a small code generation library for building Python and partial TypeScript output from a lightweight AST.
- PyPI/package name:
codegen-2 - Import path:
codegen - Main public module:
codegen.models - Python requirement:
>=3.11
Use this import pattern:
from codegen.models import Program, DeferredVar, ImportHelper, expr, stmt
The top-level codegen/__init__.py is empty, so from codegen import Program does not work.
Full reference: docs/codegen-reference.md
Metadata
Release files for codegen-2 2.17.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| codegen_2-2.17.0.tar.gz | 15.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| codegen_2-2.17.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.8 kB
Release files / codegen_2-2.17.0.tar.gz
| Download URL | codegen_2-2.17.0.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95910a03680695b762ecb6d658bb2d82cddb6fb0815d00201c91be6b9e224936
|
|
BLAKE2b-256 checksum How to use checksums |
2c690fa229128682588d7bda83e0b5d0b30a4c43f997a18287f7b733db11e492
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / codegen_2-2.17.0-py3-none-any.whl
| Download URL | codegen_2-2.17.0-py3-none-any.whl |
|---|---|
| Size | 19.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b9b8c85123d83dd40825e487882dd454c330bc803ad8d267709de2062547a23
|
|
BLAKE2b-256 checksum How to use checksums |
4ddf59308d6e49c83df50689484c69c47b69726b508be2d884a725ed73479924
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|