All Projects → zhmcclient → python-zhmcclient

zhmcclient / python-zhmcclient

Licence: Apache-2.0 License
A pure Python client library for the IBM Z HMC Web Services API.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to python-zhmcclient

p3270
A python library to take control of remote IBM hosts
Stars: ✭ 32 (+39.13%)
Mutual labels:  mainframe
mcmc
A C++ library of Markov Chain Monte Carlo (MCMC) methods
Stars: ✭ 108 (+369.57%)
Mutual labels:  hmc
l2hmc-qcd
Application of the L2HMC algorithm to simulations in lattice QCD.
Stars: ✭ 33 (+43.48%)
Mutual labels:  hmc
cobrix
A COBOL parser and Mainframe/EBCDIC data source for Apache Spark
Stars: ✭ 109 (+373.91%)
Mutual labels:  mainframe
banking-digitalization-using-hybrid-cloud-with-mainframes
The following journey will introduce the available Banking APIs published on IBM Cloud with logical business programs running on the IBM Z Mainframe through a simulated retail bank called MPLbank.
Stars: ✭ 21 (-8.7%)
Mutual labels:  mainframe
LatticeQCD.jl
A native Julia code for lattice QCD with dynamical fermions in 4 dimension.
Stars: ✭ 85 (+269.57%)
Mutual labels:  hmc
oec
IBM 3270 terminal controller - a replacement for the IBM 3174
Stars: ✭ 29 (+26.09%)
Mutual labels:  mainframe
sample-spring-boot-api-service
Zowe REST API service SDK and sample API service that integrates with Zowe API Mediation Layer
Stars: ✭ 26 (+13.04%)
Mutual labels:  mainframe
coax
Tools for connecting to real IBM 3270 type terminals
Stars: ✭ 29 (+26.09%)
Mutual labels:  mainframe
hyperion
The SoftDevLabs (SDL) version of the Hercules 4.x Hyperion System/370, ESA/390, and z/Architecture Emulator
Stars: ✭ 149 (+547.83%)
Mutual labels:  mainframe
Robot-Framework-Mainframe-3270-Library
Altran developed and open source a test library for Robot Framework to enable to create automated test scripts to test IBM Mainframe 3270.
Stars: ✭ 36 (+56.52%)
Mutual labels:  mainframe
Awesome-Mainframes
Awesome list of mainframe related resources & projects
Stars: ✭ 31 (+34.78%)
Mutual labels:  mainframe

zhmcclient - A pure Python client library for the IBM Z HMC Web Services API

Version on Pypi Actions status ReadTheDocs status Coveralls status CodeClimate status

Overview

The zhmcclient package is a client library written in pure Python that interacts with the Web Services API of the Hardware Management Console (HMC) of IBM Z or LinuxONE machines. The goal of this package is to make the HMC Web Services API easily consumable for Python programmers.

The HMC Web Services API is the access point for any external tools to manage the IBM Z or LinuxONE platform. It supports management of the lifecycle and configuration of various platform resources, such as partitions, CPU, memory, virtual switches, I/O adapters, and more.

The zhmcclient package encapsulates both protocols supported by the HMC Web Services API:

  • REST over HTTPS for request/response-style operations driven by the client. Most of these operations complete synchronously, but some long-running tasks complete asynchronously.
  • JMS (Java Messaging Services) for notifications from the HMC to the client. This can be used to be notified about changes in the system, or about completion of asynchronous tasks started using REST.

Installation

The quick way:

$ pip install zhmcclient

For more details, see the Installation section in the documentation.

Quickstart

The following example code lists the machines (CPCs) managed by an HMC:

#!/usr/bin/env python

import zhmcclient
import requests.packages.urllib3
requests.packages.urllib3.disable_warnings()

# Set these variables for your environment:
hmc_host = "<IP address or hostname of the HMC>"
hmc_userid = "<userid on that HMC>"
hmc_password = "<password of that HMC userid>"

session = zhmcclient.Session(hmc_host, hmc_userid, hmc_password)
client = zhmcclient.Client(session)

cpcs = client.cpcs.list()
for cpc in cpcs:
    print(cpc)

Possible output when running the script:

Cpc(name=P000S67B, object-uri=/api/cpcs/fa1f2466-12df-311a-804c-4ed2cc1d6564, status=service-required)

Documentation and Change Log

For the latest released version on PyPI:

zhmc CLI

Before version 0.18.0 of the zhmcclient package, it contained the zhmc CLI. Starting with zhmcclient version 0.18.0, the zhmc CLI has been moved from this project into the new zhmccli project.

If your project uses the zhmc CLI, and you are upgrading the zhmcclient package from before 0.18.0 to 0.18.0 or later, your project will need to add the zhmccli package to its dependencies.

Contributing

For information on how to contribute to this project, see the Development section in the documentation.

License

The zhmcclient package is licensed under the Apache 2.0 License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].