f6b9aaa983ca8c855b2a2611852b5f805596e4f7
This change provides a default user-agent with more information and adjusts the handling of user-agent arguments to fall in line with RFC 7231 Section 5.5.3. We now specify the package name and version for the SDK as well as the Python implementation and version as the default. From there, a user can specify their application name and version but it does not replace the overall user-agent. As the RFC states, product/version pairs are listed in decreasing order, so anything the user specifies is prepended to whatever string is currently set for that Transport instance. If headers are passed in to a Transport.request method which carry a `User-Agent`, they are used as-is unless the caller also specified a `user_agent` parameter. This change simplifies the tests slightly without reducing any coverage. Change-Id: I80ca26fff3f2522b8232472676396abb86166f91
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