policyengine-core
Core microsimulation engine enabling country-specific policy models.
Decision gist · record as of 2026-08-14
Yes, if you are building a country policy model, writing custom reforms, or integrating policy simulation into an application. No, if you simply need to run policy scenarios—install a country model instead (policyengine-uk, policyengine-us, etc.), which brings this as a dependency. The AGPL license requires derivative works to be open-source, which is appropriate for public-interest policy tools but may conflict with proprietary use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- Most users should install via a country model (policyengine-uk, policyengine-us, etc.) rather than directly.
- Low friction installation with a pure Python wheel.
License · maintenance · safety
(agpl) — Distributed under AGPL v3, which requires that any modifications or derivative works be shared under the same license. This is a copyleft obligation suitable for open-source policy tools but may constrain proprietary use.
last release 2026-08-14 (0 days) · last repo commit 2026-08-14 · 20 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 131,083 downloads/mo, #11,610 on PyPI
Alternatives
Verify before relying
pip install policyengine-core
from policyengine_core.simulations import Simulation
from policyengine_core.reforms import Reform
# Use Simulation and Reform classes to model policy scenarios- Whether the package's 16 runtime dependencies (including h5py, plotly, pyvis) are all necessary for typical use cases or if many are optional.
- Performance characteristics and scalability limits for large population simulations.
- Compatibility guarantees between policyengine-core versions and downstream country model packages.
What it is and what it does
PolicyEngine Core is a microsimulation engine forked from OpenFisca-Core that provides the foundational machinery for policy modeling. It includes a simulation engine, parameter tree, variable system, and reform framework that country-specific policy packages (such as policyengine-uk, policyengine-us, policyengine-canada, policyengine-il, policyengine-ng) build on top of. The package is designed to calculate tax and benefit outcomes across populations under different policy scenarios.
Most developers encounter this package transitively through a country model rather than installing it directly. Direct installation is appropriate when building a new country model, writing custom reforms, or extending the core simulation engine itself. The package depends on scientific Python libraries (numpy, pandas, numexpr, h5py) for numerical computation and data handling, plus visualization (plotly, pyvis) and utility libraries. It is actively maintained, supports modern Python versions (3.9–3.14), and carries no known security vulnerabilities.
Use it for
- Building a new country-specific policy model by extending the core simulation and variable framework.
- Writing custom tax or benefit reforms to model policy changes and calculate fiscal impacts.
- Running population-level microsimulations to evaluate policy outcomes under different scenarios.
- Integrating policy modeling into downstream applications or APIs that need to compute tax and benefit calculations.
- Extending or modifying the core engine when the standard country models do not cover your jurisdiction or use case.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building a country policy model, writing custom reforms, or integrating policy simulation into an application.
No, if you simply need to run policy scenarios—install a country model instead (policyengine-uk, policyengine-us, etc.), which brings this as a dependency. The AGPL license requires derivative works to be open-source, which is appropriate for public-interest policy tools but may conflict with proprietary use.
Install
policyengine-core on PyPI
Before you install
Low friction installation with a pure Python wheel. Actively maintained with a release on 2026-08-14 and no known vulnerabilities. Supports Python 3.9 through 3.14, covering current and recent Python versions.
Requires Python 3.9 or later. Most users should install via a country model (policyengine-uk, policyengine-us, etc.) rather than directly.
License in practice
Distributed under AGPL v3, which requires that any modifications or derivative works be shared under the same license. This is a copyleft obligation suitable for open-source policy tools but may constrain proprietary use.
Quickstart
pip install policyengine-core
from policyengine_core.simulations import Simulation
from policyengine_core.reforms import Reform
# Use Simulation and Reform classes to model policy scenarios
Verify before relying
- Whether the package's 16 runtime dependencies (including h5py, plotly, pyvis) are all necessary for typical use cases or if many are optional.
- Performance characteristics and scalability limits for large population simulations.
- Compatibility guarantees between policyengine-core versions and downstream country model packages.
Package facts
| License | Not declared agpl |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 16 packagesdpathh5pyhuggingface-hubipythonmicrodf-pythonnumexprnumpypandasplotlypsutilpytestpyvisrequestssortedcontainersstandard-imghdrwheel |
| Maintenance | Actively maintained 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 131,083 / month, #11,610 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableLicense :: OSI Approved :: GNU Affero General Public License v3Operating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Information Analysis |
Evidence: policyengine_core-3.31.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “policy reform engine”
- policyengine-corePolicyEngine Core provides a microsimulation engine and policy reform…
- cedarpycedarpy binds the Cedar Policy authorization engine to Python,…
- oslo.policyoslo.policy enforces role-based access control (RBAC) policies across…
Give your agent the search over MCP, or paste the wish link into any chat.
More Information Analysis packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyarrow provides Python bindings to Apache Arrow's C++ libraries for efficient columnar data processing, serialization, and interoperability with pandas, NumPy, and other Python ecosystem tools.
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
Snowpark Python provides APIs to query and process data directly in Snowflake without moving data to your local system, with support for both native Snowpark and pandas-compatible interfaces.
Install it if you use Snowflake and want to process data without moving it to your application layer.
See also policyengine-us · oslo.policy · openbb-economy · langwatch-scenario · django-localflavor · google-meridian · openbb-oecd · python-codicefiscale · data-designer-engine · promptflow-core