Skip to main content

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.

Metadata

Release files for pyCSM 1.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyCSM 1.0.12
File Size Uploaded Provenance
pycsm-1.0.12.tar.gz 47.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyCSM 1.0.12
File Interpreter ABI Platform
pycsm-1.0.12-py3-none-any.whl Python 3 none any Details

Total release size: 103.8 kB

Release files / pycsm-1.0.12.tar.gz

Download URL pycsm-1.0.12.tar.gz
Size 47.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cf8ed608f18bdbed56f5d4b0735aed6086f80e5eb8a22940dbfc7e2de56c9df5
BLAKE2b-256 checksum
How to use checksums
40b5ab3701cc1799ce23aa042673cb0a53ce5120f21a997eab8d0368f0f326df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","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}

Release files / pycsm-1.0.12-py3-none-any.whl

Download URL pycsm-1.0.12-py3-none-any.whl
Size 56.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
496f9105bf2c3b72f3de997d3cb44e5b67be8bdc1b217696dbaedbb6abb5e672
BLAKE2b-256 checksum
How to use checksums
891e1338fe0b769dbfd1db2bdb6140c245930777a5a52919d1c042a994e0b64c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","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}

Security for pyCSM 1.0.12

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.

Release history Release notifications | RSS feed

This release

1.0.12 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page