skip to navigation
skip to content

python-keystoneclient 3.9.0

Client Library for OpenStack Identity

Python bindings to the OpenStack Identity API (Keystone)

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()
 
File Type Py Version Uploaded on Size
python-keystoneclient-3.9.0.tar.gz (md5) Source 2017-01-12 291KB
python_keystoneclient-3.9.0-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2017-01-12 360KB