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

Uploaded Python 3

File details

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

File metadata

  • Download URL: codegen_2-2.16.3.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.3.tar.gz
Algorithm Hash digest
SHA256 cd2e24d380734f5ca92b75251b002f30ce1e8a02f40980a32335d6b000012fc0
MD5 0a1141095ad9d7f44b76a1d9cbe52eca
BLAKE2b-256 ae0f1894d2882ae56362f81d53e42401afd8dece9ce54aa571e96a5886b8f2e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: codegen_2-2.16.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5e1c8f9d875ac3fb375c6ba56390a706aad95fb1be46efe2d816e48cea9c9f9a
MD5 503d1c9d6ad68caae8311a238bc3ac6a
BLAKE2b-256 17fca92b47bc98dccfc14a2f8e200b48d2e7136e40087c77dbdd8d7f07a27f7e

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