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
$ git clone https://github.com/Superb-AI-Suite/cool-tree
$ cd cool-tree
$ python setup.py
$ spb --version
0.0.1
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__":
describe_project()
In this case, you can be seen Project list in your account
Metadata
Release files for cool-tree 0.0.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cool-tree-0.0.18.tar.gz | 18.2 kB | Without provenance | Details for cool-tree-0.0.18.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cool_tree-0.0.18-py3.7.egg | Legacy Egg format | - | - | Details for cool_tree-0.0.18-py3.7.egg |
Total release size: 82.1 kB
Release files / cool-tree-0.0.18.tar.gz
| Download URL | cool-tree-0.0.18.tar.gz |
|---|---|
| Size | 18.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5f538151f5d751c11fc88718014314879840fdf4213d8e5bfd9aa814e37187b
|
|
BLAKE2b-256 checksum How to use checksums |
44d6245bcc951369c81fc87781fdc5a622919fe1e9d720247676d081ed145ef4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4
|
Release files / cool_tree-0.0.18-py3.7.egg
| Download URL | cool_tree-0.0.18-py3.7.egg |
|---|---|
| Size | 63.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
3274c5c4b9c1f550599f0fc88b23cb866b3fbd3cb1c8508b5b473914e9f48e76
|
|
BLAKE2b-256 checksum How to use checksums |
53a1a6e779d3826a9045ccf540290b8ecfadccef5f66a737c148df81122dddf9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4
|
Security for cool-tree 0.0.18
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.