Skip to main content

Cumulio-Python-SDK

:warning::warning: DEPRECATION NOTICE :warning::warning:

The library had been replaced by luzmo-sdk. You can find the new package on the GitHub repo luzmo-official/luzmo-sdk-python.

Python Package

You will need Python Version >= 3.6

pip install cumulio

Documentation

For detailed documentation, please visit the Cumul.io Developer Docs

Usage and Examples

Create a Cumul.io dataset:

from cumulio.cumulio import Cumulio

key = "Your Cumul.io key"
token = "Your Cumul.io token"

client = Cumulio(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.cumul.io"

E.g.:

client = Cumulio(key, token, "https://api.us.cumul.io")

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.cumul.io

Metadata

Release files for cumulio 0.2.5

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

Source distribution (sdist)

Source distribution for cumulio 0.2.5
File Size Uploaded
cumulio-0.2.5.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cumulio 0.2.5
File Interpreter ABI Platform
cumulio-0.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / cumulio-0.2.5.tar.gz

Download URL cumulio-0.2.5.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d9a21f550ec687a942fae583c7c80d727766c7589d5aa21213339cd41c554c29
BLAKE2b-256 checksum
How to use checksums
ae3168f780fd15c550b860862c5113dc50ebd5309c2d7d03f1e86e2c6340bbc5
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 / cumulio-0.2.5-py3-none-any.whl

Download URL cumulio-0.2.5-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30e6ee35ea573b2cf30dcee0a69f625ea1323c17da6d51ae7999c9182d345e0c
BLAKE2b-256 checksum
How to use checksums
62c72bcc62b0a5185e6e6ed9f3b8ad6c9b600b960bd2813bde58a8d4d847117b
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

0.2.5 This release

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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