For documentation on the use of the Sedaro Python Client, see the documentation here. This documentation is for client development, maintenance, and testing.
See Sedaro Python Client for client usage instructions. The rest of this documentation is for client development, maintenance, and testing.
- For Sedaro devs testing in the local development environment: make sure
sedaro-app
container is running. - Create a
tests/config.py
file based on thetests/config_example.py
file:- For Sedaro devs testing in the live environment: update the
HOST
variable to'http://localhost:80'
. - For non-Sedaro devs testing in a dedicated Sedaro instance: update the
HOST
to the url of your Sedaro server.
- For Sedaro devs testing in the live environment: update the
- Ensure
pytest
is installed in the python environment ($ pip install pytest
). If you use thepython_version_manager
to create the virtual environment, it will be installed.
Run:
python3 tests
Install the python version you want to use if it isn't already installed:
brew install [email protected]
brew install [email protected]
...etc
To check curent python version:
python3 -V
-
Use the custom python version manager designed for use in this directory. You will be prompted on how to proceed.
python3 python_version_manager
-
Create and activate virtual environment (first
deactivate
current virtual environment and delete.venv
directory if already exists):- Switch out "3.9" for desired version
python3.9 -m venv ./.venv source .venv/bin/activate
-
Install sedaro python client:
pip install -e sedaro pip install pytest
Note: this is designed and set up for Sedaro dev's use.
python3 client_generator
Note: this is designed and set up for Sedaro dev's use.
python3 -m grpc_tools.protoc --proto_path=<PATH_OF_cosim.proto>--python_out=./sedaro/src/sedaro/grpc_client --grpc_python_out=./sedaro/src/sedaro/grpc_client cosim.proto