Python wrapper for Commvault api
Project description
pinkopy
=======
[![Build Status](https://travis-ci.org/theherk/pinkopy.svg)](https://travis-ci.org/theherk/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">
=======
[![Build Status](https://travis-ci.org/theherk/pinkopy.svg)](https://travis-ci.org/theherk/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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pinkopy-1.1.0.tar.gz
(6.5 kB
view hashes)