File: pythonxmlrpc.py

package info (click to toggle)
atheme-services 7.2.12-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,256 kB
  • sloc: ansic: 95,899; sh: 8,462; php: 5,032; perl: 3,327; makefile: 1,279; sed: 16; ruby: 15; python: 3
file content (8 lines) | stat: -rwxr-xr-x 232 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
#!/usr/bin/env python
# Simple example of using Atheme's XMLRPC server with python

import xmlrpclib

atheme = xmlrpclib.ServerProxy('http://127.0.0.1:8080/xmlrpc')

print atheme.atheme.command('*', '*', '::1', 'ALIS', 'LIST', '*')