Skip to content

Instantly share code, notes, and snippets.

@tistaharahap
Created September 6, 2016 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tistaharahap/b0d73bf3eb5c395eddf866e6250729a7 to your computer and use it in GitHub Desktop.
Save tistaharahap/b0d73bf3eb5c395eddf866e6250729a7 to your computer and use it in GitHub Desktop.
from pyhs import Manager
def get_user_by_id(hs, user_id):
pass
def main():
hs = Manager() # Assuming that Handlersocket is available at 127.0.0.1
user = hs.get('fun', 'user', ['user_id', 'user_name', 'user_email', 'created'], '1')
print dict(user)
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment