Last active
September 13, 2016 10:40
-
-
Save tistaharahap/d82cf4ae6f9a453468c1d54e31857b25 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 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