porous_media: python utilities for SBML
porous_media is a collection of python utilities for working with porous media simulation results and meshes with source code available from https://github.com/matthiaskoenig/porous_media.
Features include among others
- Visualization of VTK results
- Image processing
- Mesh manipulation
- FEBio helpers
If you have any questions or issues please open an issue.
How to cite
License
- Source Code: MIT
- Documentation: CC BY-SA 4.0
Installation
Dependencies
porous_media depends on ffmpeg for creation of the videos
which can be installed via on linux via
sudo apt -y install ffmpeg
Make sure you can execute the following successfully from the command line:
ffmpeg
pip
porous_media is available from pypi and can be installed via
pip install porous_media
The develop version can be installed via
pip install git+https://github.com/matthiaskoenig/porous_media.git@develop
Development
Setup develop environment
uv sync --group dev
Setup pre-commit
pre-commit install
pre-commit run
Testing
Run all tests in parallel
tox run-parallel
Run single target
tox r -e py314
Funding
Matthias König is supported and by the German Research Foundation (DFG) within the Research Unit Programme FOR 5151 "QuaLiPerF (Quantifying Liver Perfusion-Function Relationship in Complex Resection - A Systems Medicine Approach)" by grant number 436883643 and by grant number 465194077 (Priority Programme SPP 2311, Subproject SimLivA).
© 2023-2026 Matthias König
Release files for porous-media 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| porous_media-0.3.0.tar.gz | 11.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| porous_media-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.6 MB
Release files / porous_media-0.3.0.tar.gz
| Download URL | porous_media-0.3.0.tar.gz |
|---|---|
| Size | 11.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
268c21cb0fdb8ff77afef515ab2bc537170b09f5078a122b58f0ed1e6253cbe2
|
|
BLAKE2b-256 checksum How to use checksums |
850561a66c3543e02350d904b6d441dfa4c288bbfe6a62d42ebde30b1cdc15e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.
Transparency logRelease files / porous_media-0.3.0-py3-none-any.whl
| Download URL | porous_media-0.3.0-py3-none-any.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a83d153145c623c1f722d20a87c83e104a62b22940aa237bd4677f42339e2904
|
|
BLAKE2b-256 checksum How to use checksums |
69b6b6ae82f77c67136a963f764c24ecdc5c00b777fe66e08a171c04eb0db6bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.
Transparency log