Registry / data / openfisca-core

openfisca-core

JSON →
library44.7.0pypypiunverified

OpenFisca is a versatile microsimulation free software. This is the core engine that compiles and evaluates tax-benefit rules written in Python. Current version: 44.7.0. Released roughly monthly.

pip install openfisca-core
INSTALL
IMPORT
SIG · OPENFISCA-CORE
O
openfisca-core
datapythonv44.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

SimulationBuilder
from openfisca_core.simulation_builder import SimulationBuilder
from openfisca_core.simulation_builder import SimulationBuilder

Load a tax-benefit system and run a simulation.

from openfisca_core.simulation_builder import SimulationBuilder from openfisca_core.taxbenefitsystems import TaxBenefitSystem # Example: load a country package (must be installed separately) # Here using openfisca-france as an example system = TaxBenefitSystem.load('openfisca_france') builder = SimulationBuilder() simulation = builder.build_from_entities(system, {'personnes': {'individus': [{}]}}) print(simulation.calculate('salaire_imposable', period='2023-01'))
openfisca --version
Debug
Known issues
breakingIn version 35+ the `simulation.calculate('variable')` now returns a numpy array instead of a float. Use `.item()` for scalar.
fix
call `.item()` on the result for scalar values, or use indexing.
affects: >=35.0.0
deprecatedThe use of `openfisca_core.tracer` (singular) is deprecated; use `openfisca_core.tracers` (plural).
fix
replace `from openfisca_core.tracer import Tracer` with `from openfisca_core.tracers import Tracer`
affects: >=34.0.0
gotchaOpenFisca-Core does not include any country package. You must install a country package separately, e.g., `pip install openfisca-france`.
fix
install the relevant country package or define your own taxbenefitsystem.
affects: all
Upgrade
Version history
44.7.0latest on PyPI · released Apr 22, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
28
OpenAI (training)
1
Resources