Skip to main content

tcloud sdk for upload data!

Project description

Build Status


Tcloud SDK for Performance DataSource Program.


The Main Program:

Using for upload data of the program.



Using auth to complete the authorization.

from tcsdk import Auth

auth = Auth("key", "secret")

Init ApiService

Init ApiService with endpoint

from tcsdk import Api

api = Api(auth=auth, endpoint="http://localhost:9030")

Create Task By Api

Task is create by api object, you should offer the task_name, otherwise system would offer the "".

task = api.create_task("test")

If you offer the label_name after the task_name in create_task, you would get an default label with name label_name which in task.labels.

Create Label By Task

Label is the sub process of task, you can also create a label by label_name.

label = task.create_label("test")

Notice: task_name has no relationship with label_name .

Now, you can upload the label data!


Full example

from tcsdk import *

if __name__ == "__main__":
    auth = Auth("4c8093f3", "200f759b-1b83-4d")
    api = Api(auth=auth, endpoint="http://localhost:9030")
    task = api.create_task("test_for_sdk_111")
    assert task.task_id != 0

    label = task.create_label("test_for_sdk11")
    assert label.label_id != 0

    assert label.upload(fps=100) is True

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

tcsdk-0.0.6.tar.gz (11.6 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page