rmalleman / pyptly

A Python wrapper around the Aptly API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Python wrapper around the Aptly API

License:MIT License


Languages

Language:Python 100.0%