luzmo-sdk-1.0.0
توضیحات
Luzmo Python SDK for the Core API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | luzmo-sdk-1.0.0 |
| نام | luzmo-sdk |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Luzmo team |
| ایمیل نویسنده | engineering@luzmo.com |
| آدرس صفحه اصلی | https://github.com/luzmo-official/luzmo-sdk-python |
| آدرس اینترنتی | https://pypi.org/project/luzmo-sdk/ |
| مجوز | - |
#Luzmo-Python-SDK
### Python Package
You will need `Python Version >= 3.6`
```console
pip install luzmo-sdk
```
### Documentation
For detailed documentation, please visit the [Luzmo Developer Docs](https://developer.luzmo.com/)
### Usage and Examples
Create a Luzmo dataset:
```console
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.:
```console
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:
```console
client.update("securable", dataset["id"], {"description":{"en":"Joost edited"}})
```
Create a column in the dataset:
```console
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:
```console
client.create("data", dataset["id"], {"securable_id": dataset["id"],"type": "append", "data": [["sweet"], ["sour"]]})
```
Replace Values in the column:
```console
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
نیازمندی
| مقدار | نام |
|---|---|
| >=2.25.1,<3.0.0 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6,<4.0 | Python |
نحوه نصب
نصب پکیج whl luzmo-sdk-1.0.0:
pip install luzmo-sdk-1.0.0.whl
نصب پکیج tar.gz luzmo-sdk-1.0.0:
pip install luzmo-sdk-1.0.0.tar.gz