PolicyEngine Core
A fork of OpenFisca-Core that powers PolicyEngine country models (policyengine-uk, policyengine-us, policyengine-canada, policyengine-il, policyengine-ng) and the downstream apps and APIs. Provides the simulation engine, parameter tree, variable system, and reform machinery that each country package builds on top of.
Install
pip install policyengine-core
Supports Python 3.9 – 3.14.
Usage
Most users reach this package transitively through a country model. Import directly if you're building a new country model, writing a reform, or extending the core:
from policyengine_core.simulations import Simulation
from policyengine_core.reforms import Reform
See the documentation for API reference and tutorials.
Development
# Install dev dependencies (uses uv)
make install
# Run the full test suite
make test
# Run a single test
uv run pytest tests/core/test_file.py::test_name -v
# Format before committing (CI enforces)
make format
Always use uv run for Python commands; bare python / pytest / pip may pick up the wrong environment.
Contributions: see CONTRIBUTING.md for branching, PR conventions, and the towncrier changelog.d/ workflow. Default branch is master.
License
Distributed under the AGPL License. See LICENSE for details.
Acknowledgements
- Forked from OpenFisca-Core.
- README template adapted from Othneil Drew's Best-README-Template.
Release files for policyengine-core 3.31.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| policyengine_core-3.31.1.tar.gz | 500.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| policyengine_core-3.31.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:746.2 kB
Release files / policyengine_core-3.31.1.tar.gz
| Download URL | policyengine_core-3.31.1.tar.gz |
|---|---|
| Size | 500.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ca8f666c3e67b0c0ce992fa3dc9d1ff2c095a3860f3d719883588b2f9e44ec3
|
|
BLAKE2b-256 checksum How to use checksums |
9f1ecd58cb6947720a5b7850c06a988abbc0eef53e2be192ed49a17ed62d78d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / policyengine_core-3.31.1-py3-none-any.whl
| Download URL | policyengine_core-3.31.1-py3-none-any.whl |
|---|---|
| Size | 245.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
308200b28aa26bb79d7f0badebac391c0a81704d45ba4ef48ac79e88f0b21e6b
|
|
BLAKE2b-256 checksum How to use checksums |
74ce995992049664b6b4cecd1e4db76b143e07aaee8239043057436f48ccbe75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|