<commit_before><h3>What</h3>

`lymp` is a library allowing you to use Python functions and objects from OCaml. It gives access to the rich ecosystem of libraries in Python. You might want to use `selenium`, `scipy`, `lxml`, `requests`, `pandas` or `matplotlib`.

You can also very easily write OCaml wrappers for Python libraries or your own modules.

Python 2 and 3 compatible.

<h3>Installation</h3>
`$ make build && make install`

Python's `bson` package is required, `opam` and the Makefile install it using `pip` and `pip3`, so you should not have to install it manually. If `python -c "import bson"` fails, you need to install `bson`, maybe using sudo on `pip` or `pip3`.

<h3>Simple example</h3>

```
$ ls
simple.ml
simple.py
```
<h4>simple.py</h4>
```python
def get_message():
	return "hi there"

def get_integer():
	return 42

def sum(a, b):
	return a + b
```
<h4>simple.ml</h4>
```ocaml<commit_msg>documentation done<commit_after><h3>What</h3>

`lymp` is a library allowing you to use Python functions and objects from OCaml. It gives access to the rich ecosystem of libraries in Python. You might want to use `selenium`, `scipy`, `lxml`, `requests`, `pandas` or `matplotlib`.

You can also very easily write OCaml wrappers for Python libraries or your own modules.

Python 2 and 3 compatible.

<h3>Installation</h3>
`$ make build && make install`

Python's `bson` package is required, `opam` and the Makefile install it using `pip` and `pip3`, so you should not have to install it manually. If `$ python -c "import bson"` fails, you need to install `bson`, maybe using sudo on `pip` or `pip3`.

<h3>Simple example</h3>

```
$ ls
simple.ml
simple.py
```
<h4>simple.py</h4>
```python
def get_message():
	return "hi there"

def get_integer():
	return 42

def sum(a, b):
	return a + b
```
<h4>simple.ml</h4>
```ocaml
{'fraction_non_alphanumeric': 0.1267142073505211, 'fraction_numerical': 0.01755348326933626, 'mean_word_length': 4.5105740181268885, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7068980', 'n_tokens_mistral': 650, 'n_tokens_neox': 610, 'n_words': 258}