Giter Club home page Giter Club logo

galaxy-sdk-python's People

Contributors

haxiaolin avatar jianweicui avatar kevinontheway avatar llhe avatar lshangq avatar sdxshen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

galaxy-sdk-python's Issues

sds example run failed

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')

Add meaningful docstrings to example modules

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.