<commit_before>oi
==
python library for writing long running processes with a cli interface

[![Build Status](https://travis-ci.org/walkr/oi.svg?branch=master)](https://travis-ci.org/walkr/oi)

![oi image](http://i.imgur.com/0N26Eq7.jpg)



### Usage


####1. Write your long running program

```python
# programd.py

import oi

program = oi.Program('my program', 'ipc:///tmp/program.sock')
program.add_command('ping', lambda p: 'pong')
program.add_command('state', lambda p: p.state)
program.run()  # program will run forever
```
<commit_msg>Fix image<commit_after>oi
==
python library for writing long running processes with a cli interface

[![Build Status](https://travis-ci.org/walkr/oi.svg?branch=master)](https://travis-ci.org/walkr/oi)

![oi image](http://i.imgur.com/iH08GNq.png)



### Usage


####1. Write your long running program

```python
# programd.py

import oi

program = oi.Program('my program', 'ipc:///tmp/program.sock')
program.add_command('ping', lambda p: 'pong')
program.add_command('state', lambda p: p.state)
program.run()  # program will run forever
```

{'fraction_non_alphanumeric': 0.1756007393715342, 'fraction_numerical': 0.0073937153419593345, 'mean_word_length': 4.82258064516129, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '7600750', 'n_tokens_mistral': 388, 'n_tokens_neox': 375, 'n_words': 89}