Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/niknozhenko/pyptly

A Python wrapper around the Aptly API
https://github.com/niknozhenko/pyptly

aptly debian debian-packages pyptly python ubuntu

Last synced: 6 days ago
JSON representation

A Python wrapper around the Aptly API

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/repelista/pyptly.svg?branch=master)](https://travis-ci.org/repelista/pyptly)
[![Coverage Status](https://coveralls.io/repos/github/repelista/pyptly/badge.svg?branch=master)](https://coveralls.io/github/repelista/pyptly?branch=master)
[![PyPI](https://img.shields.io/pypi/v/pyptly.svg)](https://pypi.python.org/pypi/pyptly)

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