OpenStack Identity (Keystone) Client
Go to file
OpenStack Release Bot 4763cd8052 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I3a119e8b17c4c217f5dbcb01e254862bcf54a3a0
2022-09-14 09:10:26 +00:00
doc Merge "remove unicode from code" 2022-04-22 17:21:06 +00:00
examples/pki Update hacking for Python3 2020-03-31 12:16:31 +02:00
keystoneclient fix: remove error python2 defense code 2022-07-06 11:34:02 +08:00
playbooks Fix keystoneclient-devstack-functional job 2018-11-28 14:45:14 +00:00
releasenotes Update master for stable/zed 2022-09-09 15:12:51 +00:00
.coveragerc Updated coverage configuration file 2016-10-19 12:38:55 +00:00
.gitignore Switch to stestr 2018-07-11 09:59:08 +07:00
.gitreview OpenDev Migration Patch 2019-04-19 19:39:43 +00:00
.mailmap Add mailmap entry 2014-05-07 12:12:43 -07:00
.stestr.conf Switch to stestr 2018-07-11 09:59:08 +07:00
.zuul.yaml Switch to 2023.1 Python3 unit tests and generic template name 2022-09-14 09:10:26 +00:00
CONTRIBUTING.rst Use https for *.openstack.org references 2017-02-05 20:46:32 -08:00
HACKING.rst Update URLs in documents according to document migration 2017-07-14 09:56:01 +08:00
LICENSE Initial commit. 2011-10-25 16:50:08 -07:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-04-24 19:16:55 +08:00
bindep.txt Fix bindep.txt to work with newer CentOS and RHEL 2022-02-21 15:34:45 +01:00
requirements.txt Drop lower-constraints.txt and its testing 2022-04-30 20:20:31 -05:00
setup.cfg Update python testing as per zed cycle teting runtime 2022-05-10 19:47:57 -05:00
setup.py Cleanup py27 support 2020-04-04 14:15:46 +02:00
test-requirements.txt [goal] Migrate testing to ubuntu focal 2020-08-16 21:12:07 +00:00
tox.ini Merge "Bump tox minversion to 3.18.0" 2022-06-03 17:31:16 +00:00

README.rst

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