inducer/cgen

C/C++ source generation from an AST

68
/ 100
Established

This tool helps developers generate C, C++, CUDA, or OpenCL source code programmatically using Python. You provide high-level descriptions of your desired C-like code structure in Python, and it outputs the corresponding ready-to-use source code. This is ideal for software engineers or scientific programmers who need to automate the creation of specialized C-family code.

171 stars. Used by 2 other packages. Available on PyPI.

Use this if you need to dynamically create C, C++, CUDA, or OpenCL code from a Python application, especially for tasks involving mathematical expressions or repetitive code structures.

Not ideal if you're looking for a general-purpose C/C++ compiler or an IDE for manual code writing and debugging.

C-code-generation C++-code-generation CUDA-development OpenCL-development scientific-programming
Maintenance 10 / 25
Adoption 12 / 25
Maturity 25 / 25
Community 21 / 25

How are scores calculated?

Stars

171

Forks

35

Language

Python

License

Last pushed

Feb 21, 2026

Commits (30d)

0

Dependencies

3

Reverse dependents

2

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/inducer/cgen"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.