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
2014-11-13 07:32:44 -07:00
2014-11-13 07:32:44 -07:00
2014-04-21 09:31:52 -06:00
2014-10-07 16:03:53 -06:00
2014-06-16 14:03:30 -07: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

Description
Unified SDK for OpenStack
Readme 80 MiB
Languages
Python 99.9%