racker/python-twisted-keystone-agent

Name: python-twisted-keystone-agent

Owner: racker

Description: Twisted Python client for Keystone API.

Created: 2012-08-20 21:37:07.0

Updated: 2013-10-31 00:00:17.0

Pushed: 2013-10-31 00:00:17.0

Homepage:

Size: 147

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Twisted Python Keystone Agent

Build Status

Example Usage
 twisted.internet import reactor
 twisted.web.client import Agent

 txKeystone import KeystoneAgent

t = Agent(reactor)

SPACE_USERNAME = '' # your username here
SPACE_APIKEY = '' # your API key here
_URL = 'https://identity.api.rackspacecloud.com/v2.0/tokens'

tone_agent = KeystoneAgent(agent,
                           AUTH_URL,
                           (RACKSPACE_USERNAME, RACKSPACE_APIKEY))

keystone_agent can now be used like a twisted.web.client.Agent (see “Receiving Responses“) to make requests to Rackspace APIs, and the X-Tenant-Id and X-Auth-Token headers will be set automatically.


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.