Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Python Shell
Latest commit 8506a6e @zqfan zqfan committed with Boris Bobrov remove unnecessary FakeLog class in test code
The FakeLog defined in keystoneclient/tests/unit/ isn't
used anywhere. This patch removes it.

fixtures package already provides a FakeLogger for us to use,
so we really don't need to maintain a private implementation,
this patch removes FakeLog in test_auth_token_middleware and replaces
it with fixtures.FakeLogger

Change-Id: I6aaf761a9676edf5bd799d22b79497be1d423e7c
Failed to load latest commit information.
doc Map keystoneclient exceptions to keystoneauth
examples/pki Revert "Remove keystoneclient.middleware"
keystoneclient remove unnecessary FakeLog class in test code
python-keystoneclient/locale Move pot file for traslation
tools Use oslo_debug_helper and remove our own version
.coveragerc Change ignore-errors to ignore_errors
.gitignore Fix auth_token middleware test invalid cross-device link issue
.gitreview Added in common test, venv and gitreview stuff.
.mailmap Add mailmap entry
.testr.conf Create functional test base
CONTRIBUTING.rst Workflow documentation is now in infra-manual
HACKING.rst Make HACKING.rst DRYer and turn into rst file
LICENSE Initial commit. Migrate to pbr.
README.rst Add version/downloads links/badges into README.rst
babel.cfg enabling i18n with Babel
bandit.yaml tox env for Bandit
openstack-common.conf Use oslo.utils and oslo.serialization
requirements.txt Updated from global requirements Create functional test base
setup.cfg Removes py26 support Updated from global requirements
test-requirements.txt Removes discover from test-reqs
tox.ini Removes py26 support


Python bindings to the OpenStack Identity API (Keystone)

Latest Version Downloads

This is a client for the OpenStack Identity API, implemented by the Keystone team; it contains a Python API (the keystoneclient module) for OpenStack's Identity Service. For command line interface support, use OpenStackClient.


Python API

By way of a quick-start:

# use v2.0 auth with
>>> from keystoneclient.v2_0 import client
>>> keystone = client.Client(username=USERNAME, password=PASSWORD, tenant_name=TENANT, auth_url=AUTH_URL)
>>> keystone.tenants.list()
>>> tenant = keystone.tenants.create(tenant_name="test", description="My new tenant!", enabled=True)
>>> tenant.delete()
Something went wrong with that request. Please try again.