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
- Host: GitHub
- URL: https://github.com/bringauto/fleet-init
- Owner: bringauto
- License: mit
- Created: 2022-01-19T11:08:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-11-21T10:45:19.000Z (7 months ago)
- Last Synced: 2025-11-21T12:07:11.807Z (7 months ago)
- Language: Python
- Size: 103 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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