Back to browse
GitHub Repository

Financial Model Engineering — Python code compiles to live Excel formulas

43 starsPython

Modeleon – Python DSL that compiles to live Excel formulas

by adilkhanovkz·May 1, 2026·6 points·0 comments

AI Analysis

●●●BangerBig BrainSolve My Problem

Finally, a Python DSL that outputs real Excel formulas instead of baked values.

Strengths
  • Operator overloading automatically tracks cross-cell dependency graphs.
  • Walker/Renderer split allows targeting backends beyond just Excel.
  • Solves the auditability gap between Python models and CFO-ready spreadsheets.
Weaknesses
  • Pre-alpha API instability means breaking changes before 1.0.
  • Niche audience limits adoption to finance teams comfortable with Python.
Target Audience

FP&A analysts, financial engineers, Python-savvy accountants

Similar To

openpyxl · xlsxwriter · PyXLL

Post Description

Hi HN. Modeleon is an open-source Python DSL for financial models. You write models in Python with named variables and operator-overloaded arithmetic, and it compiles to a real .xlsx with live formulas — not values, but formulas like =B4*B5 that the CFO can audit in Excel.

The architectural bet is "model is the source of truth, spreadsheet is one rendering." We have a Walker/Renderer split so the same model can target Excel today and other backends later.

We've been building this for finance + Python developers (CFA candidates with Python skills, FP&A analysts who automate). It's pre-alpha — works, but the API will change before 1.0.

Apache 2.0. PyPI: pip install modeleon. Happy to answer questions.

Similar Projects

Developer Tools●●Solid

Nimic – write pure Python and compile AOT to native binaries via Nim

Python-to-Nim transpiler with ctypes-backed types when Cython and Numba already exist.

Big BrainNiche Gem
dima-quant
5013d ago