<commit_before># pyfc4

![Travis Build](https://travis-ci.org/ghukill/pyfc4.svg?branch=master "Travis Build")

Python 3.5+ client for [Fedora Commons 4.7+ (FC4)](http://fedorarepository.org/).

## Requirements

  * Python 3.5+

## Installation

```
pip install -e .
```

## Tests

Requires `pyfc4` installed as module, and without any configuration, an instance of FC4 running at `http://localhost:8080/rest`.

```
./runtests.sh
```

## Basic Usage

Assuming an instance of FC4 at `http://localhost:8080/rest`

#### Instantiate repository handle
```
repo = Repository('http://localhost:8080/rest','username','password')
```
<commit_msg>updating readme<commit_after># pyfc4

![Travis Build](https://travis-ci.org/ghukill/pyfc4.svg?branch=master "Travis Build")

Python 3.5+ client for [Fedora Commons 4.7+](http://fedorarepository.org/).

## Requirements

  * Python 3.5+

## Installation

```
pip install -e .
```

## Tests

Requires `pyfc4` installed as module, and without any configuration, an instance of FC4 running at `http://localhost:8080/rest`.

```
./runtests.sh
```

## Basic Usage

Assuming an instance of FC4 at `http://localhost:8080/rest`

#### Instantiate repository handle
```
repo = Repository('http://localhost:8080/rest','username','password')
```

{'fraction_non_alphanumeric': 0.1719242902208202, 'fraction_numerical': 0.03706624605678233, 'mean_word_length': 4.690582959641255, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '434097', 'n_tokens_mistral': 470, 'n_tokens_neox': 426, 'n_words': 106}