Skip to content

niknozhenko/pyptly

Repository files navigation

Build Status Coverage Status PyPI

pyptly

This library provides a Python interface to the Aptly API

Dependencies:

  • requests >= 2.4.3

Installation:

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

Basic Usage:

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'}