Skip to main content

Examples

One file per part of the API, on the sync client; each file ends with a __main__ block that runs its examples. The async client mirrors the sync one call for call, so async_demo.py only runs the basic flow once on it, in one function.

The ids, names and file paths in the files are placeholders. Replace them with your own (and set LUML_API_KEY, or pass api_key=) before running a file:

cd sdk/python/api
uv run python examples/lineage.py
FileWhat it covers
client.pyCreating a client, reading and changing its default organization, orbit and collection
organizations.pyListing organizations, getting one by name or id
bucket_secrets.pyRegistering the buckets that store artifacts
orbits.pyCreating, updating and deleting orbits
collection.pyCollections of artifacts inside an orbit
artifacts.pyUploading, listing, updating, downloading and deleting artifacts
lineage.pyRecording what an artifact was produced from and reading the graph back: a training pipeline, impact analysis from a dataset, provenance of the model in production, fixing wrong links
tracks.pyVersioning one model in a track and moving versions between stages
deployments.pyListing deployments and getting one by name or id
monitoring.pyReading a deployment's monitoring sections from its Satellite
async_demo.pyThe basic flow on the async client, in one function