OpenStack Identity (Keystone) Client
cmurphy Use python3 for functional tests
Switch to python3 for the tox basepython and for the devstack setup for
functional tests to fulfill the python3-first goal[1]. We still have
unit test coverage for python2.

[1] https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: If82196ce6a2fffe6a43bb59077c6bdd712276958
Latest commit 8cb5e76 Oct 28, 2018

README.rst

Team and repository tags

Python bindings to the OpenStack Identity API (Keystone)

Latest Version

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