Created
April 25, 2013 03:25
-
-
Save jianingy/5457295 to your computer and use it in GitHub Desktop.
almar search tool
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import random | |
import unittest | |
import psycopg2 | |
#SERVICE_BASE = 'http://localhost:9999/op' | |
SERVICE_BASE = 'http://dnsdev2.cm3:55555/op' | |
if __name__ == '__main__': | |
from jsonrpc import ServiceProxy | |
import sys | |
service = ServiceProxy(SERVICE_BASE) | |
for item in service.search(sys.argv[1]): | |
print item | |
# vim: ts=4 sw=4 ai et |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment