MIKE+Py MIKE+Py
  • User Guide
  • API Reference

Skills

A skill is a package of structured files that teaches an AI coding agent how to work with a specific tool or framework. The skill below was generated by Great Docs from this project’s documentation. Install it in your agent and it will be able to run commands, edit configuration, write content, and troubleshoot problems without step-by-step guidance from you.

Any agent — install with npx:

npx skills add https://dhi.github.io/mikepluspy/

Codex / OpenCode

Tell the agent:
Fetch the skill file at https://dhi.github.io/mikepluspy/skill.md and follow the instructions.

Manual — download the skill file:

curl -O https://dhi.github.io/mikepluspy/skill.md

Or browse the SKILL.md file.

SKILL.md

---
name: mikeplus
description: >
  A python script package to manipulate MIKE+ database, run simulation by using MIKE+ data, run tools based on MIKE+ data. Use when writing Python code that uses the mikeplus package.
license: Apache-2.0
compatibility: Requires Python >=3.12.
---

# MIKE+Py

A python script package to manipulate MIKE+ database, run simulation by using MIKE+ data, run tools based on MIKE+ data

## Installation

```bash
pip install mikeplus
```

## API overview

### Main

- `open`
- `create`
- `to_sql`

### Database

- `Database`
- `DatabaseError`
- `tables.TableCollection`

### Queries

Returned by the `select`, `insert`, `update` and `delete` methods of a table.

- `queries.BaseQuery`
- `queries.SelectQuery`
- `queries.InsertQuery`
- `queries.UpdateQuery`
- `queries.DeleteQuery`

### Scenarios

Returned by `Database.scenarios` and `Database.alternative_groups`.

- `scenarios.ScenarioCollection`
- `scenarios.Scenario`
- `scenarios.AlternativeGroupCollection`
- `scenarios.AlternativeGroup`
- `scenarios.Alternative`

### Table base classes

Shared by every table in `Database.tables`.

- `tables.BaseTable`
- `tables.BaseGeometryTable`
- `tables.BaseNodeTable`
- `tables.BaseColumns`
- `tables.BaseTableCollection`

### Tools

- `tools.ImportTool`
- `tools.InterpolationTool`
- `tools.TopoRepairTool`
- `tools.ConnectionRepairTool`
- `tools.CreateValvesFromPointsTool`
- `tools.DemandConnectionTool`
- `tools.DemandAggregationTool`
- `tools.CathSlopeLengthProcess`

### Utilities

- `utilities.get_nearest_river_at`
- `utilities.get_nearest_river_chainage_at`

## Resources

- [Full documentation](https://dhi.github.io/mikepluspy/)
- [llms.txt](llms.txt) — Indexed API reference for LLMs
- [llms-full.txt](llms-full.txt) — Comprehensive documentation for LLMs

Developed by Ryan Walter Murray and Wen Wu. Supported by DHI Group.
Site created with Great Docs.