# Twisted Python Keystone Agent
[](http://travis-ci.org/racker/python-twisted-keystone-agent)
## Example Usage
```python
from twisted.internet import reactor
from twisted.web.client import Agent
from txKeystone import KeystoneAgent
agent = Agent(reactor)
RACKSPACE_USERNAME = '' # your username here
RACKSPACE_APIKEY = '' # your API key here
AUTH_URL = 'https://identity.api.rackspacecloud.com/v2.0/tokens'
keystone_agent = KeystoneAgent(agent,
AUTH_URL,
(RACKSPACE_USERNAME, RACKSPACE_APIKEY))
```
`keystone_agent` can now be used like a [twisted.web.client.Agent](http://twistedmatrix.com/documents/current/web/howto/client.html)
(see "[Receiving Responses](http://twistedmatrix.com/documents/current/web/howto/client.html#auto4)")
to make requests to Rackspace APIs, and the `X-Tenant-Id` and `X-Auth-Token` headers will be set automatically.
[](http://travis-ci.org/racker/python-twisted-keystone-agent)
## Example Usage
```python
from twisted.internet import reactor
from twisted.web.client import Agent
from txKeystone import KeystoneAgent
agent = Agent(reactor)
RACKSPACE_USERNAME = '' # your username here
RACKSPACE_APIKEY = '' # your API key here
AUTH_URL = 'https://identity.api.rackspacecloud.com/v2.0/tokens'
keystone_agent = KeystoneAgent(agent,
AUTH_URL,
(RACKSPACE_USERNAME, RACKSPACE_APIKEY))
```
`keystone_agent` can now be used like a [twisted.web.client.Agent](http://twistedmatrix.com/documents/current/web/howto/client.html)
(see "[Receiving Responses](http://twistedmatrix.com/documents/current/web/howto/client.html#auto4)")
to make requests to Rackspace APIs, and the `X-Tenant-Id` and `X-Auth-Token` headers will be set automatically.
Metadata
Release files for txKeystone 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| txKeystone-0.1.3.tar.gz | 11.5 kB | Details |
Release files / txKeystone-0.1.3.tar.gz
| Download URL | txKeystone-0.1.3.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0395d59321edce373fd3e0b7ac4742b63ae2a71d6a752c4d44dc639a431c5f5
|
|
BLAKE2b-256 checksum How to use checksums |
49d330047aa16e6bf94fcc5b80032552d43d1e59c82bbc6ed1f320965753a71a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |