xiaomi / galaxy-sdk-python Goto Github PK
View Code? Open in Web Editor NEWPython SDK for Xiaomi Structured Datastore Service
License: Apache License 2.0
Python SDK for Xiaomi Structured Datastore Service
License: Apache License 2.0
from lib.emr.service.ttypes import *
Traceback (most recent call last):
File "sdsdemo.py", line 90, in <module>
table_client.put(put)
File "/usr/local/lib/python2.7/site-packages/sds/client/clientfactory.py", line 91, in __call_with_retries
return getattr(self.client, item)(*args)
File "/usr/local/lib/python2.7/site-packages/sds/client/clientfactory.py", line 131, in __call_with_new_client
return getattr(client, item)(*args)
File "/usr/local/lib/python2.7/site-packages/sds/table/TableService.py", line 163, in put
return self.recv_put()
File "/usr/local/lib/python2.7/site-packages/sds/table/TableService.py", line 187, in recv_put
raise result.se
sds.errors.ttypes.ServiceException: ServiceException(errorCode=25, callId='394o8p31', errorMessage='The operation exceed the throughput, cluster=tjwqsrv-galaxy98, taskId=21', details='put operation exceed the throughput, table attributes: {noteId=1, category=2, title=3, mtime=4, userId=5, version=6, content=7}, table indexes: {mtime_index=1, category_index=2}', requestId='a558d907')
Hi all,
Thanks for creating this repository. Please add descriptive docstrings explaining what your example modules are doing at the top of the modules. This will help users like myself understand just what you are demonstrating in your example files.
Currently the code style and current docstrings are not clearly communicating what you are trying to show, which will likely affect developer adoption.
Example:
"""
This example shows how to Store and Retrieve data from tables stored
on the device. Specific records can be queried directly using the
GetRequest class with a dict of Key criteria, or via the
ScanRequest class to return a list of records.
"""
# -*- coding: utf-8 -*-
import random
import time
import sys
from sds.client.clientfactory import ClientFactory
from sds.client.datumutil import datum
from sds.client.datumutil import values
from sds.client.tablescanner import scan_iter
from sds.auth.ttypes import Credential
from sds.auth.ttypes import UserType
from sds.common.constants import ADMIN_SERVICE_PATH
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.