<commit_before>[![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<commit_msg>add Basic Usage to README<commit_after>[![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

### Basic Usage:

    api = pyptly.Aptly("http://127.0.0.1:8080")
    api.aptly_version()
    {u'Version': u'0.9.7'}
{'fraction_non_alphanumeric': 0.15931034482758621, 'fraction_numerical': 0.01310344827586207, 'mean_word_length': 4.735177865612648, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2159180', 'n_tokens_mistral': 554, 'n_tokens_neox': 521, 'n_words': 96}