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

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.4
File Size Uploaded Provenance Actions
codegen_2-2.18.4.tar.gz 19.7 kB Without provenance Details for codegen_2-2.18.4.tar.gz

Built distribution (wheel)

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

Total release size: 43.1 kB

Release files / codegen_2-2.18.4.tar.gz

Download URL codegen_2-2.18.4.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7e9405be5b8981f2e2a2dcfc64c736f7a0800605d43acdfddb0bc27530be44a0
BLAKE2b-256 checksum
How to use checksums
378cbe407046844d884c5da5678e2eff5f32e90a2fdb31368ea959c383dd64b3
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.4-py3-none-any.whl

Download URL codegen_2-2.18.4-py3-none-any.whl
Size 23.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba3b7351d5bf78df7f53262754987a8fedfced4a418f167c57eb98eae4e4ffca
BLAKE2b-256 checksum
How to use checksums
7b02b91bed217a7f78e82042b106ca703aa22e703799f66512a8e9445bda3611
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.4

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