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.5.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.5-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: codegen_2-2.16.5.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.5.tar.gz
Algorithm Hash digest
SHA256 1f4d725831abec882ad55d48047c44d2117feabd03f2df2100ecd39bb39d48b2
MD5 3579904d06cb79bbf0c1f3e4ae6d90a5
BLAKE2b-256 1fd04dbf77133caa719567d6932d73a091ecf8627ba80eb1c7af5e7ec008cfc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: codegen_2-2.16.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c00df29f15a56cc9d0ca91e96438a6b5dd3a6db48ff8074a87b4c078bac9a411
MD5 02a5c32826b57f46cf4ba83f593cdc96
BLAKE2b-256 80df9ed37ac844febf99cf352a748dfa9e0d200f20ece83710a471ee2da7016c

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