{"id":13724392,"url":"https://github.com/IndEcol/pymrio","last_synced_at":"2025-05-07T18:31:42.849Z","repository":{"id":18492489,"uuid":"21688312","full_name":"IndEcol/pymrio","owner":"IndEcol","description":"Multi-Regional Input-Output Analysis in Python.","archived":false,"fork":false,"pushed_at":"2025-04-16T02:07:45.000Z","size":8987,"stargazers_count":178,"open_issues_count":63,"forks_count":81,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-27T13:03:11.046Z","etag":null,"topics":["calculations","input-output-analysis","mrio","python"],"latest_commit_sha":null,"homepage":"http://pymrio.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IndEcol.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-07-10T09:20:44.000Z","updated_at":"2025-04-23T23:15:51.000Z","dependencies_parsed_at":"2023-01-13T19:51:28.184Z","dependency_job_id":"ae416c8a-3ff4-42aa-ae68-1336b1f306bb","html_url":"https://github.com/IndEcol/pymrio","commit_stats":{"total_commits":371,"total_committers":9,"mean_commits":41.22222222222222,"dds":"0.040431266846361225","last_synced_commit":"7bcaebf4aef2a61594e7ea1d21ef8b54f1802e46"},"previous_names":["konstantinstadler/pymrio"],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IndEcol%2Fpymrio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IndEcol%2Fpymrio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IndEcol%2Fpymrio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IndEcol%2Fpymrio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IndEcol","download_url":"https://codeload.github.com/IndEcol/pymrio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251319838,"owners_count":21570461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calculations","input-output-analysis","mrio","python"],"created_at":"2024-08-03T01:01:56.345Z","updated_at":"2025-05-07T18:31:42.773Z","avatar_url":"https://github.com/IndEcol.png","language":"Python","funding_links":[],"categories":["Industrial Ecology"],"sub_categories":["Input Output Model"],"readme":"############\nPymrio\n############\n\nPymrio: Multi-Regional Input-Output Analysis in Python.\n\n.. image:: https://img.shields.io/pypi/v/pymrio.svg\n    :target: https://pypi.python.org/pypi/pymrio/\n.. image:: https://anaconda.org/conda-forge/pymrio/badges/version.svg   \n    :target: https://anaconda.org/conda-forge/pymrio\n.. image:: https://github.com/IndEcol/pymrio/workflows/build/badge.svg\n    :target: https://github.com/IndEcol/pymrio/actions\n.. image:: https://coveralls.io/repos/github/IndEcol/pymrio/badge.svg?branch=master\n    :target: https://coveralls.io/github/IndEcol/pymrio\n.. image:: https://readthedocs.org/projects/pymrio/badge/?version=latest\n    :target: http://pymrio.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n.. image:: https://img.shields.io/badge/License-GPL%20v3-blue.svg\n    :target: https://www.gnu.org/licenses/gpl-3.0\n.. image:: https://zenodo.org/badge/21688312.svg\n    :target: https://zenodo.org/badge/latestdoi/21688312\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n\nWhat is it\n==========\n\nPymrio is an open source tool for analysing global environmentally extended multi-regional input-output tables (EE MRIOs). \nPymrio aims to provide a high-level abstraction layer for global EE MRIO databases in order to simplify common EE MRIO data tasks. \nPymrio includes automatic download functions and parsers for available EE MRIO databases like EXIOBASE_, WIOD_ and EORA26_. \nIt automatically checks parsed EE MRIOs for missing data necessary for calculating standard EE MRIO accounts (such as footprint, territorial, impacts embodied in trade) and calculates all missing tables. \nVarious data report and visualization methods help to explore the dataset by comparing the different accounts across countries. \n\nFurther functions include:\n\n- analysis methods to identify where certain impacts occur\n- modifying region/sector classification\n- restructuring extensions\n- export to various formats\n- visualization routines and \n- automated report generation\n  \n\nWhere to get it\n===============\n\nThe full source code is available on Github at: https://github.com/IndEcol/pymrio\n\nPymrio is registered at PyPI and on the Anaconda Cloud. Install it by:\n\n.. code:: bash\n\n    pip install pymrio --upgrade\n    \nor when using conda install it by\n\n.. code:: bash\n\n    conda install -c conda-forge pymrio\n\nor update to the latest version by\n\n.. code:: bash\n\n    conda update -c conda-forge pymrio\n\nThe source-code of Pymrio available at the GitHub repo: https://github.com/IndEcol/pymrio  \n\nThe master branch in that repo is supposed to be ready for use and might be \nahead of the official releases. To install directly from the master branch use:\n\n.. code:: bash\n\n    pip install git+https://github.com/IndEcol/pymrio@master\n\n\n\nQuickstart    \n==========\n\nA small test mrio is included in the package. \n\nTo use it call\n\n.. code:: python\n\n    import pymrio\n    test_mrio = pymrio.load_test()\n\nThe test mrio consists of six regions and eight sectors:  \n\n.. code:: python\n\n\n    print(test_mrio.get_sectors())\n    print(test_mrio.get_regions())\n\nThe test mrio includes tables flow tables and some satellite accounts. \nTo show these:\n\n.. code:: python\n\n    test_mrio.Z\n    test_mrio.emissions.F\n    \nHowever, some tables necessary for calculating footprints (like test_mrio.A or test_mrio.emissions.S) are missing. pymrio automatically identifies which tables are missing and calculates them: \n\n.. code:: python\n\n    test_mrio.calc_all()\n\nNow, all accounts are calculated, including footprints and emissions embodied in trade:\n\n.. code:: python\n\n    test_mrio.A\n    test_mrio.emissions.D_cba\n    test_mrio.emissions.D_exp\n\nTo visualize the accounts:\n\n\n.. code:: python\n\n    import matplotlib as plt\n    test_mrio.emissions.plot_account('emission_type1')\n    plt.show()\n\nEverything can be saved with\n\n.. code:: python\n    \n    test_mrio.save_all('some/folder')\n\nSee the documentation_ , tutorials_ and  `Stadler 2021`_ for further examples.\n\nTutorials\n=========\n\nThe documentation_ includes information about how to use pymrio for automatic downloading_ and parsing_ of the EE MRIOs EXIOBASE_, WIOD_, OECD_ and EORA26_ as well as tutorials_ for the handling, aggregating and analysis of these databases. \n\nCitation\n========\n\nIf you use Pymrio in your research, citing the article describing the package \n(`Stadler 2021`_) is very much appreciated. \n\n.. _`Stadler 2021`: https://openresearchsoftware.metajnl.com/articles/10.5334/jors.251/\n\nFor the full bibtex key see CITATION_ file.\n\n.. _CITATION: CITATION\n\nContributing\n=============\n\nWant to contribute? Great!\nPlease check `CONTRIBUTING.rst`_ if you want to help to improve Pymrio.\n  \n.. _CONTRIBUTING.rst: https://github.com/IndEcol/pymrio/blob/master/CONTRIBUTING.rst\n   \nCommunication, issues, bugs and enhancements\n============================================\n\nPlease use the issue tracker for documenting bugs, proposing enhancements and all other communication related to pymrio.\n\nYou can follow me on twitter_ to get the latest news about all my open-source and research projects (and occasionally some random retweets).\n\nResearch notice\n~~~~~~~~~~~~~~~\n\nPlease note that this repository is participating in a study into\nsustainability of open source projects. Data will be gathered about this\nrepository for approximately the next 12 months, starting from June\n2021.\n\nData collected will include number of contributors, number of PRs, time\ntaken to close/merge these PRs, and issues closed.\n\nFor more information, please visit `the informational\npage \u003chttps://sustainable-open-science-and-software.github.io/\u003e`__ or\ndownload the `participant information\nsheet \u003chttps://sustainable-open-science-and-software.github.io/assets/PIS_sustainable_software.pdf\u003e`__.\n\n\n.. _twitter: https://twitter.com/kst_stadler\n\n.. _downloading: http://pymrio.readthedocs.io/en/latest/notebooks/autodownload.html\n.. _parsing: http://pymrio.readthedocs.io/en/latest/handling.html\n.. _documentation: http://pymrio.readthedocs.io/en/latest/\n.. _tutorials: http://pymrio.readthedocs.io/en/latest/handling.html\n\n.. _EXIOBASE: http://www.exiobase.eu/\n.. _WIOD: http://www.wiod.org/home\n.. _OECD: https://www.oecd.org/sti/ind/inter-country-input-output-tables.htm\n.. _EORA26: http://www.worldmrio.com/simplified/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIndEcol%2Fpymrio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FIndEcol%2Fpymrio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FIndEcol%2Fpymrio/lists"}