Skip to content
forked from theherk/pinkopy

pinkopy is a Python wrapper for the Commvault api.

License

Notifications You must be signed in to change notification settings

pselamy/pinkopy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pinkopy

Build Status

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 [email protected]:theherk/pinkopy.git
pip install pinkopy

Usage

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)

Contribution

Please do contribute to this repository. It currently only supports a small set of the api provided by Commvault. However, if you do contribute, please follow these guidelines.

Guidelines

  • Use Gitflow. Your pull requests must come from a Gitflow branch.
    • feature/yourfeature
    • bugfix/issuenumber
  • ONLY imperative commit messages. Line one is one imperative, brief sentence. Following lines may have more details.
  • Builds must pass (which should be pretty easy right now, since there are no tests).
  • Never commit binary files.
  • Make sure you are committing with your Github user.

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.

Pinkie Pie

About

pinkopy is a Python wrapper for the Commvault api.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%