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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file veeam-0.1.5.tar.gz.

File metadata

  • Download URL: veeam-0.1.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for veeam-0.1.5.tar.gz
Algorithm Hash digest
SHA256 023513ea4c846bef276e4cf36d5d72577e9464ab47eba3393a3ad699d38003da
MD5 42d1325900f83b5fb4c655a7329704e4
BLAKE2b-256 62ef0a13fae3612d590588a5f607d475d618c483858d81073785936cd2df52f5

See more details on using hashes here.

File details

Details for the file veeam-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: veeam-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for veeam-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 83c74ef67aaa2d35ae9118c64ec155bc3ab7cb08858d578b17cf82f6e6e66eda
MD5 c57930fe0673d9610c5f8329a9b46ce7
BLAKE2b-256 5daadce7ad2b02c8ceef826820752e033de513e25ae829f3f6941bb35f15c174

See more details on using hashes here.

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