## tools.ImportTool


The Import Tool from MIKE+.


Usage

``` python
tools.ImportTool(
    configFile,
    database,
)
```


## Parameters


`configFile`  

`database`  


## Examples

``` python
>>> from mikeplus import Database
>>> from mikeplus.tools import ImportTool
>>> db = Database("path/to/model.sqlite")
>>> import_tool = ImportTool("path/to/config.xml", db)
>>> import_tool.run()
>>> db.close()
```


## Methods

| Name | Description |
|----|----|
| [__init__()](#__init__) | Initialize the ImportTool with the given configuration file and Database. |
| [run()](#run) | Run the import tool. |

------------------------------------------------------------------------


#### \_\_init\_\_()


Initialize the ImportTool with the given configuration file and Database.


Usage

``` python
__init__(configFile, database)
```


##### Parameters


`configFile: str`  
A xml configuration file. This file can be generated by MIKE+ application.

`database: Database`  
The MIKE+ model database to import into.


------------------------------------------------------------------------


#### run()


Run the import tool.


Usage

``` python
run()
```
