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/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: runssdk-unit-testandsdk-int-testsdk-unit-test: runs tests inbackend/tests/unit/*/test_*.py(any depth of subfolders)sdk-int-test: runs tests inbackend/tests/int/*/test_*.py(any depth of subfolders)
A live Lumigator backend is started for integration tests.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lumigator_sdk-0.1.0a0.tar.gz.
File metadata
- Download URL: lumigator_sdk-0.1.0a0.tar.gz
- Upload date:
- Size: 30.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
560e404d383ecccaaf931f216dfd74eae4d7b06f390986e68f5bfcd310fc3d95
|
|
| MD5 |
168162eee6fead8159ce86f9a705cb93
|
|
| BLAKE2b-256 |
9e157a3cee871b759d5b0af480c58130ca8b75e6122f3adca9ae54ce4c7984dd
|
File details
Details for the file lumigator_sdk-0.1.0a0-py3-none-any.whl.
File metadata
- Download URL: lumigator_sdk-0.1.0a0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1f6a5b07c379e474508e7a6531982a27ed40314df756ead13aece95fbbd894c
|
|
| MD5 |
3602a46aa07816a03c494de412bef282
|
|
| BLAKE2b-256 |
c22a3a237ab7e087654aea8ae45de8880e0ce71e5528f03b624819383b418003
|