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.2.0.tar.gz (260.4 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.2.0-py3-none-any.whl (114.9 kB view details)

Uploaded Python 3

File details

Details for the file comotion_sdk-1.2.0.tar.gz.

File metadata

  • Download URL: comotion_sdk-1.2.0.tar.gz
  • Upload date:
  • Size: 260.4 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.2.0.tar.gz
Algorithm Hash digest
SHA256 0b13b5cc2078498813b5a3cf814ff8f0e7c9ad7b1f279850f9ee31a09b69109a
MD5 49535259c0b8f42cf016ae3fbc6805bf
BLAKE2b-256 c17c7fda19822d30463e3ee258a7bc938144d6b02d97a34bdebd43e49811a4a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for comotion_sdk-1.2.0.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: comotion_sdk-1.2.0-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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 147d13a18a3c103b268fbddebf89004bf2ca6c0bcac776a810d16b2a6ebb09c4
MD5 a0fe07581051e67e459d070fb7ca36c2
BLAKE2b-256 a9e184aee2d53835a07f6f6dfccb7c521861c97e16d873a8e7b8d9f2b1c4346f

See more details on using hashes here.

Provenance

The following attestation bundles were made for comotion_sdk-1.2.0-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