FoRecoPy: Forecast Reconciliation in Python 
Forecast reconciliation is a post-forecasting process aimed at improving the accuracy and coherence of forecasts for a system of linearly constrained time series (e.g., hierarchical, grouped, or temporal structures).
The FoRecoPy package is inspired by the R package FoReco and brings similar functionality to Python. It is designed for researchers, practitioners, and data scientists who use Python for time series forecasting and want access to state-of-the-art reconciliation methods.
Future versions will expand the scope to include the cross-temporal framework, non-negative constraints and probabilistic reconciliation.
Installation
Make sure to have a working JAX installation (please, follow these instructions).
To install the package from PyPI, call:
pip install forecopy
To install the latest GitHub , just call the following on the command line:
pip install git+https://github.com/danigiro/FoRecoPy@<RELEASE>
Features
- Optimal combination reconciliation via projection and structural approaches
- Tools for both cross-sectional (
csrec) and temporal (terec) reconciliation - Different covariance matrix approximation
- Support for custom aggregation or constraints matrices
- Option to enforce non-negativity on reconciled forecasts
- Efficient solvers suitable for high-dimensional problems
Quick Examples
Examples of cross-sectional and temporal forecast reconciliation are available here
License
MIT License. See LICENSE for details.
Metadata
Release files for forecopy 0.1.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 | |
|---|---|---|---|
| forecopy-0.1.1.tar.gz | 16.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| forecopy-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.2 kB
Release files / forecopy-0.1.1.tar.gz
| Download URL | forecopy-0.1.1.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46053488aec26e2a6bc2da5ecfafe7ce8513492716af9feda61dce0fe396c43f
|
|
BLAKE2b-256 checksum How to use checksums |
00ab0b1a52cb9581201bf20378fe38be115edf3aebfb9dca1439391a958e5372
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2025.
Transparency logRelease files / forecopy-0.1.1-py3-none-any.whl
| Download URL | forecopy-0.1.1-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
755becabc1aab36a17141ce496fd1593036a571a0c293e332cb79b7b695dc34d
|
|
BLAKE2b-256 checksum How to use checksums |
7ce8a228168226659fb9591c0058ed39c714a2db373d9bbb936b7cd4d21e1fab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2025.
Transparency log