Skip to main content
Gitlab Build Status Github Build Status Python Package Index Release Page

cgen offers a simple abstract syntax tree for C and related languages (C++/CUDA/OpenCL) to allow structured code generation from Python. To represent mathematical expressions, cgen can be used with pymbolic.

Places on the web related to cgen:

cgen is licensed under the liberal MIT license and free for commercial, academic, and private use. All of cgen’s dependencies can be automatically installed from the package index after using:

pip install cgen

Metadata

Release files for cgen 2025.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cgen 2025.1
File Size Uploaded Provenance
cgen-2025.1.tar.gz 19.2 kB Without provenance Details

Release files / cgen-2025.1.tar.gz

Download URL cgen-2025.1.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
79f01e010d49c13e58b4ca8f2d4996a6b7178968f5f2d906262733480ae7a2d4
BLAKE2b-256 checksum
How to use checksums
184ba84a2fd2abce1c7bdef848ef7e7763f9447040e01514f741f8c7dfae1bab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Security for cgen 2025.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page