Cool Pipelines Library
A simple pipeline library for chaining methods and functions.
Installation
pip install cool_pipe
Usage
For functions:
from cool_pipe import pipe_fun
@pipe_fun
def a(a_):
return a_ + 1
@pipe_fun
def b(b_):
return b_ + 2
@pipe_fun
def c(c_, t=7):
return c_ + 3 + t
result = 1 | a | b | c
print(result)
For methods:
from cool_pipe import PipeItem, PipeFinish, pipe_met
class A:
def __init__(self, num: int):
self.sum = PipeItem(num) | self.a | self.b | self.c | PipeFinish()
@pipe_met
def a(self, a_):
return a_ + 1
@pipe_met
def b(self, b_):
return b_ + 2
@pipe_met
def c(self, c_, t=5):
return c_ + 3 + t
Aobj = A(5)
print(Aobj.sum)
Metadata
Release files for cool-pipe 0.1.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 | |
|---|---|---|---|---|
| cool_pipe-0.1.0.tar.gz | 2.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cool_pipe-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.6 kB
Release files / cool_pipe-0.1.0.tar.gz
| Download URL | cool_pipe-0.1.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a4d0f887ed6d174b3cfc4878e9373b7d762f9a3ca54c5c5965ddabe2c53fc009
|
|
BLAKE2b-256 checksum How to use checksums |
96cbdd601953ce64086e94984485864f5a9364f6218054f3d7b3057733b9d89f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.9
|
Release files / cool_pipe-0.1.0-py3-none-any.whl
| Download URL | cool_pipe-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
515d26709ea6e658f5c79eb21a563b5f27a4924a7792224a6f73ffc518d90870
|
|
BLAKE2b-256 checksum How to use checksums |
c3ebe1d2ee4c6c5d18980ca5a8cb348cca8b00b8671483d52c2873d4787ab0c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.9
|
Security for cool-pipe 0.1.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.