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.1.tar.gz (10.3 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.1-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: codegen_2-2.16.1.tar.gz
  • Upload date:
  • Size: 10.3 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.1.tar.gz
Algorithm Hash digest
SHA256 78d3bce372b8e2b72febc41e58541b0d7430f66bcb731fa7edee1c9d12f17da2
MD5 9e65c049776fb89af514097fd939737d
BLAKE2b-256 bdfa5da58d210dce36d02df9a672e859eacf1e705dc84fb69c1b4b238f56b8b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: codegen_2-2.16.1-py3-none-any.whl
  • Upload date:
  • Size: 13.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4078226c82139e133c83c053b48d5c3e1727628211a371cff27ef07897bf237c
MD5 087215eba2a7e29258e60a2deb3c039e
BLAKE2b-256 52fa8e7e9121bee72c8f1c444b2f8e9a6265bf3e4be8bc957aac21033f766d7f

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