SDK for interacting with the Comotion APIs
Project description
comotion-sdk
comotion-sdk is the python SDK for interacting with the Comotion APIs. Initial support is limited to Dash, but may expand in future.
Documentation
Documentation for this module can be found here.
Contributing
In order to contribute to this project, fork this repo and submit a pull request to this project
In order to set up a local environment, pull this repo and install.
pipenv is used to manage dependencies on this project. in order to use it, ensure that pipenv is installed.
The deployment depends on the pipfile, so ensure that is complete.
pip install --upgrade pip
pip install pipenv
And then enter the virtual environment for this project that will automatically ensure all dependencies are available
pipenv install -e .
pipenv shell
Adding modules
Ensure dependencies are also added to setup.py in the install_requires section. Then run
pipenv install -e .
Ensure you understand pipenv when [installing new libraries] (https://pipenv.pypa.io/en/latest/install/#installing-packages-for-your-project).
running tests
To run tests
pipenv install --deploy --dev
pipenv run test -v
Building docs
Run the following from the docs directly. Ensure to watch out for warnings.
pipenv install --dev pipenv shell make html
Rerunning code generator
We use OpenApi generator to generate the python.
The requirements for this are a swagger file that can be gotten from WHERE?
The latest swagger file is stored in openapi_generator/comodash_api_swagger.json
Download latest jar of OpenAPI Generator
java -jar \
./openapi_generator/openapi-generator-cli.jar generate \
-i ./openapi_generator/comodash_api_swagger.yaml\
-g python \
--package-name comodash_api_client_lowlevel \
--additional-properties \
generateSourceCodeOnly=True,library=urllib3 \
-o ./src/
java -jar `
openapi_generator/openapi-generator-cli.jar generate `
-i openapi_generator/comodash_api_swagger.yaml `
-g python `
--package-name comodash_api_client_lowlevel `
--additional-properties `
"generateSourceCodeOnly=True,library=urllib3" `
-o src
We have changed from asyncio to urllib3 to ensure simplicity in coding without requiring "await" and "async"
To generate an html of the api:
java -jar \
./openapi_generator/openapi-generator-cli.jar generate \
-i ./openapi_generator/comodash_api_swagger.yaml\
-g html \
-o ./html/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file comotion_sdk-1.1.5.tar.gz.
File metadata
- Download URL: comotion_sdk-1.1.5.tar.gz
- Upload date:
- Size: 239.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5acc804a6db65d954d89e27dc2f43e9aa2b5d93f6d6ab9557c21c5d29eeaffc
|
|
| MD5 |
005da8297fc676d47c6cc63b685d36b4
|
|
| BLAKE2b-256 |
d28e6928e20fec8933a0bacdb39ef0e06fa9777841a3069ce931a7fa26f28c82
|
Provenance
The following attestation bundles were made for comotion_sdk-1.1.5.tar.gz:
Publisher:
publish_release_actions.yml on ComotionLabs/comotion-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
comotion_sdk-1.1.5.tar.gz -
Subject digest:
f5acc804a6db65d954d89e27dc2f43e9aa2b5d93f6d6ab9557c21c5d29eeaffc - Sigstore transparency entry: 720973520
- Sigstore integration time:
-
Permalink:
ComotionLabs/comotion-sdk@6548a295231cca5ce5eec9a1601a56aa0708abb8 -
Branch / Tag:
refs/tags/v1.1.5 - Owner: https://github.com/ComotionLabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_release_actions.yml@6548a295231cca5ce5eec9a1601a56aa0708abb8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file comotion_sdk-1.1.5-py3-none-any.whl.
File metadata
- Download URL: comotion_sdk-1.1.5-py3-none-any.whl
- Upload date:
- Size: 114.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dcbc42610c3b9e65fcf60ae96dd54ddba640f8aa9db8fda181478b2fd4b541a
|
|
| MD5 |
4288ca19a5e00b45af0f0c56c2e3d01b
|
|
| BLAKE2b-256 |
053dc38f3e38d3241e34cb3bfc55c30f499d92903e4b55a9f5431ab330ef7413
|
Provenance
The following attestation bundles were made for comotion_sdk-1.1.5-py3-none-any.whl:
Publisher:
publish_release_actions.yml on ComotionLabs/comotion-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
comotion_sdk-1.1.5-py3-none-any.whl -
Subject digest:
0dcbc42610c3b9e65fcf60ae96dd54ddba640f8aa9db8fda181478b2fd4b541a - Sigstore transparency entry: 720973573
- Sigstore integration time:
-
Permalink:
ComotionLabs/comotion-sdk@6548a295231cca5ce5eec9a1601a56aa0708abb8 -
Branch / Tag:
refs/tags/v1.1.5 - Owner: https://github.com/ComotionLabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_release_actions.yml@6548a295231cca5ce5eec9a1601a56aa0708abb8 -
Trigger Event:
push
-
Statement type: