Python client example for the Sen REST component¶
This example demonstrate how to make requests to the REST component using Python.
Prerequisites¶
- venv
- python3
How to run¶
Create a sen configuration file (e.g. config.yaml) to load the REST component:
Now start sen with your new configuration:
Prepare the Python environment
Now run the client example:
This example works as a simple python client for the Sen REST component. It instantiates a SenClient object that starts a session, enable notifications and does some basic operations to exemplify how it can be used.