tcsdk
Tcloud SDK for Performance DataSource Program.
Overview
The Main Program: https://github.com/tsbxmw/datasource
Using for upload data of the program.
Example
Auth
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!
label.upload(fps=100)
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
Metadata
Release files for tcsdk 0.0.6
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 |
|---|---|---|---|---|
| tcsdk-0.0.6.tar.gz | 11.6 kB | Without provenance | Details for tcsdk-0.0.6.tar.gz |
Release files / tcsdk-0.0.6.tar.gz
| Download URL | tcsdk-0.0.6.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98c23459d37c62786fcf2a34aad0b38c332fc031f42e09d9839eb10ab4ccc19f
|
|
BLAKE2b-256 checksum How to use checksums |
46a0309fa44363f110397cc6b9ee77a712e3130fa5e748c1d24446d925862a8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9
|
Security for tcsdk 0.0.6
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.