2a70e6e765
Some big changes here: Rename connection.py to server.py Refactor about half of server.py into a new types.py module which builds classes for each resource type, and auto-builds links to fetch sub-resources from each type. Add examples/walk-chassis.py to demonstrate how to use the Root and Chassis classes to walk all the objects returned from /rest/v1/chassis/ Import oslo_log and start using it (more to do here, it's not working quite yet). |
||
---|---|---|
doc/source | ||
examples | ||
redfish | ||
.coveragerc | ||
.gitattributes | ||
.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 |
python-redfish
This repository will be used to house the Redfish python library, a reference implementation to enable Python developers to communicate with the Redfish API (http://www.redfishspecification.org/).
NOTE:
DRAFT - WORK IN PROGRESS
The current Redfish specification revsion is 0.91 - anything and everything
in this library is subject to change until the DMTF ratifies the Redfish API
standard v1.0.
Project Structure
This project follows the same convention as OpenStack projects, eg. using pbr for build and test automation:
doc/ # documentation
doc/source # the doc source files live here
doc/build/html # output of building any docs will go here
examples/ # any sample code using this library, eg. for education
# should be put here
redfish/ # the redfish library
redfish/tests/ # python unit test suite
Requirements
To use the enclosed examples, you will need Python 2.7 (https://www.python.org/downloads/). Note that Python 2.7.9 enforces greater SSL verification requiring server certificates be installed. Parameters to relax the requirements are available in the library, but these configurations are discouraged due to sec
Python requirements are listed in requirements.txt; additional requirements for running the unit test suite are listed in test-requirements.txt.
Developer setup
To initialize a local development environment (eg, so you can run unit tests) you should run the following commands:
Further References
- The data model documentation can be found here:
-
http://www.redfishspecification.org/redfish-data-model-and-schema/
- The overall protocol documentation can be found here: