Skip to main content

Python wrapper for Commvault api

Project description

pinkopy
=======

pinkopy is a Python wrapper for the Commvault api. Of course it does very little initially, but there is no reason to duplicate work across projects.

Installation
------------

git clone git@github.com:theherk/pinkopy.git
pip install pinkopy

Usage
-----

```python
from pinkopy import CommvaultSession

config = {
'service': 'service url',
'user': 'username',
'pw': 'password'
}

with CommvaultSession(**config) as s:
client_jobs = s.get_jobs('1234', job_filter="Backup")
cust_jobs = s.get_subclient_jobs(client_jobs, '12345678', last=3)
# multi status
for job in cust_jobs:
job_id = job['jobSummary']['@jobId']
job_details = s.get_job_details('1234', job_id)
job_vmstatus = s.get_job_vmstatus(job_details)
```

#### Name

The name was originally going to be commpy, but then I liked commiepy. From here it was only a small leap to pinkopy, a tribute to a dear friend of mine.

<img src="http://i.imgur.com/gAs94pn.png" alt="Pinkie Pie" width="200">

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

pinkopy-0.1.2.tar.gz (5.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page