98 lines
3.6 KiB
Plaintext
98 lines
3.6 KiB
Plaintext
Metadata-Version: 2.1
|
|
Name: python-keystoneclient
|
|
Version: 5.1.0
|
|
Summary: Client Library for OpenStack Identity
|
|
Home-page: https://docs.openstack.org/python-keystoneclient/latest/
|
|
Author: OpenStack
|
|
Author-email: openstack-discuss@lists.openstack.org
|
|
License: UNKNOWN
|
|
Platform: UNKNOWN
|
|
Classifier: Environment :: OpenStack
|
|
Classifier: Intended Audience :: Information Technology
|
|
Classifier: Intended Audience :: System Administrators
|
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
Classifier: Operating System :: POSIX :: Linux
|
|
Classifier: Programming Language :: Python
|
|
Classifier: Programming Language :: Python :: 3
|
|
Classifier: Programming Language :: Python :: 3.8
|
|
Classifier: Programming Language :: Python :: 3.9
|
|
Requires-Python: >=3.8
|
|
Requires-Dist: debtcollector (>=1.2.0)
|
|
Requires-Dist: keystoneauth1 (>=3.4.0)
|
|
Requires-Dist: oslo.config (>=5.2.0)
|
|
Requires-Dist: oslo.i18n (>=3.15.3)
|
|
Requires-Dist: oslo.serialization (!=2.19.1,>=2.18.0)
|
|
Requires-Dist: oslo.utils (>=3.33.0)
|
|
Requires-Dist: packaging (>=20.4)
|
|
Requires-Dist: pbr (!=2.1.0,>=2.0.0)
|
|
Requires-Dist: requests (>=2.14.2)
|
|
Requires-Dist: six (>=1.10.0)
|
|
Requires-Dist: stevedore (>=1.20.0)
|
|
Requires-Dist: importlib-metadata (>=1.7.0) ; (python_version<'3.8')
|
|
|
|
========================
|
|
Team and repository tags
|
|
========================
|
|
|
|
.. image:: https://governance.openstack.org/tc/badges/python-keystoneclient.svg
|
|
:target: https://governance.openstack.org/tc/reference/tags/index.html
|
|
|
|
.. Change things from this point on
|
|
|
|
Python bindings to the OpenStack Identity API (Keystone)
|
|
========================================================
|
|
|
|
.. image:: https://img.shields.io/pypi/v/python-keystoneclient.svg
|
|
:target: https://pypi.org/project/python-keystoneclient/
|
|
:alt: 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`_.
|
|
|
|
* `PyPi`_ - package installation
|
|
* `Online Documentation`_
|
|
* `Launchpad project`_ - release management
|
|
* `Blueprints`_ - feature specifications
|
|
* `Bugs`_ - issue tracking
|
|
* `Source`_
|
|
* `Specs`_
|
|
* `How to Contribute`_
|
|
* `Release Notes`_
|
|
|
|
.. _PyPi: https://pypi.org/project/python-keystoneclient
|
|
.. _Online Documentation: https://docs.openstack.org/python-keystoneclient/latest/
|
|
.. _Launchpad project: https://launchpad.net/python-keystoneclient
|
|
.. _Blueprints: https://blueprints.launchpad.net/python-keystoneclient
|
|
.. _Bugs: https://bugs.launchpad.net/python-keystoneclient
|
|
.. _Source: https://opendev.org/openstack/python-keystoneclient
|
|
.. _OpenStackClient: https://pypi.org/project/python-openstackclient
|
|
.. _How to Contribute: https://docs.openstack.org/infra/manual/developers.html
|
|
.. _Specs: https://specs.openstack.org/openstack/keystone-specs/
|
|
.. _Release Notes: https://docs.openstack.org/releasenotes/python-keystoneclient
|
|
|
|
.. contents:: Contents:
|
|
:local:
|
|
|
|
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()
|
|
|
|
|
|
|