cogu/cfile
A python C code generator
Generates C code through an AST-like object model with fine-grained control over syntax elements—functions, structs, typedefs, pointers, and initializers—composed via a factory API. Supports customizable formatting through `StyleOptions` (brace placement, pointer alignment, indentation), enabling consistent output across different code style conventions. Targets embedded systems and code generation workflows where programmatic C production is preferred over templates.
92 stars and 16,655 monthly downloads. No commits in the last 6 months. Available on PyPI.
Stars
92
Forks
25
Language
Python
License
MIT
Category
Last pushed
Mar 28, 2024
Monthly downloads
16,655
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/cogu/cfile"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
inducer/cgen
C/C++ source generation from an AST
westandskif/convtools
convtools is a specialized Python library for dynamic, declarative data transformations with...
pyecore/pyecore
A Python(nic) Implementation of EMF/Ecore (Eclipse Modeling Framework)
mutating/transfunctions
Say NO to Python fragmentation on sync and async
FEniCS/ffcx
Next generation FEniCS Form Compiler for finite element forms