<commit_before># Cron Descriptor

Master: [![Master Build Status](https://api.travis-ci.org/Salamek/cron-descriptor.svg?branch=master)](https://travis-ci.org/Salamek/cron-descriptor) All: [![Build Status](https://api.travis-ci.org/Salamek/cron-descriptor.svg)](https://travis-ci.org/Salamek/cron-descriptor)

A Python library that converts cron expressions into human readable strings. Ported to Python from https://github.com/bradyholt/cron-expression-descriptor.

**Author**: <NAME> (https://www.salamek.cz)  
**Original Author & Credit**: <NAME> (http://www.geekytidbits.com)  
**License**: [MIT](http://opensource.org/licenses/MIT)

## Features         
 * Supports all cron expression special characters including * / , - ? L W, #
 * Supports 5, 6 (w/ seconds or year), or 7 (w/ seconds and year) part cron expressions
 * Provides casing options (Sentence, Title, Lower, etc.)
 * Localization with support for 12 languages

## Installation
Using PIP
```bash
pip install cron_descriptor
```

## Usage example

```python
# Simple
from cron_descriptor import GetDescription, ExpressionDescriptor

print(GetDescription("* 2 3 * *"))

#OR

print(str(ExpressionDescriptor("* 2 3 * *")))
```<commit_msg>Point out python2-3 support in README.md<commit_after># Cron Descriptor

Master: [![Master Build Status](https://api.travis-ci.org/Salamek/cron-descriptor.svg?branch=master)](https://travis-ci.org/Salamek/cron-descriptor) All: [![Build Status](https://api.travis-ci.org/Salamek/cron-descriptor.svg)](https://travis-ci.org/Salamek/cron-descriptor)

A Python library that converts cron expressions into human readable strings. Ported to Python from https://github.com/bradyholt/cron-expression-descriptor.

**Author**: <NAME> (https://www.salamek.cz)  
**Original Author & Credit**: <NAME> (http://www.geekytidbits.com)  
**License**: [MIT](http://opensource.org/licenses/MIT)

## Features         
 * Supports all cron expression special characters including * / , - ? L W, #
 * Supports 5, 6 (w/ seconds or year), or 7 (w/ seconds and year) part cron expressions
 * Provides casing options (Sentence, Title, Lower, etc.)
 * Localization with support for 12 languages
 * Supports Python 2.7 - 3.4

## Installation
Using PIP
```bash
pip install cron_descriptor
```

## Usage example

```python
# Simple
from cron_descriptor import GetDescription, ExpressionDescriptor

print(GetDescription("* 2 3 * *"))

#OR

print(str(ExpressionDescriptor("* 2 3 * *")))
```
{'fraction_non_alphanumeric': 0.15052888527257932, 'fraction_numerical': 0.009764035801464606, 'mean_word_length': 4.772300469483568, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 12, 'lorem ipsum': 0, 'www.': 4, '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': '2291070', 'n_tokens_mistral': 810, 'n_tokens_neox': 757, 'n_words': 205}