Unified SDK for OpenStack
Go to file
Terry Howe a073359178 Sample thin interface
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
2014-11-13 07:32:44 -07:00
doc Merge "Move examples service filter to code" 2014-11-11 20:53:16 +00:00
examples Sample thin interface 2014-11-13 07:32:44 -07:00
openstack Sample thin interface 2014-11-13 07:32:44 -07:00
.coveragerc setting up the initial layout; move the api proposals to api_strawman 2014-01-24 22:58:25 -06:00
.gitignore Add .venv to .gitignore 2014-04-21 09:31:52 -06:00
.gitreview Made tox -e pep8 passed. Also made git review work 2014-01-28 09:20:44 -08:00
.mailmap setting up the initial layout; move the api proposals to api_strawman 2014-01-24 22:58:25 -06:00
.testr.conf setting up the initial layout; move the api proposals to api_strawman 2014-01-24 22:58:25 -06:00
babel.cfg setting up the initial layout; move the api proposals to api_strawman 2014-01-24 22:58:25 -06:00
CONTRIBUTING.rst setting up the initial layout; move the api proposals to api_strawman 2014-01-24 22:58:25 -06:00
HACKING.rst setting up the initial layout; move the api proposals to api_strawman 2014-01-24 22:58:25 -06:00
LICENSE setting up the initial layout; move the api proposals to api_strawman 2014-01-24 22:58:25 -06:00
MANIFEST.in setting up the initial layout; move the api proposals to api_strawman 2014-01-24 22:58:25 -06:00
openstack-common.conf Use the now graduated oslo.utils 2014-10-07 12:00:57 -07:00
README.rst Update README requirements 2014-10-07 16:03:53 -06:00
requirements.txt Updated from global requirements 2014-10-27 12:22:50 +00:00
setup.cfg Use stevedore to load authorization plugins 2014-10-06 10:06:09 -06:00
setup.py Synced from global-requirements 2014-06-16 14:03:30 -07:00
test-requirements.txt Updated from global requirements 2014-11-08 14:26:15 +00:00
tox.ini Reverse order of tests to avoid incompatibility 2014-10-17 14:45:52 +00:00

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