spookylukey/fluent-codegen
Python code generation library, extracted from fluent-compiler
Constructs Python AST nodes via high-level abstractions (functions, conditionals, expressions) rather than raw AST manipulation, eliminating injection bugs and string interpolation pitfalls. Provides two expression-building APIs—fluent method chaining and "E-objects" that intercept Python operators—enabling readable programmatic code generation. Originally distilled from fluent-compiler's Fluent localization compilation pipeline, with automatic scope management and built-in safeguards against dangerous builtins.
Available on PyPI.
Stars
3
Forks
—
Language
Python
License
—
Category
Last pushed
Mar 28, 2026
Monthly downloads
309
Commits (30d)
0
Dependencies
1
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/spookylukey/fluent-codegen"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
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
cogu/cfile
A python C code generator