Skip to main content

modflowapi

CI GitHub contributors GitHub tag

PyPI License PyPI Status PyPI Format PyPI Version PyPI Versions

Anaconda License Anaconda Version Anaconda Updated

An extension to xmipy for the MODFLOW API.

Introduction

The modflowapi Python package can be used to access functionality in the eXtended Model Interface (XMI) wrapper (XmiWrapper) and additional functionality specific to the MODFLOW API. Currently it is a joint development of the USGS and Deltares.

Installation

modflowapi requires Python 3.11+, with:

numpy
pandas
xmipy

To install modflowapi with pip:

pip install modflowapi

Or with conda:

conda install -c conda-forge modflowapi

Documentation

Documentation is available on ReadTheDocs.

Examples using modflowapi and its extensions can be found in the Quickstart and the Extensions notebooks. An example of using the MODFLOW API to monitor heads during a simulation can be found in the Head Monitor Example Notebook.

For more info on MODFLOW 6 see the USGS overview.

Citation

Hughes, Joseph D., Russcher, M. J., Langevin, C. D., Morway, E. D. and McDonald, R. R., 2022, The MODFLOW Application Programming Interface for simulationcontrol and software interoperability: Environmental Modelling & Software, v. 148, p. 105257, doi:10.1016/j.envsoft.2021.105257.

Papers featuring the MODFLOW 6 API

White, J.T., Ewing, J.E., Ruskauff, G., and Rashid, H., 2023. A generic closed-loop contaminant treatment system package for MODFLOW 6. Groundwater v. 61, no. 1: 131–138. https://doi.org/10.1111/gwat.13239.

Larsen, J.D., Langevin, C.D., Hughes, J.D. and Niswonger, R.G., 2024. An Agricultural Package for MODFLOW 6 using the application programming interface. Groundwater v. 62, no. 1: 157-166. https://doi.org/10.1111/gwat.13367.

Hayek, M., White, J.T., Markovich, K.H., Hughes, J.D., Lavenue, M., 2025. MF6-ADJ: A non-intrusive adjoint sensitivity capability for MODFLOW 6. Groundwater v. 63, no. 6: 874-888. https://doi.org/10.1111/gwat.70025.

Perez-Illanes, R., Langevin, C.D., Muniruzzaman, M., Rolle, M., 2026. Incorporating electrostatic coupling effects into multispecies solute transport simulations with MODFLOW. Groundwater v. 64, no. 2: 210-222. https://doi.org/10.1111/gwat.70033.

Metadata

Release files for modflowapi 1.0.1

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

Source distribution (sdist)

Source distribution for modflowapi 1.0.1
File Size Uploaded
modflowapi-1.0.1.tar.gz 23.1 kB Details

Built distribution (wheel)

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

Total release size: 49.8 kB

Release files / modflowapi-1.0.1.tar.gz

Download URL modflowapi-1.0.1.tar.gz
Size 23.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1388d47f706115fee537a721e91700a3c9ad7b6e2a41b2f85f07cefe5f9d558e
BLAKE2b-256 checksum
How to use checksums
90c9a9ced9bd9fc5c931f7e5d10526c2b4b8f30d35e2c41db8322064a1c3d62b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 6, 2026.

Transparency log

Release files / modflowapi-1.0.1-py3-none-any.whl

Download URL modflowapi-1.0.1-py3-none-any.whl
Size 26.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c997cc001a4c67a5121367245a3ca4edf4588cd39f9a16f9c0e966f0a60286a
BLAKE2b-256 checksum
How to use checksums
46045e169de0fb35171c43d2862af3d91383475ec00e34bbfd4166ae1fcc5869
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.1

2 release files

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