composetools
A library of utility functions for Pythonic function composition.
Most utilities are focused on transforming and dealing with iterables.
Install
pip install composetools
Functions
-
composeCompose functions such that
compose(f, g)(x)is equivalent tog(f(x)) -
pipeCompose functions such that
pipe(f, g)(x)is equivalent tof(g(x))
Utilities
unique- Yield unique items of an iterable.each- Curriedmap.keep- Curriedfilter.mask- Currieditertools.compress.drop- Currieditertools.filterfalse.sort- Curriedsorted.flat- Flatten an arbitrarily nested iterable to a desired depth.also- Call a function and return its input, eg.also(print)(4)will print 4 and return 4.
Develop
$ gh repo clone SeparateRecords/python-composetools
$ poetry install
$ poetry run python -m pytest tests.py
Licence
ISC
Metadata
Release files for composetools 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| composetools-0.5.0.tar.gz | 2.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| composetools-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / composetools-0.5.0.tar.gz
| Download URL | composetools-0.5.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0264814d8a73eb5fe8bb4fc051b02dc1bea59f68f9d8b4ab7a73fdfb8d5ee210
|
|
BLAKE2b-256 checksum How to use checksums |
754092911a83a990636d95b5bf887e7647a707c81ba760a0d0a35c6cfe032817
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.3 CPython/3.8.5 Windows/10
|
Release files / composetools-0.5.0-py3-none-any.whl
| Download URL | composetools-0.5.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6fec6dba598593d7901feaf8218078fd1fab10efc150fa72011e171f37445537
|
|
BLAKE2b-256 checksum How to use checksums |
07a42c147b54eb13f5536cc46a0b1533d54a10c20c073f0cefc033b49a216244
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.3 CPython/3.8.5 Windows/10
|
Security for composetools 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.