- (OPTIONAL) create a virtual environment with
python -m venv venvand activate withsource venv/bin/activate - install the requirements with
pip install -r requirements.txt - you will also need to install vlc with
sudo apt install vlc
Copy the example_config.yaml file to config.yaml and edit it to give your graphai, elasticsearch and mysql credentials.
You may also need to copy the certificates for connecting to elasticsearch (by default in resources/certificates/).
You may also need to create the graphai-client JSON configuration file and give its location in the
graphai.client_config_file section of your config.yaml file. It should look like this:
{
"host": "https://graphai.epfl.ch",
"port": 443,
"user": "YOUR_GRAPHAI_USERNAME",
"password": "YOUR_GRAPHAI_PASSWORD"
}From the package root directory run:
uvicorn api.main.main:app --reload
Example queries are available in the resources/api_request_examples/ directory for testing the API.
Refer to the README.md file there for further information.