Metadata-Version: 2.1
Name: yproject
Version: 1.0.0
Summary: Pipes for humans.
Author-email: Ben Karcher <s6bkarc@uni-bonn.de>, wbrandon@csail.mit.edu, bdrisc@cs.stanford.edu, fydai@berkeley.edu, Lukas Sabatschus <lus@wallpen.com>, Ethan Smith <ethan@python.org>
Project-URL: Homepage, https://y-project.dev
Project-URL: Issues, https://github.com/the-y-project/y/issues
Description-Content-Type: text/markdown
License-File: LICENSE

![y](https://avatars.githubusercontent.com/u/133489024?s=50)

---

This package brings Haskell's well-loved applicative functor interface to Python in the important special case of the _identity applicative_. This allows you to write code like the following:

```python
from yproject import y
from matplotlib import pyplot as plt
import numpy as np

y / np.random.random([1000, 1000]) /\
    np.average @ {'axis': 0} /\
    plt.hist @ {'bins': 100, 'range': (0.45, 0.55)} %\
    np.reshape * (4, -1) /\
    np.average @ {'axis': 0} /\
    np.histogram @ {'bins': 100, 'range': (0.45, 0.55)} /\
    (lambda x: x[0]) /\
    np.multiply * 4 /\
    (lambda y, x: plt.plot(x, y)) * np.linspace(0.45, 0.55, 100) %\
    ...
plt.show()
```

![demo](assets/demo.png)
