Go to file
gugug f88a23acb1 Replace assertItemsEqual with assertCountEqual
assertItemsEqual was removed from Python's unittest.TestCase in
Python 3.3 [1][2]. We have been able to use them since then, because
testtools required unittest2, which still included it. With testtools
removing Python 2.7 support [3][4], we will lose support for
assertItemsEqual, so we should switch to use assertCountEqual.

[1] - https://bugs.python.org/issue17866
[2] - https://hg.python.org/cpython/rev/d9921cb6e3cd
[3] - testing-cabal/testtools#286
[4] - testing-cabal/testtools#277

Change-Id: Ib5985049235ee1b6018fc172a67e3b05970a6c42
2020-07-12 11:20:38 +08:00
2020-03-31 12:16:31 +02:00
2018-07-11 09:59:08 +07:00
2019-04-19 19:39:43 +00:00
2014-05-07 12:12:43 -07:00
2018-07-11 09:59:08 +07:00
2020-04-11 18:31:11 +00:00
2012-09-29 16:03:23 -07:00
2011-10-25 16:50:08 -07:00
2020-04-24 08:23:17 -05:00
2020-04-04 14:15:46 +02:00

Team and repository tags

image

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()
Description
OpenStack Identity (Keystone) Client
Readme 33 MiB
Languages
Python 100%