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

Uploaded Python 3

File details

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

File metadata

  • Download URL: codegen_2-2.16.2.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.2.tar.gz
Algorithm Hash digest
SHA256 c2970e525baa987054380284afd13fb4e61971155dda08f62ae0a86b1b05062c
MD5 549d1f1c62554c484a40f9ec92413fe4
BLAKE2b-256 d51d9b24d7cbf1d20b225cc5010c9c19b1ccce2e86c9aee1f49f0b679d983729

See more details on using hashes here.

File details

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

File metadata

  • Download URL: codegen_2-2.16.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 07436b35239d7f89047352c76c23fae6f7964b1de7ae7dea228cb9af4ca10567
MD5 aacd1ce76196b451ffb4967506f22eca
BLAKE2b-256 0734036d70e973f8dbadcab03760d66422c9f6f8c421902fb7608cc780863d2c

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