Skip to main content

CSM Python Client

Project description

CSM Python Client

Build Status Documentation Status CII Best Practices

This repository contains the IBM Python client for RESTful communication to an IBM Copy Services Manager server. The Python client enables full management and monitoring of the replication and the components necessary for replication in a Copy Services Manager environment.

The repository provides two options for implementations.

  • Clients - The client classes are session_client.py, hardware_client.py, and system_client.py. These classes are designed to automatically obtain and manage a token to CSM for communication. A client class can be instantiated and then used to call the methods that perform the desired actions.
  • Services - The service classes are located under session_service, hardware_service, and system_service and can be used if the caller wishes to manage the connection and token themselves. These are the same classes that are called from the client classes.

Python Compatibility

The content in this collection supports Python 3.6 and higher

Installation

Communication to the Copy Services Manager server uses the RESTful interface and thus does not require an installation of client code.
Clone the repository, and then add it to your PYTHONPATH directory. The Python client is then ready for import and use.

The pyCSM library can also be installed using pip.

pip install pyCSM

Command Documentation

All commands, their usage and their parameters are documented on read the docs.

Usage examples

See documentation for examples on read the docs.

The CSM RESTful API

Details on the CSM RESTful API used by this python library can be found in the Knowledgecenter for the product.

Contributing

To contribute to this library, please see CONTRIBUTING.md and submit a contributor license agreement for either an individual or corporation, to those listed as maintainers here.

See cla-individual.doc or cla-corporate.doc for templates of the contributor license agreement.

License

All source files must include a Copyright and License header.

#
# (c) Copyright contributors to the pyCSM project
#

This project is licensed under the Apache License 2.0. Click here to obtain a copy of the License.

It is a permissive license whose main conditions require preservation of copyright and license notices. Contributors provide an express grant of patent rights. Licensed works, modifications, and larger works may be distributed under different terms and without source code.

The examples are provided for tutorial purposes only. A complete handling of error conditions has not been shown or attempted, and the programs have not been submitted to formal IBM testing. The programs are distributed on an 'AS IS' basis without any warranties either expressed or implied.

If you would like to see the detailed LICENSE click here.

Project details


Download files

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

Source Distribution

pycsm-1.0.8.tar.gz (43.5 kB view details)

Uploaded Source

Built Distribution

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

pycsm-1.0.8-py3-none-any.whl (53.8 kB view details)

Uploaded Python 3

File details

Details for the file pycsm-1.0.8.tar.gz.

File metadata

  • Download URL: pycsm-1.0.8.tar.gz
  • Upload date:
  • Size: 43.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pycsm-1.0.8.tar.gz
Algorithm Hash digest
SHA256 2574eac0cefe97bbdb9985fd66d5e5cdcfd88f85973f04870f8f41b891738a7f
MD5 6bf51b5e1bcdf9afc5a0146af4985f64
BLAKE2b-256 a6e86b2f1bf78ce3a4cb0f697b9d9add6184b1bb804bb89f3940b6ee45719bb0

See more details on using hashes here.

File details

Details for the file pycsm-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: pycsm-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 53.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pycsm-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5c6279e5455427f07b06fe36cc106d4a944e9af5b55094549a11386279338554
MD5 17cf2e6910100963e80fe10886b784ee
BLAKE2b-256 53c0e8a43c9827a9125ae3e3bdee9eed520466d3cdeab8e54869cffa615c9848

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 Pingdom Monitoring Sentry Error logging StatusPage Status page