OpenStack Identity (Keystone) Client
Go to file
Tin Lam 7c40ff8466 Fix response body being omitted in debug mode incorrectly
In debug mode, when a response's header Content-Type is set
to "application/json" with a parameter, i.e.,
"application/json; charset=UTF-8".  This patch set ignores
the additional parameter and only match the mimetype.

Change-Id: Ie8fcb1061e0e49b039436947524cfdc704c83846
Closes-Bug: #1656981
(cherry picked from commit dcb719d0e5)
2017-01-17 21:56:25 +00:00
doc import warnings in doc/source/conf.py 2016-05-31 15:48:31 -04:00
examples/pki Remove keystoneclient.middleware 2015-12-11 02:00:30 -05:00
keystoneclient Fix response body being omitted in debug mode incorrectly 2017-01-17 21:56:25 +00:00
releasenotes Only log application/json content type 2017-01-11 00:06:15 -05:00
.coveragerc Change ignore-errors to ignore_errors 2015-09-21 14:53:26 +00:00
.gitignore Add release notes for keystoneclient 2015-11-29 20:02:58 -05:00
.gitreview Update .gitreview for stable/newton 2016-09-02 09:42:34 -04:00
.mailmap Add mailmap entry 2014-05-07 12:12:43 -07:00
.testr.conf Create functional test base 2015-02-13 17:55:34 +11:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2015-02-05 17:56:32 +00:00
HACKING.rst Make HACKING.rst DRYer and turn into rst file 2013-11-11 11:05:00 -08:00
LICENSE Initial commit. 2011-10-25 16:50:08 -07:00
README.rst Update README to comply with Identity V3 2016-06-28 20:08:34 +00:00
babel.cfg enabling i18n with Babel 2012-09-29 16:03:23 -07:00
bindep.txt Move other-requirements.txt to bindep.txt 2016-08-12 21:14:07 +02:00
requirements.txt Updated from global requirements 2016-08-04 02:41:26 +00:00
setup.cfg Add Python 3.5 classifier 2016-08-05 16:25:02 +08:00
setup.py Updated from global requirements 2015-09-17 12:16:43 +00:00
test-requirements.txt Updated from global requirements 2016-08-20 01:03:23 +00:00
tox.ini List system dependencies for running common tests 2016-06-28 16:29:44 +02:00

README.rst

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.

Contents:

Python API

By way of a quick-start:

>>> from keystoneauth1.identity import v3
>>> from keystoneauth1 import session
>>> from keystoneclient.v3 import client
>>> auth = v3.Password(auth_url="http://example.com:5000/v3", username="admin",
...                     password="password", project_name="admin",
...                     user_domain_id="default", project_domain_id="default")
>>> sess = session.Session(auth=auth)
>>> keystone = client.Client(session=sess)
>>> keystone.projects.list()
    [...]
>>> project = keystone.projects.create(name="test", description="My new Project!", domain="default", enabled=True)
>>> project.delete()