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.4a0.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.4a0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lumigator_sdk-0.1.4a0.tar.gz
Algorithm Hash digest
SHA256 d1970bb778e6b53c1161ab009dafd5ebaf93e0b3fb7ea8e682a78c5e834123b1
MD5 1a7b65c1cb2a551ba9210c807a952812
BLAKE2b-256 11dbab94161196d7d4d8e0eb6a7e75dcaa78d0f9dcb7ef2714e0883f833b2716

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lumigator_sdk-0.1.4a0-py3-none-any.whl
Algorithm Hash digest
SHA256 497a1f3a3bfdf2e373f2239c2805bc3693e6723a394e66b3a2256525c3c829ae
MD5 1364b67561cd17a2b8f9fd97ef72dbb7
BLAKE2b-256 b0cf92f17432f7fa5a8d87198ecd4ee7174ea98ef5e39284edc62f691d718553

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