Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/csdms/bmi-python
Basic Model Interface for Python
https://github.com/csdms/bmi-python
bmi csdms python
Last synced: 3 days ago
JSON representation
Basic Model Interface for Python
- Host: GitHub
- URL: https://github.com/csdms/bmi-python
- Owner: csdms
- License: mit
- Created: 2019-04-03T12:19:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-23T22:46:26.000Z (12 days ago)
- Last Synced: 2024-12-23T23:27:50.431Z (12 days ago)
- Topics: bmi, csdms, python
- Language: Python
- Homepage: https://bmi.csdms.io
- Size: 147 KB
- Stars: 11
- Watchers: 9
- Forks: 12
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BMI for Python
Python bindings for the CSDMS [Basic Model Interface](https://bmi.readthedocs.io).
![[Python][pypi-link]][python-badge]
![[DOI][doi-link]][doi-badge]
![[Build Status][build-link]][build-badge]
![[PyPI][pypi-link]][pypi-badge]
![[Build Status][anaconda-link]][anaconda-badge][anaconda-badge]: https://anaconda.org/conda-forge/bmipy/badges/version.svg
[anaconda-link]: https://anaconda.org/conda-forge/bmipy
[build-badge]: https://github.com/csdms/bmi-python/actions/workflows/test.yml/badge.svg
[build-link]: https://github.com/csdms/bmi-python/actions/workflows/test.yml
[doi-badge]: https://zenodo.org/badge/179283861.svg
[doi-link]: https://zenodo.org/badge/latestdoi/179283861
[pypi-badge]: https://badge.fury.io/py/bmipy.svg
[pypi-link]: https://pypi.org/project/bmipy/
[python-badge]: https://img.shields.io/pypi/pyversions/bmipy.svg## Install
Install *bmipy* with *pip*,
```bash
pip install bmipy
```If you're using Anaconda, you can also install *bmipy*
with conda from the *conda-forge* channel,```bash
conda install bmipy -c conda-forge
```To build and install *bmipy* from source,
```bash
pip install git+https://github.com/csdms/bmi-python.git
```## Usage
```python
from bmipy import Bmiclass MyBmi(Bmi):
def initialize(self, config_file):
# Your implementation goes here
```A complete sample implementation is given in the
repository.