Skip to content

Instantly share code, notes, and snippets.

@tistaharahap
Last active September 13, 2016 10:40
Show Gist options
  • Save tistaharahap/d82cf4ae6f9a453468c1d54e31857b25 to your computer and use it in GitHub Desktop.
Save tistaharahap/d82cf4ae6f9a453468c1d54e31857b25 to your computer and use it in GitHub Desktop.
from pyhs import Manager
def main():
hs = Manager() # Assuming that Handlersocket is available at 127.0.0.1
user = hs.find('fun', 'user', '>=', ['user_id', 'user_name', 'user_email', 'created'], ['tistaharahap'], 'usernames', 1)
print dict(user[0])
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment