Skip to main content

MRIO Toolbox

PyPI License Documentation DOI

Open-source Python package for handling Multi-Regional Input-Output (MRIO) tables with high flexibility.

Overview

The mrio_toolbox is a Python library designed for manipulating Multi-Regional Input-Output tables. It provides tools for loading, processing, analyzing, and exporting MRIO data from various sources including EXIOBASE, WIOD, EORA, and custom datasets.

This package supports:

  • Extraction and conversion routines for widely used MRIOs (EXIOBASE, WIOD, EORA, Gloria, GTAP, Emerging, Figaro)
  • Fast and lightweight data storage
  • Numpy-style indexing and selection
  • Standardized manipulation routines for reproducible research: aggregation, cleaning pipelines, mathematical operations, mapping algorithms

In comparison to higher-level MRIO-handling packages such as pyMRIO and MARIO, mrio_toolbox focuses on providing low-level routines for advanced MRIO users.

Installation

Install the latest stable version using pip:

pip install mrio_toolbox

Or install from source:

git clone https://codeberg.org/tbeaufils/mrio_toolbox.git
cd mrio_toolbox
pip install -e .

Documentation

The mrio_toolbox package builds on two major concepts: MRIO, and Parts.

MRIO are high-level objects that can inherit an arbitrary number of Part instances.

Part instances contain the actual data. Each Part represent a different quadrant of the MRIO table. As a convention, we use t for the inter-industry matrix, a for the matrix of technical coefficients, y for the final demand and va for the value added. A Part can have any shape and more than two dimensions. Parts support numpy-like indexing, on index and labels. They can be created in insolation or as part of an MRIO object. A new Part can be created by manipulating another Part.

Check the example section of the documentation for hands-on examples.

The full documentation is available at https://tbeaufils.codeberg.page/mrio_toolbox

Contributing

The package is under development on the side of my main research activity. I appreciate contributions, in particular for extending the test coverage, improving the documentation and implementing new features. Please see the CONTRIBUTING.md for guidelines on how to contribute to this project.

Citing

If you use this package in your research, you can cite it as:

Beaufils, T., & Wirth, F. (2023). mrio_toolbox: Python package for Multi-Regional Input-Output analysis. Zenodo. https://doi.org/10.5281/zenodo.17573558

License

Since version 1.3.0, this project is licensed a permissive MIT license - see the LICENSE file for details.

Contact

For questions, bug reports, or feature requests, you can use the Issue page of the repository.

Metadata

Release files for mrio-toolbox 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mrio-toolbox 1.3.0
File Size Uploaded Provenance Actions
mrio_toolbox-1.3.0.tar.gz 102.1 kB Without provenance Details for mrio_toolbox-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mrio-toolbox 1.3.0
File Interpreter ABI Platform Actions
mrio_toolbox-1.3.0-py3-none-any.whl Python 3 none any Details for mrio_toolbox-1.3.0-py3-none-any.whl

Total release size: 224.1 kB

Release files / mrio_toolbox-1.3.0.tar.gz

Download URL mrio_toolbox-1.3.0.tar.gz
Size 102.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0adaf48bf8913dd04ae55320ad5ae25bc1658aea59948ebd7f95d7ba720ed463
BLAKE2b-256 checksum
How to use checksums
b1f5fd8151430522929142deae8bb59126b650fd12fc3d52c093783096d73353
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / mrio_toolbox-1.3.0-py3-none-any.whl

Download URL mrio_toolbox-1.3.0-py3-none-any.whl
Size 121.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef47c281ae6b6a95a69eb046a2f03e9b1136bb0d67de2fa1b9314cb3c18d7b0b
BLAKE2b-256 checksum
How to use checksums
001ebf35ef3b429525834ef7e467a27a543a0f20001050dc962f3b48a3f948ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for mrio-toolbox 1.3.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page