Unified SDK for OpenStack
a073359178
Here is an example of a thin interface for the SDK. We aren't making any resources here, it is all dictionaries. Assuming we have a session: from openstack.network.v2 import thin requests = thin.Thin() for dictobj in requests.list_networks(session): print(dictobj['id']) Obviously, the thin layer isn't doing much, but it does provide a simple interface to access the methods. There may be cases when it would need to do more. If we go with this approach, we'd just neeed to be sure that if a resource needed special handling for an operation, we override the class method rather than the object method. Change-Id: I2b41ad64348802f6461abfd39a157e808686bb4d |
||
---|---|---|
doc | ||
examples | ||
openstack | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.testr.conf | ||
babel.cfg | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
MANIFEST.in | ||
openstack-common.conf | ||
README.rst | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
OpenStack Python SDK
python-openstacksdk
is a new Python library and SDK for
OpenStack clouds. It is very young, and not yet usable, but it's under
active development.
Our goal is to provide a Python library which is:
- Pleasant to use
- Well documented
- Complete (works with any OpenStack project)
Building Documentation
This documentation is written by contributors, for contributors.
The source is maintained in the doc/source/
folder using
reStructuredText
and built by Sphinx
To build the docs locally:
$ python setup.py build_sphinx
Results are in the doc/build/html/
directory.
Requirements
- Python 2.6+, Python 3.3+
- pbr
- requests
- iso8601
- stevedore
License
Apache 2.0