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.11–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.
Metadata
Release files for policyengine-core 3.32.16
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.32.16.tar.gz | 487.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| policyengine_core-3.32.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 745.8 kB
Release files / policyengine_core-3.32.16.tar.gz
| Download URL | policyengine_core-3.32.16.tar.gz |
|---|---|
| Size | 487.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
231f1347d9facbbbbc33de84adbcb545117a811845efef855ca79ea20ba63e63
|
|
BLAKE2b-256 checksum How to use checksums |
983e62ca35331203eec3747f738254857d7faac12f3e86772cce9b5c1e247d42
|
| 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.32.16-py3-none-any.whl
| Download URL | policyengine_core-3.32.16-py3-none-any.whl |
|---|---|
| Size | 257.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
100811c96a8962d29f1677156ddb18fc125d4c4f900eb5f32e980656ba3591b9
|
|
BLAKE2b-256 checksum How to use checksums |
f3a7d690b3cba65426fbb66d5ba4e4d5e8804dbfbe3ac63d7714afcf4f2f5b6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|