Skip to main content

MATER

PyPI version Python Coverage Documentation License

MATER simulates how the stocks of a society change year after year: vehicles, buildings, factories, materials, energy, natural resources. You describe a system in a spreadsheet, one sheet per variable, with the level that each stock should reach. MATER computes how much each process must run to bring each stock towards that level, and writes every stock, flow and activity, year by year.

MATER (Multi-regional Assessment of Technologies, Energy and Resources) is an open-source framework, written in Python, for dynamic material flow analysis (dMFA), dynamic input-output analysis and biophysical assessments of technologies, energy and resources. Its central principle: a stock gap, the difference between a stock and its reference (the level it should reach), activates processes, and these processes change the stocks through the flow balance.

Install

New to Python? The installation guide takes you from nothing to a working MATER on Windows, macOS or Linux, with uv, which installs Python for you.

With uv, in a project: uv add mater. With pip, in a virtual environment of Python 3.11 or later: pip install mater.

Run a model

Download the example workbook mater_example.ods, a car value chain. Save these lines as simulate.py beside it:

import mater

mater.run_from_excel(
    "mater_example.ods",
    simulation_name="first_run",
    simulation_start_time=2021,
    simulation_end_time=2100,
)

Then run the script from a terminal opened in that folder:

uv run python simulate.py

The results are written to outputs/first_run. The tutorial Run your first simulation opens them in a spreadsheet and explains them.

Documentation

The documentation has five parts: Get started (installation and tutorials), the User guide (one page per task), The model (concepts and equations), the Reference (variables, formats, Python API) and Development. The data formats shared with the other tools of MATER are documented by the MATER ecosystem.

Versions

MATER is in the 0.x series: a new minor version may change how a model is written or what it computes, and its changes are listed in the CHANGELOG and the upgrade guides of the documentation. Pin the version you use for a study. Only the latest minor version receives fixes. MATER 0.17 runs on a new engine; models of 0.16 need the steps of the guide "Upgrade from 0.16 to 0.17".

Cite MATER

If you use MATER in academic work, cite the software version you used (HAL record hal-05614380) and the thesis that introduced the framework:

François Verzier. Modélisation du métabolisme de la société et de ses trajectoires de transition biophysique. 2025. DOI: 10.70675/89172c3czbb2bz45abz8b5fza3bb49f30f92

Machine-readable software metadata are in codemeta.json.

License

MATER is distributed under the GNU Lesser General Public License v3.0 or later (LGPL-3.0-or-later).

Contributing

Contributions are welcome: see CONTRIBUTING.md. To work on MATER itself:

git clone https://gricad-gitlab.univ-grenoble-alpes.fr/isterre-dynamic-modeling/mater-project/mater.git
cd mater
uv sync --all-groups
uv tool install just-bin
just test
just docs-build

Metadata

Release files for mater 0.17.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 mater 0.17.0
File Size Uploaded Provenance Actions
mater-0.17.0.tar.gz 2.0 MB Without provenance Details for mater-0.17.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mater 0.17.0
File Interpreter ABI Platform Actions
mater-0.17.0-py3-none-any.whl Python 3 none any Details for mater-0.17.0-py3-none-any.whl

Total release size: 2.2 MB

Release files / mater-0.17.0.tar.gz

Download URL mater-0.17.0.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
c5f056685c1bafc529e564af4fa3321332912703e8d9a809fbffa036cdd79200
BLAKE2b-256 checksum
How to use checksums
fa33c09038beafe2186b5233c7c705b982d0457865f27cdb481535d08f150bec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mater-0.17.0-py3-none-any.whl

Download URL mater-0.17.0-py3-none-any.whl
Size 131.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4db1494c678ac236701973199a8d2c3f6888808962898d124d7a870b4441adb6
BLAKE2b-256 checksum
How to use checksums
158c1a31fa8768dd2f4d369580c3c62246bfbf414f1cb1f1e25cb6d4854f5d22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for mater 0.17.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.

Release history Release notifications | RSS feed

This release

0.17.0 This release

2 release files No provenance

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