Skip to main content

Lumigator SDK using the REST API

Reason this release was yanked:

Test image

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/python/mzai/sdk

or

uv pip install -e lumigator/python/mzai/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.0.2.tar.gz (28.0 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.0.2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file lumigator_sdk-0.0.2.tar.gz.

File metadata

  • Download URL: lumigator_sdk-0.0.2.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.10

File hashes

Hashes for lumigator_sdk-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5f1c52b09fcdbf20ef973baff6f951156fdbff06ceb38cac70a3ca16d6e1bab2
MD5 2f65f1604d9adc87501219b09f2d3f4f
BLAKE2b-256 ea3888a9ef23837b94dce9d7f9d7601ee2bfb33bf4015e067e366304aad8ec8c

See more details on using hashes here.

File details

Details for the file lumigator_sdk-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for lumigator_sdk-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1ae48b5773b7bd4b6e215cf4d89bc9d15e43c28eeb2086aab0f30b0d7ad1f794
MD5 4f83cdbb8924c772c9ddea9bf81e1100
BLAKE2b-256 c37423e6b3b3ce59bc52cc457529acaa624fe2a034c91d185e59b9fe063f7f1a

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