Registry / data / openfisca-france

openfisca-france

JSON →
library175.0.45pypypiunverified

OpenFisca Rules as Code model for France. It simulates the French tax-benefit system. Current version: 175.0.40, requires Python >=3.9. Released continuously.

pip install openfisca-france
INSTALL
IMPORT
SIG · OPENFISCA-FRANCE
O
openfisca-france
datapythonv175.0.45
Install
9.1s avg
Import
1036ms
Disk
167MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v175.0.45 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 9.1s · import 1.036s · 168MB
167MB installed
● package 167MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FranceTaxBenefitSystem
from openfisca_france import FranceTaxBenefitSystem
from openfisca_france import FranceTaxBenefitSystem

Simulate the monthly disposable income of a single person earning 2000 EUR/month.

from openfisca_france import FranceTaxBenefitSystem from openfisca_core.simulation_builder import SimulationBuilder # Create the tax-benefit system tbs = FranceTaxBenefitSystem() # Create a simulation for a single person builder = SimulationBuilder() simulation = builder.build_from_entities(tbs, { 'individus': ['person1'], 'familles': ['famille1'], 'menages': ['menage1'], }) simulation.set_input('age', '2026-01-01', {'person1': 30}) simulation.set_input('salaire_de_base', '2026-01', {'person1': 2000}) simulation.calculate('revenu_disponible', '2026-01')
openfisca --version
Debug
Known issues
breakingVersion 6.0.0 introduced a major refactoring of variable names and entities. Old variable names (e.g., 'salaire_net', 'impots_directs') are deprecated or removed.
fix
Update variable names to current ones as per the changelog. Use `openfisca_france.variables` to list available variables.
affects: <6.0.0
deprecatedPython 3.9 is the minimum; support for Python 3.8 was dropped in version 5.0.0.
fix
Upgrade Python to 3.9 or higher.
affects: <5.0.0
gotchaThe simulation builder now requires explicit entity mapping; using `SimulationBuilder` incorrectly can lead to entity mismatches.
fix
Always specify entities as a dict: {'individus': [...], 'familles': [...], 'menages': [...]}. Do not rely on automatic detection.
affects: >=6.0.0
Upgrade
Version history
175.0.45latest on PyPI · released Jun 2, 2026
Audit
Dependencies
openfisca-corerequiredCore engine for OpenFisca
Agent activity
2 hits · last 30 days
node
2
Resources
openfisca-france — pip install openfisca-france · libregistry