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.3a0.tar.gz (35.5 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.3a0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lumigator_sdk-0.1.3a0.tar.gz
Algorithm Hash digest
SHA256 d8062d8c3feacc20a7f3ca2cc962682fe3012a2d65cee541f3d0bc8f718e5539
MD5 e1246ec937d331d75ec272d37b5783ca
BLAKE2b-256 58936e679df321cfafddea9455528f4321550e0a4666133ed5b73b38ab9bc2cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lumigator_sdk-0.1.3a0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1d1bbbd2a33e5d497744f50655b02dcfe5b6c59ff5f84ee2b9dee845904f15d
MD5 3a313ec4d0b35617362dad6b39520dd3
BLAKE2b-256 4d3284480032bd39f7f92d266ab06f4ac1e7828ff4a59f67a070472612dbe8e8

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