Skip to main content

StarDots SDK for Python 3

Project description

logo.png

StarDots-SDK-Python

Python PIP License: MIT

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) -> SpaceListResp
  • StarDots.create_space(params: CreateSpaceReq) -> CreateSpaceResp
  • StarDots.delete_space(params: DeleteSpaceReq) -> DeleteSpaceResp
  • StarDots.toggle_space_accessibility(params: ToggleSpaceAccessibilityReq) -> ToggleSpaceAccessibilityResp
  • StarDots.get_space_file_list(params: SpaceFileListReq) -> SpaceFileListResp
  • StarDots.file_access_ticket(params: FileAccessTicketReq) -> FileAccessTicketResp
  • StarDots.upload_file(params: UploadFileReq) -> UploadFileResp
  • StarDots.delete_file(params: DeleteFileReq) -> DeleteFileResp

Documentation

https://stardots.io/en/documentation/openapi

Homepage

https://stardots.io

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

stardots_sdk_python-1.0.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stardots_sdk_python-1.0.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for stardots_sdk_python-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1b1f8d0f371dfc5ee056e8baac06c2663c31470833b0212c1186d645faaefcc8
MD5 5f50c18e8e67c2196de1e8cebd1bfda9
BLAKE2b-256 30119afc18c5655a7653e0c2617bc5b6b0e0ffac005bfbdaee6764eed876a107

See more details on using hashes here.

File details

Details for the file stardots_sdk_python-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for stardots_sdk_python-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 441ff2c3d00a5b47da5807cfea556e513bc7d7cec7f994a6885c5a063d48c3ce
MD5 2d149244bffc3e62f53bf73e673ec3f3
BLAKE2b-256 5f38df1f0260314feb4308fe78407143fda114b30abf9163cdd39bfe45abadaf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page