Skip to main content

Lumigator SDK using the REST API

Project description

Lumigator SDK

The SDK provides the communication and validation primitives needed to contact the Lumigator itself, either locally or remotely.

You can install the lumigator SDK via pip directly or via uv from the cloned repository:

pip install -e lumigator/sdk

or

uv pip install -e lumigator/sdk

Now that you have the SDK installed, you can use it to communicate with Lumigator. You can run the example notebook for a platform API walkthrough, or follow the quickstart guide in the documentation.

The SDK uses the lumigator-schemas package models, but with stricter validations, so properties not explicitly defined in the schemas will be handled as errors.

Test instructions

The SDK includes both unit tests (requiring no additional containers) and integration tests (requiring a live Lumigator backend). By default only unit tests are run.

To run unit tests, please use:

uv run pytest

To run integration tests, please use:

pushd ../../../../ # go back to the project root
make start-lumigator-build # wait until all containers are up and running
popd
uv run pytest -o python_files="int_test_*.py" # wait until all tests have passed; update and repeat...
pushd ../../../../ # go back to the project root
make local-down # wait until all containers are removed
popd

The tests include a unit test suite and an integration test suite. There are make targets available at the root folder, as follows:

  • sdk-test: runs sdk-unit-test and sdk-int-test
    • sdk-unit-test: runs tests in backend/tests/unit/*/test_*.py (any depth of subfolders)
    • sdk-int-test: runs tests in backend/tests/int/*/test_*.py (any depth of subfolders)

A live Lumigator backend is started for integration tests.

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

lumigator_sdk-0.1.1a0.tar.gz (31.8 kB view details)

Uploaded Source

Built Distribution

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

lumigator_sdk-0.1.1a0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file lumigator_sdk-0.1.1a0.tar.gz.

File metadata

  • Download URL: lumigator_sdk-0.1.1a0.tar.gz
  • Upload date:
  • Size: 31.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.0

File hashes

Hashes for lumigator_sdk-0.1.1a0.tar.gz
Algorithm Hash digest
SHA256 5c1a123edf533d6e196cd1616963379a95ccb7e7e3841b09ecf3605b84eb3f04
MD5 4fa1ac4383b2fe64564c2898231d9f66
BLAKE2b-256 b86b8f7f2e71962dea1a9e50e6b9382041e5862a283602aaded6dd57753679f0

See more details on using hashes here.

File details

Details for the file lumigator_sdk-0.1.1a0-py3-none-any.whl.

File metadata

File hashes

Hashes for lumigator_sdk-0.1.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 b44b6890b3d9e472d98f7784d0912260d54f588fefabc68fb7940575e466998e
MD5 f402f82a0098de3319aaf195ce108921
BLAKE2b-256 eed2be1dc6576162dcb2d2347b822cf76190faddd9704f7480d173c2174b2066

See more details on using hashes here.

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