StarDots SDK for Python 3
Project description
StarDots-SDK-Python
Introduction
This project is used to help developers quickly access the StarDots platform and is written in Python 3.
Requirement
- Python >= 3.7
Installation
pip install stardots-sdk-python
# 或者本地开发:
pip install -r requirements.txt
Example
from stardots_sdk import StarDots, CreateSpaceReq, UploadFileReq
client_key = "Your client key"
client_secret = "Your client secret"
sdk = StarDots(client_key, client_secret)
# Get space list
space_list = sdk.get_space_list()
# Create a new space
create_result = sdk.create_space(CreateSpaceReq(space="my-space", public=True))
# Upload a file
with open("example.txt", "rb") as f:
upload_result = sdk.upload_file(UploadFileReq(space="my-space", filename="example.txt", fileContent=f.read()))
API Reference
StarDots.get_space_list(params: SpaceListReq) -> SpaceListRespStarDots.create_space(params: CreateSpaceReq) -> CreateSpaceRespStarDots.delete_space(params: DeleteSpaceReq) -> DeleteSpaceRespStarDots.toggle_space_accessibility(params: ToggleSpaceAccessibilityReq) -> ToggleSpaceAccessibilityRespStarDots.get_space_file_list(params: SpaceFileListReq) -> SpaceFileListRespStarDots.file_access_ticket(params: FileAccessTicketReq) -> FileAccessTicketRespStarDots.upload_file(params: UploadFileReq) -> UploadFileRespStarDots.delete_file(params: DeleteFileReq) -> DeleteFileResp
Documentation
https://stardots.io/en/documentation/openapi
Homepage
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stardots_sdk_python-1.0.0.tar.gz.
File metadata
- Download URL: stardots_sdk_python-1.0.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b1f8d0f371dfc5ee056e8baac06c2663c31470833b0212c1186d645faaefcc8
|
|
| MD5 |
5f50c18e8e67c2196de1e8cebd1bfda9
|
|
| BLAKE2b-256 |
30119afc18c5655a7653e0c2617bc5b6b0e0ffac005bfbdaee6764eed876a107
|
File details
Details for the file stardots_sdk_python-1.0.0-py3-none-any.whl.
File metadata
- Download URL: stardots_sdk_python-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
441ff2c3d00a5b47da5807cfea556e513bc7d7cec7f994a6885c5a063d48c3ce
|
|
| MD5 |
2d149244bffc3e62f53bf73e673ec3f3
|
|
| BLAKE2b-256 |
5f38df1f0260314feb4308fe78407143fda114b30abf9163cdd39bfe45abadaf
|