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

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.1
File Size Uploaded Provenance Actions
codegen_2-2.18.1.tar.gz 17.3 kB Without provenance Details for codegen_2-2.18.1.tar.gz

Built distribution (wheel)

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

Total release size: 38.4 kB

Release files / codegen_2-2.18.1.tar.gz

Download URL codegen_2-2.18.1.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
62f125d82b230a31002d2ee13c46ba26e1e95220224d3ccc24ea5d61af9e5ad8
BLAKE2b-256 checksum
How to use checksums
f31cd75e7f305390a5592cea21e9318523dfa58b5f074f7fd78f931e3a9e44ce
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.1-py3-none-any.whl

Download URL codegen_2-2.18.1-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a629ff472e4af843bd9ab7805973a129eea33efa1f7bfb3e097013106fc94b81
BLAKE2b-256 checksum
How to use checksums
7568c01b45b0682274ca27dfb3a5ee5255dbe9591c6ba08c3b9688ae065903d0
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.1

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