Skip to main content

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.18.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codegen-2 2.18.3
File Size Uploaded Provenance Actions
codegen_2-2.18.3.tar.gz 19.6 kB Without provenance Details for codegen_2-2.18.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for codegen-2 2.18.3
File Interpreter ABI Platform Actions
codegen_2-2.18.3-py3-none-any.whl Python 3 none any Details for codegen_2-2.18.3-py3-none-any.whl

Total release size: 42.9 kB

Release files / codegen_2-2.18.3.tar.gz

Download URL codegen_2-2.18.3.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f3062eb1d83b3f287c1bb90d6fdb74410609e18f289ffbe3c4d5cc05f7fd4ec8
BLAKE2b-256 checksum
How to use checksums
af478ab24188b57973578c9100346a5aed1559d09131b0f0065cb9e1cd7a8ae4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / codegen_2-2.18.3-py3-none-any.whl

Download URL codegen_2-2.18.3-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6d63831800d438a49b047e3328ebb0b592215a6f3a7b6b6023ed76adce287ea
BLAKE2b-256 checksum
How to use checksums
9910591a3fa33cb2d6f3abce73e7b274618a6810965d21fdd8bcfc768385af05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for codegen-2 2.18.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.18.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page