An open-source implementation of Understand API in Python.
This script allows you to set up and save configuration options using command-line arguments.
Open a terminal or command prompt.
Run the script with the following command:
-r
, --repo_address
: Address of the repository (Optional)-udb
, --db_address
: Address of the SQLite database (Optional)-e
, --engine_address
: Use the engine (C++ or Python) (Optional)-l
, --log_address
: Address of the log file (Optional)Provide the desired values for the options you want to set. If any option is not provided, default values will be used.
Once the script finishes, a config.ini
file will be generated with the provided or default values.
To set up the configuration options with specific addresses, run the following command:
python openunderstand.py [-r REPO_ADDRESS] [-dba DB_ADDRESS] [-dbn DB_NAME] [-e ENGINE_CORE] [-l LOG_ADDRESS]
This will save the provided addresses in the config.ini
file.
If you don't provide any options, default values will be used for all addresses.
python openunderstand.py
This will generate a config.ini
file with default values.
Feel free to modify the default values directly in the config.ini
file.
If an argument is not provided, the following default values will be used:
repo_address: Current working directory with "project" appended.
db_address: Current working directory.
db_name: "default.oudb".
engine_core: "Python".
log_address: Current working directory with "app.log" appended.
1.Set the repository address to "/path/to/repo":
python openunderstand.py -r /path/to/repo
2.Set the database address to "/path/to/db", the database name to "database.oudb", and the engine core to "C++":
python cli.py -dba /path/to/db -dbn database.oudb -e C++
3.Set the log address to "/path/to/log/file.log":
python cli.py -l /path/to/log/file.log
python3 setup.py sdist bdist_wheel