OpenFisca
Rules-as-code framework: legislation written in Python, served as a web API.
What it does
A free engine for writing rules as code: legislation is modelled as code to calculate taxes and benefits through a JSON web API, run analysis with a vectorial Python API and simulate the impact of reforms on income distribution. A Python framework with open country packages, for policy experts and governments, developers and data scientists, and researchers. The page does not state the licence.
Where it fits on the map
- Company tax department › Direct & International TaxCorporate income-tax compliancepartly covered
- Company tax department › Tax Policy & Stakeholder EngagementTax policy & stakeholder engagementpartly covered
- Tax authority › Policy, Legislation & Revenue AnalysisReform costing & microsimulationcovered
- Tax authority › Policy, Legislation & Revenue AnalysisRules as code & legislative draftingcovered
Named as a project to start with: Catala writes the statute article by article next to the law; OpenFisca serves a country's rules as an API. Pick by how close to the legal text you must stay.
In the processes
- Corporate income tax returnStep 2 · Tax adjustments & return calculation
Similar projects
Of the same kind, for a shared jurisdiction or tax area. Not a ranking.
- CatalaProgramming language for writing law as code, next to the legal text it implements.
- DGFiP calculette-irThe M-language rules of the DGFiP engine that computes French income tax and the real-estate wealth tax (IFI).
- EUROMODThe EU tax-benefit microsimulation model, maintained by the Joint Research Centre.
- GETTSIMThe German Taxes and Transfers Simulator: a microsimulation model of German taxes and benefits.
- IRS Fact GraphKnowledge-graph rules engine that models the US Internal Revenue Code, the calculation core of Direct File.
- IRS Form BuilderScala library that turns flow XML, fact dictionaries and locale files into questionnaire sites on Fact Graph.
Maintain this project?
Link to this page from your README, so readers find the facts, the notes and where it fits. The badge is a small SVG served from this site.
[](https://tax-oss.com/projects/openfisca/)