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.
 
 
Zuul d5cb761763 Merge "Replace assertItemsEqual with assertCountEqual" 2 months ago
doc Switch to newer openstackdocstheme and reno versions 6 months ago
examples/pki Update hacking for Python3 8 months ago
keystoneclient Replace assertItemsEqual with assertCountEqual 4 months ago
playbooks Fix keystoneclient-devstack-functional job 2 years ago
releasenotes Switch to newer openstackdocstheme and reno versions 6 months ago
.coveragerc Updated coverage configuration file 4 years ago
.gitignore Switch to stestr 2 years ago
.gitreview OpenDev Migration Patch 1 year ago
.mailmap Add mailmap entry 6 years ago
.stestr.conf Switch to stestr 2 years ago
.zuul.yaml Add Python3 victoria unit tests 7 months ago
CONTRIBUTING.rst Use https for *.openstack.org references 3 years ago
HACKING.rst Update URLs in documents according to document migration 3 years ago
LICENSE Initial commit. 9 years ago
README.rst Replace git.openstack.org URLs with opendev.org URLs 1 year ago
babel.cfg enabling i18n with Babel 8 years ago
bindep.txt Use https for *.openstack.org references 3 years ago
lower-constraints.txt [goal] Migrate testing to ubuntu focal 3 months ago
requirements.txt Updated from global requirements 2 years ago
setup.cfg Add py38 package metadata 7 months ago
setup.py Cleanup py27 support 7 months ago
test-requirements.txt [goal] Migrate testing to ubuntu focal 3 months ago
tox.ini Merge "Update the minversion parameter." 6 months 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()