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:
Python package index (download releases)
Documentation (read how things work)
Github (get latest source code, file bugs)
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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| cgen-2025.1.tar.gz | 19.2 kB | 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
|