Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 799 Bytes

File metadata and controls

35 lines (23 loc) · 799 Bytes

Python Twisted Rackspace Service Registry client

A Twisted Python client for Rackspace Service Registry.

Installation

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.

License

This library is distributed under the Apache license.

Usage

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()