OpenStack Identity (Keystone) Client
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ghanshyam Mann 67aa3b93db Update python testing as per zed cycle teting runtime 2 weeks ago
doc Merge "remove unicode from code" 1 month ago
examples/pki Update hacking for Python3 2 years ago
keystoneclient Merge "use importlib.metadata to get keyring version" 3 weeks ago
playbooks Fix keystoneclient-devstack-functional job 4 years ago
releasenotes Update python testing as per zed cycle teting runtime 2 weeks ago
.coveragerc Updated coverage configuration file 6 years ago
.gitignore Switch to stestr 4 years ago
.gitreview OpenDev Migration Patch 3 years ago
.mailmap Add mailmap entry 8 years ago
.stestr.conf Switch to stestr 4 years ago
.zuul.yaml Update python testing as per zed cycle teting runtime 2 weeks ago
CONTRIBUTING.rst Use https for *.openstack.org references 5 years ago
HACKING.rst Update URLs in documents according to document migration 5 years ago
LICENSE Initial commit. 11 years ago
README.rst Replace git.openstack.org URLs with opendev.org URLs 3 years ago
bindep.txt Fix bindep.txt to work with newer CentOS and RHEL 3 months ago
requirements.txt Drop lower-constraints.txt and its testing 3 weeks ago
setup.cfg Update python testing as per zed cycle teting runtime 2 weeks ago
setup.py Cleanup py27 support 2 years ago
test-requirements.txt [goal] Migrate testing to ubuntu focal 2 years ago
tox.ini Merge "Use TOX_CONSTRAINTS_FILE" 2 weeks ago

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