Skip to main content

Extends the functionality of Flood Modeller to python users

Project description

FM Logo

PyPI Latest Release License: GPL v3 Unit Tests Lint Downloads Code style: black

Flood Modeller Python API

Try in GitHub Codespaces!

This python package is designed to be used in conjunction with your installation of Flood Modeller to provide users with a set of tools to extend the capabilities of Flood Modeller and build into automated workflows.

API Overview

Installation

You can install the floodmodeller_api package from PyPI with the following command:

pip install floodmodeller-api

Flood Modeller API is regularly tested for all versions of python 3.10 onwards. Although it may work for older versions of python, we recommend using at least v3.10 and ideally the latest stable release.

Once you have installed floodmodeller_api to your python environment, you can import the package with:

import floodmodeller_api  # imports the full package
from floodmodeller_api import DAT, ZZN, IEF, IED  # imports individual classes (recommended)

How to use

The best place to start is to go directly to the Flood Modeller Python API Documentation

The Flood Modeller Python API is designed for users already familiar with both Flood Modeller and Python. The API is built up using distinct python classes for each of the key Flood Modeller file formats as well as key themes. The purpose of the API is not to provide ready-to-use tools for specific tasks, as there is an extensive set of tools already provided within Flood Modeller, many of which can be called from both within and outside of the Flood Modeller software. Instead, this API provides the building blocks for users to build their own custom workflows and tools which can integrate seamlessly with Flood Modeller.

Show and Tell

In the spirit of open source, we encourage you to share any interesting scripts or tools you have developed using the Flood Modeller Python API. To do this, please get involved in the discussions section here. This is also a great place to explore different ways that people have used the API.


Youtube mini tutorials

These videos give you a quick overview of some of the basics of using the Flood Modeller API

Running a simulation

Using the codespace

Extract ReFH2 csv data into IEDs and QTBDYs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

floodmodeller_api-0.5.7.tar.gz (14.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

floodmodeller_api-0.5.7-py3-none-any.whl (14.6 MB view details)

Uploaded Python 3

File details

Details for the file floodmodeller_api-0.5.7.tar.gz.

File metadata

  • Download URL: floodmodeller_api-0.5.7.tar.gz
  • Upload date:
  • Size: 14.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for floodmodeller_api-0.5.7.tar.gz
Algorithm Hash digest
SHA256 ab006be28e6d957dc83a48ec268c83ec894893d967c11399e86b36c6939f3033
MD5 13752541ad85c23a3b2c5f15e06b8d83
BLAKE2b-256 f8648490a4e067d4c92da6cc458864f7cf017bb15449b220b5c7d58d825cc552

See more details on using hashes here.

File details

Details for the file floodmodeller_api-0.5.7-py3-none-any.whl.

File metadata

File hashes

Hashes for floodmodeller_api-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 658d587af3489e7bf18313a24f86e493df36af41089a68bbd5be05af16139376
MD5 9b0d0b0d5a0923ca4fb89f7586ceee6f
BLAKE2b-256 115cc51db1eba6992c4530e745045ea097f174e5831d5900d8037ee441fbeb24

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page