python-ibmcclient is a Python library to communicate with HUAWEI iBMC based systems.
The goal of the library is to be extremely simple, small, have as few dependencies as possible and be very conservative when dealing with BMCs by access HTTP REST API provided by HUAWEI iBMC based systems.
Currently, the scope of the library has been limited to supporting OpenStack Ironic ibmc driver
Requirements
Python 2.7 and 3.4+
Installation
From PyPi:
$ pip install python-ibmcclient
or
$ easy_install python-ibmcclient
Or from source:
$ python setup.py install
Getting Started
Please follow the Installation and then run the following:
from __future__ import print_function
from pprint import pprint
import ibmc_client
from ibmc_client import constants
# ibmc server
address = "https://example.ibmc.com"
# credential
username = "username"
password = "password"
# disable certification verify
verify = False
with ibmc_client.connect(address, username, password, verify) as client:
# get system
system = client.system.get()
print('Power State: ')
pprint(system.power_state)
print('Boot Sequence: ')
pprint(system.boot_sequence)
print('Boot Source Override:' )
pprint(system.boot_source_override)
# reset system
client.system.reset(constants.RESET_FORCE_RESTART)
# set boot source override
client.system.set_boot_source(constants.BOOT_SOURCE_TARGET_PXE,
constants.BOOT_SOURCE_MODE_BIOS,
constants.BOOT_SOURCE_ENABLED_ONCE)
Metadata
Release files for python-ibmcclient 0.2.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-ibmcclient-0.2.5.1.tar.gz | 32.3 kB | Without provenance | Details for python-ibmcclient-0.2.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_ibmcclient-0.2.5.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for python_ibmcclient-0.2.5.1-py2.py3-none-any.whl |
Total release size: 99.8 kB
Release files / python-ibmcclient-0.2.5.1.tar.gz
| Download URL | python-ibmcclient-0.2.5.1.tar.gz |
|---|---|
| Size | 32.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c703b357f993f4ec3a3dfc2dd07f38fc2da0b94a8baa694d83450932d222ec1
|
|
BLAKE2b-256 checksum How to use checksums |
5acf90b37bb162ea3cb0e1d367b907b6d830ed5ee05d503e4c33e47e87aabd36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4
|
Release files / python_ibmcclient-0.2.5.1-py2.py3-none-any.whl
| Download URL | python_ibmcclient-0.2.5.1-py2.py3-none-any.whl |
|---|---|
| Size | 67.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a96f92f3da8f97c83d9ad90ab64a11b9fa245bb8c29a296cde019da9818b8c89
|
|
BLAKE2b-256 checksum How to use checksums |
919144df56fe93852e5511db1a5c9550aa89dd26170134dd7e0a48a81190e242
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4
|
Security for python-ibmcclient 0.2.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.