50dd5bc5d33fd71266047f9dd2d4f90bf5c91d82
Setting the Resource.page limit to None, which is how it gets used by default from Resource.list, allows it to be used directly with the same ease as Resource.list. For APIs which return lists but don't support pagination, this allows us to provide users the same iteration behavior across the board. For an example of where this comes into play, a GET on /types in the volume service returns a list of types in a single response with no pagination support. If we call Types.list(session) it will be an infinite loop. With this change, Types.page(session) allows the Type proxy to yield type objects out of that one page. Change-Id: I242a9fd0cd6d21b891d91e2fe69006a1f0ec3a15
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
Description