Pipes for humans.
Project description
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:
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yproject-1.0.2.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file yproject-1.0.2.tar.gz
.
File metadata
- Download URL: yproject-1.0.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afad7c82a08c66692553ab4748dcf7c04d0916e1143e7381397f65e49140d327 |
|
MD5 | dac65cf8b3df8bb1ad6dab8ef566424d |
|
BLAKE2b-256 | 75060ee11721ccee91ce62b7f503e1a696a7aee8a86f92ae610c2700ce045997 |
File details
Details for the file yproject-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: yproject-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9ec1d1d45534aa717915e455c7a3c61a11556362a814a61664713f66f497da2 |
|
MD5 | c2029b377934a91f98b8286104cf630b |
|
BLAKE2b-256 | ca4bd921197b66ab52f7480a680528f7b41b22510cfaa5cb1433461501f246a5 |