Skip to main content

This repository contains minimalistic python client for Redfish API.

Quickstart

The simplest and safest way of playing with this client is to install it into dedicated virtual environment:

$ virtualenv venv && . venv/bin/activate
(venv) $ pip install redfish-client

Now we can start the interactive python interpreter and interact with the api:

(venv) $ python
>>> import redfish_client
>>> import json
>>> root = redfish_client.connect(
...   "redfish.address", "username", "password"
... )
>>> print(json.dumps(root.raw, indent=2, sort_keys=True))
{
  "@odata.context": "/redfish/v1/$metadata#ServiceRoot.ServiceRoot",
  "@odata.etag": "W/\"bb7f4494b922dde991a940cc8251e8fc\"",
  "@odata.id": "/redfish/v1",
  "@odata.type": "#ServiceRoot.v1_2_0.ServiceRoot",
  "AccountService": {
    "@odata.id": "/redfish/v1/AccountService/"
  },
  # More content here
  "UpdateService": {
    "@odata.id": "/redfish/v1/UpdateService/"
  }
}
>>> system = root.Systems.Members[0]
>>> print(json.dumps(system.raw, indent=2, sort_keys=True))
{
  "@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem",
  "@odata.etag": "W/\"788f9827a97be1a4c8cbe9c085ef4d8b\"",
  "@odata.id": "/redfish/v1/Systems/1/",
  "@odata.type": "#ComputerSystem.v1_4_0.ComputerSystem",
  # More content here
  "SystemType": "Physical",
  "UUID": "REMOVED_FROM_MOCK"
}
>>> print(system.SystemType)
Physical

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redfish-client-0.2.2.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

redfish_client-0.2.2-py2.py3-none-any.whl (13.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file redfish-client-0.2.2.tar.gz.

File metadata

  • Download URL: redfish-client-0.2.2.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for redfish-client-0.2.2.tar.gz
Algorithm Hash digest
SHA256 d82a998290521abea7e28ed6990ef8aa61c19d744d2e46c03bbf0e1510be6983
MD5 e508ff2e040a099e27bbbc87afec097c
BLAKE2b-256 435cf65b12367c5374da925b4cf51a9743f8d25ff43e64a6bbb6a79cffdac970

See more details on using hashes here.

File details

Details for the file redfish_client-0.2.2-py2.py3-none-any.whl.

File metadata

  • Download URL: redfish_client-0.2.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for redfish_client-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 28ba83f578f8d128ec9e8814c993fdc85d6898306af3a1e4b6885309da6160ad
MD5 90f0f445966c0b422556d037de3c359e
BLAKE2b-256 182be6a6798357748e1fb48c12a343f2777e13aa721e7e2535c73e176934fc4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page