No project description provided
Project description
Salish is a workflow management library named after the Salish Sea.
Example:
from channels import *
import itertools
def display1(item):
print("Display1:", item)
return item, item
def display2(item1, item2):
print("Display2:", item1, item2)
return {"item1": item1, "item2": item2}
def display3(item1, item2):
print("Display3:", item1, item2)
return item1 + item2
def combinations(items):
yield from itertools.combinations(items, 2)
pipeline = Channel([1, 2, 3]) | display1 | Bind(display2, how="*") | Bind(display3, how="**") | Bind(combinations, how="collect") | display1
pipeline.join()
Output:
Display1: 1
Display1: 2
Display1: 3
Display2: 1 1
Display2: 2 2
Display2: 3 3
Display3: 1 1
Display3: 2 2
Display3: 3 3
Display1: (2, 4)
Display1: (2, 6)
Display1: (4, 6)
Objects:
Channel:
Caller
Bind
ReactiveBinding
ChannelIterator
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
salish-0.1.0.tar.gz
(2.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file salish-0.1.0.tar.gz.
File metadata
- Download URL: salish-0.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca738485cec6f8cc202c753b945aee6528ffb7fa0c589b32f032a7b74d830720
|
|
| MD5 |
09edca3d7d43d3f042a3596b479d7b8b
|
|
| BLAKE2b-256 |
1c05ef2d294711074abc7f3e230d55cf7c8264d1f71a6d77b8292d1942b44385
|
File details
Details for the file salish-0.1.0-py3-none-any.whl.
File metadata
- Download URL: salish-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d91b3f0fe19a1b632e0517a5ff3eb3a966d99aaf8c2333c3cfec4f6b5d970488
|
|
| MD5 |
a3fa910be6637fe976bc1650a7e5e300
|
|
| BLAKE2b-256 |
ae320b6556478e078d32a3b9cf9ebccf737919ad4101547229397f22e89c01b9
|