OpenStack Identity (Keystone) Client
Find a file
Boris Bobrov eb70dba59d Bring back intersphinx reference to keystoneauth
Change-Id: I0b1d1a4abdf919dd403679565cde046a825898fa
Depends-On: I2a4fc6a4782a5496b2ab4a8355ed2c3b6dac58fa
2017-07-05 12:04:01 +03:00
doc Bring back intersphinx reference to keystoneauth 2017-07-05 12:04:01 +03:00
examples/pki Remove keystoneclient.middleware 2015-12-11 02:00:30 -05:00
keystoneclient Remove unused log 2017-04-25 17:22:09 +08:00
releasenotes Use https for *.openstack.org references 2017-02-05 20:46:32 -08:00
tools Add Constraints support 2016-12-21 12:59:13 +11:00
.coveragerc Updated coverage configuration file 2016-10-19 12:38:55 +00:00
.gitignore Add release notes for keystoneclient 2015-11-29 20:02:58 -05:00
.gitreview Added in common test, venv and gitreview stuff. 2011-12-22 00:12:22 +00: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
babel.cfg enabling i18n with Babel 2012-09-29 16:03:23 -07:00
bindep.txt Use https for *.openstack.org references 2017-02-05 20:46:32 -08:00
CONTRIBUTING.rst Use https for *.openstack.org references 2017-02-05 20:46:32 -08:00
HACKING.rst Use https for *.openstack.org references 2017-02-05 20:46:32 -08:00
LICENSE Initial commit. 2011-10-25 16:50:08 -07:00
README.rst Use https for *.openstack.org references 2017-02-05 20:46:32 -08:00
requirements.txt Updated from global requirements 2017-03-22 22:27:35 +00:00
setup.cfg Use https for *.openstack.org references 2017-02-05 20:46:32 -08:00
setup.py Updated from global requirements 2017-03-22 22:27:35 +00:00
test-requirements.txt Updated from global requirements 2017-02-15 01:35:06 +00:00
tox.ini Merge "remove hacking checks from keystoneclient" 2017-01-06 19:41:10 +00:00

========================
Team and repository tags
========================

.. image:: https://governance.openstack.org/badges/python-keystoneclient.svg
    :target: https://governance.openstack.org/reference/tags/index.html

.. Change things from this point on

Python bindings to the OpenStack Identity API (Keystone)
========================================================

.. image:: https://img.shields.io/pypi/v/python-keystoneclient.svg
    :target: https://pypi.python.org/pypi/python-keystoneclient/
    :alt: Latest Version

.. image:: https://img.shields.io/pypi/dm/python-keystoneclient.svg
    :target: https://pypi.python.org/pypi/python-keystoneclient/
    :alt: 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`_.

* `PyPi`_ - package installation
* `Online Documentation`_
* `Launchpad project`_ - release management
* `Blueprints`_ - feature specifications
* `Bugs`_ - issue tracking
* `Source`_
* `Specs`_
* `How to Contribute`_

.. _PyPi: https://pypi.python.org/pypi/python-keystoneclient
.. _Online Documentation: https://docs.openstack.org/developer/python-keystoneclient
.. _Launchpad project: https://launchpad.net/python-keystoneclient
.. _Blueprints: https://blueprints.launchpad.net/python-keystoneclient
.. _Bugs: https://bugs.launchpad.net/python-keystoneclient
.. _Source: https://git.openstack.org/cgit/openstack/python-keystoneclient
.. _OpenStackClient: https://pypi.python.org/pypi/python-openstackclient
.. _How to Contribute: https://docs.openstack.org/infra/manual/developers.html
.. _Specs: https://specs.openstack.org/openstack/keystone-specs/

.. contents:: Contents:
   :local:

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()