Daemon Status Web Service Python Client

From Plnwiki

#!/usr/bin/python
from suds.client import Client

url = 'http://localhost:8081/ws/DaemonStatusService?wsdl'
client = Client(url, username='lockss-u', password='lockss-p')

query = 'select name, publisher ' + \
'where availableFromPublisher = false ' + \
'and toDate(creationTime) > toDate("02/Apr/2013")'

print 'Results of client.service.queryAus(\'' + query + '\')'
print '*******************'
results = client.service.queryAus(query)

for result in results :
  print '==================='
  print result
print '==================='
print '*******************'