racker / python-twisted-service-registry-client

A Twisted Python client for Rackspace Service Registry.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Twisted Python client for Rackspace Service Registry.

License:Apache License 2.0


Languages

Language:Python 100.0%