A Twisted Python client for Rackspace Service Registry.
pip install --upgrade txServiceRegistry
Note: You need to install Python header files otherwise the installation will
fail. On debian based distributions you can obtain them by installing
python-dev
package.
This library is distributed under the Apache license.
from txServiceRegistry import Client
from twisted.internet import reactor
from twisted.web.client import Agent
RACKSPACE_USERNAME = 'username'
RACKSPACE_KEY = 'api key'
client = Client(RACKSPACE_USERNAME, RACKSPACE_KEY)
# Do something
reactor.run()
def resultCallback(result):
print result
reactor.stop()