An open API service indexing awesome lists of open source software.

https://github.com/bringauto/fleet-init

BringAuto Fleet Management init script
https://github.com/bringauto/fleet-init

Last synced: 4 months ago
JSON representation

BringAuto Fleet Management init script

Awesome Lists containing this project

README

          

# Init script for BringAuto Fleet Management

Script for initialization of the [BringAuto Fleet Management] database - Script will delete all of the database content and fill up data from map json files

## Prerequisites:

- The [BringAuto Fleet Management] must be deployed and work

## Arguments

- -c or --config=`` - config file (default: config/config.ini)
- -m or --maps=`` - directory with input files (default: maps/)
- -d or --delete - delete every entity in the database beforehand

## Config file

Example:

[DEFAULT]
pip

```ini
ApiKey =
Url = localhost
```

### Sections

All parameters in `DEFAULT` section are required to let the script work.

## Build and run

Install requirements:

```bash
pip3 install -r requirements.txt
```

Example run:

```bash
python3 main.py -c config/config.ini -m maps -d
```

### Testing

To run the script in test mode (no requests to the server), use the `-t` or `--test` flag. Note that in test mode, the script
always simulates accessible server, with no data.

```bash
python3 main.py -c config/config.ini -m maps -d -t
```

[BringAuto Fleet Management]: https://github.com/bringauto/fleet-management-http-api