Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

comotion_sdk-1.1.5.tar.gz (239.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

comotion_sdk-1.1.5-py3-none-any.whl (114.9 kB view details)

Uploaded Python 3

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

Hashes for comotion_sdk-1.1.5.tar.gz
Algorithm Hash digest
SHA256 f5acc804a6db65d954d89e27dc2f43e9aa2b5d93f6d6ab9557c21c5d29eeaffc
MD5 005da8297fc676d47c6cc63b685d36b4
BLAKE2b-256 d28e6928e20fec8933a0bacdb39ef0e06fa9777841a3069ce931a7fa26f28c82

See more details on using hashes here.

Provenance

The following attestation bundles were made for comotion_sdk-1.1.5.tar.gz:

Publisher: publish_release_actions.yml on ComotionLabs/comotion-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for comotion_sdk-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0dcbc42610c3b9e65fcf60ae96dd54ddba640f8aa9db8fda181478b2fd4b541a
MD5 4288ca19a5e00b45af0f0c56c2e3d01b
BLAKE2b-256 053dc38f3e38d3241e34cb3bfc55c30f499d92903e4b55a9f5431ab330ef7413

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page