Skip to main content

# Galaxy SDK for Python

This is XiaoMi Galaxy SDK for python, which allows Python developers to write software that makes use of XiaoMi Galaxy [EMR/SDS/FDS/EMQ].

## Installing

Requires Python >= 2.6. You can install using pip or easy_install:

pip install galaxy-sdk-python or easy_install galaxy-sdk-python

or download source codes from [https://github.com/XiaoMi/galaxy-sdk-python.git]() and add the ‘lib’ dir to your python path.

## Configuring Credential

Before using the SDK, ensure that you’ve configured credential. You can get the necessary credential by registering on http://dev.xiaomi.com/. To configure credential, you may use codes like:

` appKey = "MY-APP-KEY" appSecret = "MY-SECRET-KEY" credential = Credential(UserType.APP_SECRET, appKey, appSecret) `

## Usage

To use SDK, you can import like:

` from sds.table.ttypes import PutRequest from sds.table.ttypes import GetRequest `

We have two examples in the ‘examples’ dir of the source code, users can run these examples after credential configured.

` python examples/basic.py `

Release files for galaxy-sdk-python 1.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for galaxy-sdk-python 1.2.7
File Size Uploaded
galaxy-sdk-python-1.2.7.tar.gz 162.6 kB Details

Release files / galaxy-sdk-python-1.2.7.tar.gz

Download URL galaxy-sdk-python-1.2.7.tar.gz
Size 162.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ce15250033b687660c9495930143bfc5ca18c295b3e31897fdab29a5d8e34867
BLAKE2b-256 checksum
How to use checksums
ac80f9d92b0bbc78d989274b66b61921d0cbe0729595549b2a13034fcdd96acf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.2.7 This release

1 release file

1.2.6

1 release file

0.2.9

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.8

1 release file

0.1.7

2 release files

0.1.6

2 release files

0.1.5

1 release file

0.1.4

1 release file

0.1.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page