Skip to main content

Veeam backup API Client

Project description

Veeam Client

Veeam Rest API Client or wrapper to make it easier to interact with the Veeam API.

The Veeam API documentation

Installation

pip install veeam

Usage

from veeam.client import VeeamClient

client = VeeamClient()

Supply your own session

Ensure the url ends in /api

from veeam.client import VeeamClient 
from requests import Session 

session = Session()
session.headers.update({'token': 'ABCDE'}) 

client = VeeamClient(
    url='https://api.veeam.example/api', 
    veeam_username='admin', 
    veeam_password='pazzw0rd', 
    session=session
)

Uploading to Pypi

Make sure to bump the version in setup.py

Create the dist and build folders

python setup.py sdist bdist_wheel

Upload to test pypi

twine upload --repository testpypi dist/*

Upload to real pypi

twine upload --repository pypi dist/*

Testing the Library

You can use the package from the test pypi with:

pip install -i https://test.pypi.org/simple/ veeam

Running Tests

pytest

Contributing

...

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

veeam-0.1.5.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

veeam-0.1.5-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

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