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
- The BringAuto Fleet Management must be deployed and work
- -c or --config=
<file>- config file (default: config/config.ini) - -m or --maps=
<directory>- directory with input files (default: maps/) - -d or --delete - delete every entity in the database beforehand
Example:
[DEFAULT] pip
ApiKey = <ApiKey>
Url = localhostAll parameters in DEFAULT section are required to let the script work.
Install requirements:
pip3 install -r requirements.txtExample run:
python3 main.py -c config/config.ini -m maps -dTo 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.
python3 main.py -c config/config.ini -m maps -d -t