Skip to main content

A client for SPP

Project description

# sppclient

sppclient is a Python module that aims to simplify interaction with SPP’s REST API.

This module can be used for automation of testing procedures or tasks on the SPP appliance

The module is registered on PyPI and can be installed with:

$ pip install sppclient

# Usage

When writing a script using sppclient import with:

import spplib.sdk.client as client

To create a session object:

session = client.SppSession(“sppHost”, “sppUsername”, “sppPassword”)

session.login()

To interact with SPP API:

client.SppAPI(session, ‘resource_endpoint’).get()

# Sample commands to run included sample scripts.

$ python3 script.py -h (This command provides a list of input parameters needed to run the script)

$ python3 createsite.py –host=”https://x.x.x.x:8443” –user=”admin” –pass=”password” –sitename=”samplesite” –sitedesc=”This is a sample site”

$ python3 runjob.py –host=”https://x.x.x.x:8443” –user=”admin” –pass=”password” –jobname=”samplejob”

<sub>All materials are provided for informational purposes only and officially not supported, and is provided AS IS without warranty of any kind, express or implied. IBM shall not be responsible for any damages arising out of the use of, or otherwise related to, these materials. Nothing contained in these materials is intended to, nor shall have the effect of, creating any warranties representations from IBM or its suppliers or licensors, or altering the terms and conditions of the applicable license agreement governing the use of IBM software.</sub>

Project details


Release history Release notifications | RSS feed

This version

0.55

Download files

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

Source Distribution

spplib-0.55.tar.gz (13.1 kB view details)

Uploaded Source

File details

Details for the file spplib-0.55.tar.gz.

File metadata

  • Download URL: spplib-0.55.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for spplib-0.55.tar.gz
Algorithm Hash digest
SHA256 45721ab5b8ad094b18a002a9013b3f18b3145961022e70e6b8ba787f6c156241
MD5 59ff470168d121c39d3add277466fafd
BLAKE2b-256 8d3aaf0a5ef9825f7e820fd03e47ebef929f7344b3123a976f009148d25d58b2

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