An etp client python module to make an etp websocket connexion
Check "example" folder for a example project that uses this library.
To test the example : Create an .env file in the example folder with the following content :
INI_FILE_PATH=../configs/sample.yml
Then create the corresponding yaml file :
# sample.yml
PORT: 443
URL: wss://....
USERNAME: username
PASSWORD: pwd
ADDITIONAL_HEADERS:
- data-partition-id: osdu
TOKEN: ACCESS_TOKEN
TOKEN_URL: https://.../token
TOKEN_GRANT_TYPE: ...
TOKEN_SCOPE: ...
TOKEN_REFRESH_TOKEN: ...
Finally run the client script :
poetry install
poetry run client
Pip:
pip install py-etp-client
Poetry
poetry add py-etp-client
Check example for more information