MARIO

Perform impact analysis using regional input-output tables and models.
https://github.com/it-is-me-mario/mario

Category: Industrial Ecology
Sub Category: Input Output Model

Keywords

industrial-ecology input-output-analysis mario-suite python scenario-analysis supply-use-tables

Last synced: about 10 hours ago
JSON representation

Repository metadata

Python framework for input-output and supply-use modelling, scenario analysis and environmental and socio-economic assessment.

README.rst

          .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black

.. image:: https://readthedocs.org/projects/mario-suite/badge/?version=latest
    :target: https://mario-suite.readthedocs.io/en/latest/index.html
    :alt: Documentation Status

.. image:: https://badge.fury.io/py/mariopy.svg
    :target: https://badge.fury.io/py/mariopy

.. image:: https://zenodo.org/badge/421900437.svg
   :target: https://doi.org/10.5281/zenodo.21135803

*******
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 on `Read the Docs `_.


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:

.. code-block:: bash

   conda create -n mario python=3.12
   conda activate mario

Install from PyPI:

.. code-block:: bash

   pip install mariopy

Parquet import and export support is included in the default installation.

Install from source:

.. code-block:: bash

   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:

.. code-block:: python

   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:

.. code-block:: python

   import mario

   sut = mario.load_test("SUT")
   iot = sut.to_iot(method="B")


Documentation Map
-----------------

The published documentation is organized into a few main sections:

* `Setup `_ for installation and first checks;
* `Concepts `_ for MARIO terminology and conventions;
* `User guide `_ for parsers, inspection, transformations, custom databases, and exports;
* `API reference `_ for method-level documentation;
* `Publications `_ for the software paper and related research.


Citation
--------

Citation guidance and the up-to-date list of publications using MARIO are maintained in the
`Research section of the documentation `_.


License
-------

MARIO is distributed under the
`GNU General Public License v3.0 `_.


Supporting institutions
-----------------------

MARIO grows across two complementary settings.

.. raw:: html

    
Politecnico di Milano Politecnico di Milano. Development stays closer to the academic side: research methods, modelling choices, scientific validation, and documentation-oriented workflows.
eNextGen eNextGen. As a spin-off of Politecnico di Milano, eNextGen brings MARIO into applied settings for companies and organisations, where the same analytical core supports real decarbonisation, sustainability, and decision-support cases.

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 3 days ago

Total Commits: 695
Total Committers: 6
Avg Commits per committer: 115.833
Development Distribution Score (DDS): 0.347

Commits in past year: 417
Committers in past year: 2
Avg Commits per committer in past year: 208.5
Development Distribution Score (DDS) in past year: 0.031

Name Email Commits
Lorenzo Rinaldi l****3@g****m 454
Mohammad Amin Tahavori 5****t 208
Camilla Citterio 1****t 13
Nicolò Golinucci n****i@g****m 11
LorenzoRinaldi l****1@g****m 8
Amedeo Felice Alberio a****a@f****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: 10 days ago

Total issues: 99
Total pull requests: 75
Average time to close issues: about 1 year
Average time to close pull requests: 17 days
Total issue authors: 7
Total pull request authors: 7
Average comments per issue: 0.35
Average comments per pull request: 0.12
Merged pull request: 66
Bot issues: 0
Bot pull requests: 0

Past year issues: 28
Past year pull requests: 14
Past year average time to close issues: 10 days
Past year average time to close pull requests: about 18 hours
Past year issue authors: 2
Past year pull request authors: 2
Past year average comments per issue: 0.04
Past year average comments per pull request: 0.07
Past year merged pull request: 13
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/it-is-me-mario/mario

Top Issue Authors

  • LorenzoRinaldi (53)
  • mohammadamint (22)
  • nigolred (20)
  • graebnerc (1)
  • adrienjacob (1)
  • maximikos (1)
  • CamiCit (1)

Top Pull Request Authors

  • mohammadamint (33)
  • LorenzoRinaldi (31)
  • CamiCit (4)
  • nigolred (4)
  • gitter-badger (1)
  • AAmedeo (1)
  • geo-mathijs (1)

Top Issue Labels

  • enhancement (43)
  • bug (21)
  • documentation (5)
  • dependencies (2)
  • help wanted (1)
  • parsers (1)
  • good first issue (1)
  • deprecate (1)

Top Pull Request Labels

  • enhancement (4)
  • deprecate (1)
  • dependencies (1)
  • bug (1)

Package metadata

pypi.org: mariopy

A python package for automating input-output (IO) calculations, models,visualization and scenario and supply-chain analysis

  • Homepage: https://github.com/it-is-me-mario/MARIO
  • Documentation: https://mariopy.readthedocs.io/
  • Licenses: GNU General Public License v3.0
  • Latest release: 1.3.6 (published 5 days ago)
  • Last Synced: 2026-11-24T21:53:28.387136Z (1 day ago)
  • Versions: 24
  • Dependent Packages: 1
  • Dependent Repositories: 1
  • Downloads: 799 Last month
  • Rankings:
    • Dependent packages count: 4.744%
    • Stargazers count: 11.855%
    • Forks count: 11.93%
    • Average: 14.644%
    • Dependent repos count: 21.642%
    • Downloads: 23.052%
  • Maintainers (2)

Dependencies

Pipfile pypi
  • twine * develop
Pipfile.lock pypi
  • bleach ==4.1.0 develop
  • certifi ==2021.10.8 develop
  • charset-normalizer ==2.0.7 develop
  • colorama ==0.4.4 develop
  • docutils ==0.18 develop
  • idna ==3.3 develop
  • importlib-metadata ==4.8.1 develop
  • keyring ==23.2.1 develop
  • packaging ==21.2 develop
  • pkginfo ==1.7.1 develop
  • pygments ==2.10.0 develop
  • pyparsing ==2.4.7 develop
  • pywin32-ctypes ==0.2.0 develop
  • readme-renderer ==30.0 develop
  • requests ==2.26.0 develop
  • requests-toolbelt ==0.9.1 develop
  • rfc3986 ==1.5.0 develop
  • six ==1.16.0 develop
  • tqdm ==4.62.3 develop
  • twine ==3.4.2 develop
  • urllib3 ==1.26.7 develop
  • webencodings ==0.5.1 develop
  • zipp ==3.6.0 develop
doc/docs-requirements.txt pypi
  • IPython >=7.22.0
  • ipykernel *
  • nbsphinx *
  • numpy >=1.21.2
  • openpyxl >=3.0.6
  • pandas >=1.3.3
  • plotly >=4.12.0
  • pymrio >=0.4.6
  • sphinx >=1.6.4
  • sphinx-autobuild *
  • sphinx_rtd_theme >=0.2.4
  • tabulate >=0.8.9
  • xlsxwriter <=1.3.7
.github/workflows/docs-pages.yml actions
  • actions/checkout v4 composite
  • actions/configure-pages v5 composite
  • actions/deploy-pages v4 composite
  • actions/setup-python v5 composite
  • actions/upload-pages-artifact v4 composite

Score: 12.836823009864409