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

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.5
File Size Uploaded Provenance Actions
codegen_2-2.18.5.tar.gz 19.8 kB Without provenance Details for codegen_2-2.18.5.tar.gz

Built distribution (wheel)

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

Total release size: 43.4 kB

Release files / codegen_2-2.18.5.tar.gz

Download URL codegen_2-2.18.5.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6f890bb0ac1870c73d2dc420f06677ecd3395a9ddb7d4e7d2efc3867acb56eb5
BLAKE2b-256 checksum
How to use checksums
0469b255d6c54dd60967a58b0de6dca20e4e4ee56ebd94bdbe1b977d020d42f6
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.5-py3-none-any.whl

Download URL codegen_2-2.18.5-py3-none-any.whl
Size 23.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0d890ad9ac6f3d0f587b9db3f174c446a47ca6b1654449787991c6beab765ae
BLAKE2b-256 checksum
How to use checksums
6041049dc97163d7d10594d4d8a8fb5276f8ca24eb982a4f528879a25d8b9c0e
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.5

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