This library provides a Python interface to the Aptly API
- requests >= 2.4.3
From PyPI:
pip install pyptly
Or you may use git to clone the repository from Github and install it manually:
python setup.py install
To build debian package run:
dpkg-buildpackage -us -uc
import pyptly
from requests.auth import HTTPBasicAuth
auth = HTTPBasicAuth('user', 'pass')
api = pyptly.Aptly('http://127.0.0.1:8080', auth=auth)
api.aptly_version
{u'Version': u'0.9.7'}