inducer/cgen
C/C++ source generation from an AST
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.
Stars
171
Forks
35
Language
Python
License
—
Category
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.
Related tools
vil02/puzzle_generator
Generates python code representing a puzzle
westandskif/convtools
convtools is a specialized Python library for dynamic, declarative data transformations with...
numen31337/copy_with_extension
Auto-generate `copyWith` methods for your Dart classes.
finsberg/gotranx
Next generation ODE translator
cleder/crepr
Create a ❤️__repr__🤗️ for your python classes from the definition found in __init__