python-keystoneclient/README.rst
Steve Martinelli ed0bed088c Add shields.io version/downloads links/badges into README.rst
add shield stats for version and downloads so users can see it
on pypi.

Change-Id: I3ba570ae02288de282283e96af32515939499f2a
2015-09-25 00:13:51 -04:00

1.9 KiB

Python bindings to the OpenStack Identity API (Keystone)

Latest Version

Downloads

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:

# use v2.0 auth with http://example.com:5000/v2.0
>>> from keystoneclient.v2_0 import client
>>> keystone = client.Client(username=USERNAME, password=PASSWORD, tenant_name=TENANT, auth_url=AUTH_URL)
>>> keystone.tenants.list()
>>> tenant = keystone.tenants.create(tenant_name="test", description="My new tenant!", enabled=True)
>>> tenant.delete()