cogu/cfile

A python C code generator

64
/ 100
Established

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.

Stale 6m No Dependents
Maintenance 0 / 25
Adoption 19 / 25
Maturity 25 / 25
Community 20 / 25

How are scores calculated?

Stars

92

Forks

25

Language

Python

License

MIT

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.