Skip to main content

[DEPRECATED - use luzmo-sdk instead] Cumulio Python SDK for the Core API

Project description

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

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

cumulio-0.2.5.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

cumulio-0.2.5-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file cumulio-0.2.5.tar.gz.

File metadata

  • Download URL: cumulio-0.2.5.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.8 Linux/6.4.6-76060406-generic

File hashes

Hashes for cumulio-0.2.5.tar.gz
Algorithm Hash digest
SHA256 d9a21f550ec687a942fae583c7c80d727766c7589d5aa21213339cd41c554c29
MD5 478336994a163086ad2f0299888b047d
BLAKE2b-256 ae3168f780fd15c550b860862c5113dc50ebd5309c2d7d03f1e86e2c6340bbc5

See more details on using hashes here.

File details

Details for the file cumulio-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: cumulio-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.10.8 Linux/6.4.6-76060406-generic

File hashes

Hashes for cumulio-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 30e6ee35ea573b2cf30dcee0a69f625ea1323c17da6d51ae7999c9182d345e0c
MD5 976295dda54881ec07467afce74dc685
BLAKE2b-256 62c72bcc62b0a5185e6e6ed9f3b8ad6c9b600b960bd2813bde58a8d4d847117b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page