MARIO
MARIO stands for Multifunctional Analysis of Regions through Input-Output. It is a Python package for working with Input-Output Tables (IOT) and Supply and Use Tables (SUT). Once parsed, a table becomes a MARIO database that can be inspected, computed, transformed, aggregated, shocked, and exported.
Documentation is available at marioproject.com.
What MARIO Supports
MARIO is designed around a practical IO workflow:
parse a database from supported sources or load a packaged test table;
inspect sets, scenarios, and available matrices;
compute derived matrices and indicators on demand;
transform, aggregate, or shock the database;
export the results for roundtrip or downstream analysis.
The current documentation covers both standard parsers and custom database ingestion. Supported workflows include:
single-region and multi-region systems;
monetary and hybrid tables where the parser supports them;
standard sources such as EXIOBASE, EORA, EUROSTAT, FIGARO, WIOD, OECD, and more;
custom databases from Excel, text, CSV, and pandas-based inputs;
aggregation, SUT-to-IOT conversion, scenario analysis, and exports.
Installation
The package name on PyPI is mariopy, while the import name is mario.
MARIO requires Python 3.11, 3.12 or 3.13 (>=3.11,<3.14). Python 3.14 and later are not supported because the pinned NumPy version (numpy==2.1.1) supports Python only up to 3.13.
Create a clean environment with an explicit supported Python version:
conda create -n mario python=3.12
conda activate mario
Install from PyPI:
pip install mariopy
Parquet import and export support is included in the default installation.
For full BONSAI, GLORIA and EMERGING calculations, the optional UMFPACK sparse solver is recommended:
conda install -c conda-forge scikit-umfpack
Alternatively, install SuiteSparse with your system package manager first, then run python -m pip install "mariopy[umfpack]". The all extra also includes this wrapper. These parsers select solve/direct defaults and use SciPy when UMFPACK is unavailable; see each database’s parsing walkthrough.
Install from source:
git clone https://github.com/it-is-me-mario/MARIO.git
cd MARIO
pip install -e .
Quickstart
A minimal test database is bundled with MARIO:
import mario
db = mario.load_test("IOT")
print(db)
print(db.get_index("Region"))
db.calc_all()
db.to_excel(path="output_folder")
For SUT workflows:
import mario
sut = mario.load_test("SUT")
iot = sut.to_iot(method="B")
Documentation Map
The published documentation is organized into three sections:
Get started for installation, table formats with their nomenclature, and scenarios;
Docs for data sources, inspection, analysis, transformations, configuration, examples and the API reference;
Resources for the software paper and related research.
Citation
Citation guidance and the up-to-date list of publications using MARIO are maintained in the Resources section of the documentation.
Contributing
Contributions are welcome. To report a bug or suggest a feature, open an issue on GitHub. To contribute code or documentation, open a pull request against main; for larger changes, open an issue first or contact the maintainers so we can agree on the approach.
For documentation and changes to public behaviour, start with the documentation maintenance KB. It links the authoring rules, affected-page map and verification checklist.
License
MARIO is distributed under the GNU General Public License v3.0.
Supporting institutions
MARIO grows across two complementary settings.
Metadata
Release files for mariopy 1.3.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mariopy-1.3.6.tar.gz | 8.6 MB | Without provenance | Details for mariopy-1.3.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mariopy-1.3.6-py3-none-any.whl | Python 3 | none | any | Details for mariopy-1.3.6-py3-none-any.whl |
Total release size: 17.4 MB
Release files / mariopy-1.3.6.tar.gz
| Download URL | mariopy-1.3.6.tar.gz |
|---|---|
| Size | 8.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7faaaa2630aab936f0e723a27f296b6cabd3961bd8b6df5914b1e15e0bf3dd19
|
|
BLAKE2b-256 checksum How to use checksums |
00b52b611f057dfc846ad1d81100b142e32b7fc87050311d152041d6853ff45a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Release files / mariopy-1.3.6-py3-none-any.whl
| Download URL | mariopy-1.3.6-py3-none-any.whl |
|---|---|
| Size | 8.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86c20aaef2462f1db744fd3c9d4e292c47c71e00f0c0416c40777f16a52f93d5
|
|
BLAKE2b-256 checksum How to use checksums |
c6211731b5e3c1403b6d2184af7f00fec59febdc753576bbb2a3b029af3f1092
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Security for mariopy 1.3.6
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.