Skip to content

Instantly share code, notes, and snippets.

@jianingy
Created April 25, 2013 03:25
Show Gist options
  • Save jianingy/5457295 to your computer and use it in GitHub Desktop.
Save jianingy/5457295 to your computer and use it in GitHub Desktop.
almar search tool
#!/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