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

Uploaded Python 3

File details

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

File metadata

  • Download URL: codegen_2-2.16.7.tar.gz
  • Upload date:
  • Size: 15.1 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.7.tar.gz
Algorithm Hash digest
SHA256 2db0162e3b170ff771b76b283e8d8c10b13d0d48545432db400ef526976ba2eb
MD5 4368f51d1961cced955270c82248aaa5
BLAKE2b-256 7917c370f957c4d219be597be1fe1e1aa0390cf0568813a4a539f5e489e85b12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: codegen_2-2.16.7-py3-none-any.whl
  • Upload date:
  • Size: 19.3 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5e2480aca2a9eb99f1075f399b084460c0c699bec228bf8c7e1868bce6dc7d4a
MD5 d7d413ea7b5a6bce778093c08a73674c
BLAKE2b-256 7747c870604ffc30456e009f1797ad8d55f93dedd449d2da6d269cb2b376a176

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