Created
September 6, 2016 08:46
-
-
Save tistaharahap/b0d73bf3eb5c395eddf866e6250729a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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