Skip to main content

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


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.16.4.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codegen_2-2.16.4-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file codegen_2-2.16.4.tar.gz.

File metadata

  • Download URL: codegen_2-2.16.4.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for codegen_2-2.16.4.tar.gz
Algorithm Hash digest
SHA256 c903e0080169e03c55aab865ce93105a999de8e53c32178d579984db1050cabd
MD5 48e9c542e7eb59107c069c97d0bca05a
BLAKE2b-256 4e84885b322974c23a091ec4592601857cf4b0633a7dec8de26a0181abc8f4b9

See more details on using hashes here.

File details

Details for the file codegen_2-2.16.4-py3-none-any.whl.

File metadata

  • Download URL: codegen_2-2.16.4-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for codegen_2-2.16.4-py3-none-any.whl
Algorithm Hash digest
SHA256 68b39431979ee838e59f2389a0d62e8cd1a003e85b376527b7ebd54b7aa8d329
MD5 adcacca122696fdb8f68c274396e743f
BLAKE2b-256 22a3e27ad9bea263a4732b899d30a5d87e1c5a0f58d8e13ce5cb13e0f120788a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page