Veeam Rest API Client or wrapper to make it easier to interact with the Veeam API.
pip install veeam
from veeam.client import VeeamClient
client = VeeamClient()
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
)
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/*
You can use the package from the test pypi with:
pip install -i https://test.pypi.org/simple/ veeam
pytest
...