Compositions
A package to introduce composable structures to python
Installation
pip install Compositions
Github Repository
Usage
from compositions.compositions import Compose
# Declare a composable function
@Compose
def f(x):
return x
# Declare a composable function
@Compose
def g(x):
return x**2 + x**3
print(g(3))
print(f(4))
# f(g(x))
print( (g*f)(3) )
Metadata
Release files for Compositions 1.0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Compositions-1.0.2.1.tar.gz | 1.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Compositions-1.0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.9 kB
Release files / Compositions-1.0.2.1.tar.gz
| Download URL | Compositions-1.0.2.1.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
288df6823c278f5ae21be6b489d7eb0b027632531eb92ad2f00cd74d54972231
|
|
BLAKE2b-256 checksum How to use checksums |
7347c8f55250af1b91542531ca7a0c8fb9c76bde3400340bb20db5ded06d8048
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / Compositions-1.0.2.1-py3-none-any.whl
| Download URL | Compositions-1.0.2.1-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
456f100e81ba07ce764e66187958bcf41acd7786cdd25574c1b0a8293c392a3f
|
|
BLAKE2b-256 checksum How to use checksums |
dd92e3276426d3793ff934ce9bae61b8ee609d47626ac31aa8daac8b7c26314f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|