Suite Standard Library
Project description
Cool-tree
Official SDK for managing Suite Platform
Cool-tree can both be used from the command line and as a python library.
Main functions are:
- Manage projects
- Manage Datas
- Manage Labels
Installation
$ pip install -i https://test.pypi.org/simple/ cool-tree
Client Authntication
To perform remote operations on Suite you first need to authenticate. This requires a [Account-specific API-key].
To start the authentication process:
$ vim ~/.spb/credentials
[YOUR_PROFILE_NAME(Default : default)]
access_key=YOUT_ACCESS_KEY
account_name = YOUR_ACCOUNT_NAME
You can also directly use Access key and Account name to SDK. (Check, how to use)
How to use
First. you need to authenticate and get client from SDK
# Use default profile in credentials
spb.client()
# Use other profile in credentials
spb.client(profile='OTHER_PROFILE_NAME')
# and also you can directly use account_name and access_key
spb.client(account_name='YOUR_ACCOUNT_NAME', access_key='YOUR_ACCESS_KEY')
Now, you can use Suite SDK in your project
Example #1 - Describe Project
import spb
from spb.command import Command
from spb.models import Project
def describe_project():
spb.client()
command = Command(type='describe_project')
projects = spb.run(command=command)
if __name__ == "__main__":
test_describe_project()
In this case, you can be seen Project list in your account
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cool-tree-0.0.8.tar.gz
(10.6 kB
view hashes)
Built Distribution
cool_tree-0.0.8-py3-none-any.whl
(17.6 kB
view hashes)
Close
Hashes for cool_tree-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dde2621324d2c7fa143c5ff25a997ba272f9296412cb05ae16b01d0b60107a38 |
|
MD5 | bd91a4041911afb4b123eb5d00e27639 |
|
BLAKE2b-256 | 08c6636b7f42acf94a100fe9d1c32aa8e424ae4964cb48a3702f0f8c26cd8643 |