Meta-programming
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
codegen_2-2.17.0.tar.gz
(15.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codegen_2-2.17.0.tar.gz.
File metadata
- Download URL: codegen_2-2.17.0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95910a03680695b762ecb6d658bb2d82cddb6fb0815d00201c91be6b9e224936
|
|
| MD5 |
41af097223751dd1bce6f59b8efae1f2
|
|
| BLAKE2b-256 |
2c690fa229128682588d7bda83e0b5d0b30a4c43f997a18287f7b733db11e492
|
File details
Details for the file codegen_2-2.17.0-py3-none-any.whl.
File metadata
- Download URL: codegen_2-2.17.0-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b9b8c85123d83dd40825e487882dd454c330bc803ad8d267709de2062547a23
|
|
| MD5 |
f5395a28b351f2248802e62b41e866e1
|
|
| BLAKE2b-256 |
4ddf59308d6e49c83df50689484c69c47b69726b508be2d884a725ed73479924
|