racker/python-twisted-service-registry-client

Name: python-twisted-service-registry-client

Owner: racker

Description: A Twisted Python client for Rackspace Service Registry.

Created: 2012-08-15 03:38:17.0

Updated: 2013-11-01 09:51:11.0

Pushed: 2013-03-28 21:07:10.0

Homepage:

Size: 260

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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
 txServiceRegistry import Client
 twisted.internet import reactor
 twisted.web.client import Agent

SPACE_USERNAME = 'username'
SPACE_KEY = 'api key'

nt = Client(RACKSPACE_USERNAME, RACKSPACE_KEY)

 something
tor.run()

resultCallback(result):
print result
reactor.stop()

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.