Skip to main content

#Luzmo-Python-SDK

Python Package

You will need Python Version >= 3.6

pip install luzmo-sdk

Documentation

For detailed documentation, please visit the Luzmo Developer Docs

Usage and Examples

Create a Luzmo dataset:

from luzmo.luzmo import Luzmo

key = "Your Luzmo key"
token = "Your Luzmo token"

client = Luzmo(key, token)
dataset = client.create("securable", {"type": "dataset", "name" : {"en":"Example with python sdk"}})
client.update("securable", dataset[" "], {"description":{"en":"This is an example description"}})

Optionally for people working with VPC or on our US multitenant environment, you can also define an api_host while creating the client. If not it will default to "https://api.luzmo.com"

E.g.:

client = Luzmo(key, token, "https://api.us.luzmo.com")

There is also the option of adding a dictionary of proxies while creating the API client.

Update description of dataset:

client.update("securable", dataset["id"], {"description":{"en":"Joost edited"}})

Create a column in the dataset:

burrito_column = client.create('column', { "type": 'hierarchy', "format": '',"informat": 'hierarchy', "order": 0,"name": {"nl": 'Type burrito'}})
client.associate("securable", dataset["id"], "Columns", burrito_column["id"])

Add Values to the column:

client.create("data", dataset["id"], {"securable_id": dataset["id"],"type": "append", "data": [["sweet"], ["sour"]]})

Replace Values in the column:

client.create("data", {"securable_id": dataset["id"],"type": "replace", "data": [["bitter"], ["salty"]]})

Documentation

The API documentation (available services and methods) can be found at https://developer.luzmo.com

Metadata

Release files for luzmo-sdk 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for luzmo-sdk 1.0.0
File Size Uploaded
luzmo_sdk-1.0.0.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for luzmo-sdk 1.0.0
File Interpreter ABI Platform
luzmo_sdk-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / luzmo_sdk-1.0.0.tar.gz

Download URL luzmo_sdk-1.0.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
15013f6b15720565867bc9ef8570feb336afeedcdd854a950269f00c2c84d322
BLAKE2b-256 checksum
How to use checksums
f55de03456e6090b27e6ca72e5fb00180ad924505a6ab6ffb124b42b0d9652d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.10.8 Linux/6.4.6-76060406-generic

Release files / luzmo_sdk-1.0.0-py3-none-any.whl

Download URL luzmo_sdk-1.0.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9a17c7b33b06aa49519ab821803fbdcf507cf95e8fa7f83946e25f508f4dea8
BLAKE2b-256 checksum
How to use checksums
3a9cec7b3c87745a644933a072a76a6c33514a22603f3d73ac1e29fa4c3a3833
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.1 CPython/3.10.8 Linux/6.4.6-76060406-generic

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page