<commit_before>iron_worker_python is Python language binding for IronWorker.

IronWorker is a massively scalable background processing system.
[See How It Works](http://www.iron.io/products/worker/how)

# Getting Started


## Get credentials
To start using iron_worker_php, you need to sign up and get an oauth token.

1. Go to http://iron.io/ and sign up.
2. Get an Oauth Token at http://hud.iron.io/tokens

## Install iron_worker_python
Just copy ```iron_worker.py``` and ```poster``` and include iron_worker.py in your script:

```python
from iron_worker import *
```
## Configure
Two ways to configure IronWorker:

* Specifying options when constructing the binding:

```python
worker = IronWorker(token='<KEY>', project_id='xxxxxxxxxxx')
```

* Passing an ini file name which stores your configuration options. Rename sample_config.ini to config.ini and include your Iron.io credentials (`token` and `project_id`):

```python<commit_msg>Documentation fix<commit_after>iron_worker_python is Python language binding for IronWorker.

IronWorker is a massively scalable background processing system.
[See How It Works](http://www.iron.io/products/worker/how)

# Getting Started


## Get credentials
To start using iron_worker_python, you need to sign up and get an oauth token.

1. Go to http://iron.io/ and sign up.
2. Get an Oauth Token at http://hud.iron.io/tokens

## Install iron_worker_python
Just copy ```iron_worker.py``` and ```poster``` and include iron_worker.py in your script:

```python
from iron_worker import *
```
## Configure
Two ways to configure IronWorker:

* Specifying options when constructing the binding:

```python
worker = IronWorker(token='<KEY>', project_id='xxxxxxxxxxx')
```

* Passing an ini file name which stores your configuration options. Rename sample_config.ini to config.ini and include your Iron.io credentials (`token` and `project_id`):

```python
{'fraction_non_alphanumeric': 0.10364886303543099, 'fraction_numerical': 0.0021152829190904283, 'mean_word_length': 5.064102564102564, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '1709143', 'n_tokens_mistral': 565, 'n_tokens_neox': 536, 'n_words': 214}