1d05878fd7
When no headers are set on a Container.create, we end up attempting to send `None` through to the various lower levels, and they depend on being able to set things like the token on the headers that get sent through. If `attrs` sent into both Container.create and Container.update don't actually contain any headers, put an empty dictionary in place of them. Change-Id: Iea050976d86a12d7b78245147d3560b188c8a584 |
||
---|---|---|
doc | ||
examples | ||
openstack | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.testr.conf | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
babel.cfg | ||
fixgates.txt | ||
openstack-common.conf | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
OpenStack Python SDK
The python-openstacksdk
is a collection of libraries for
building applications to work with OpenStack clouds. The project aims to
provide a consistent and complete set of interactions with OpenStack's
many services, along with complete documentation, examples, and
tools.
This SDK is under active development, and in the interests of providing a high-quality interface, the APIs provided in this release may differ from those provided in future release.
Usage
The following example simply connects to an OpenStack cloud and lists the containers in the Object Store service.:
from openstack import connection
conn = connection.Connection(auth_url="http://openstack:5000/v3",
project_name="big_project",
username"SDK_user",
password="Super5ecretPassw0rd")
for container in conn.object_store.containers():
print(container.name)
Documentation
Documentation is available at http://python-openstacksdk.readthedocs.org/en/latest/
Requirements
- Python 2.6+, Python 3.3+
- pbr
- requests
- six
- stevedore
- oslo.utils
License
Apache 2.0