Experiment in typed pipelining of data between python, shell and various data sources and sinks.
Project description
slonk
Experiment in typed pipelining of data between python, shell and various data sources and sinks.
# Create a pipeline
pipeline = (
Slonk()
| ExampleModel # Automatically wraps ExampleModel with SQLAlchemyHandler, does this by noticing DeclarativeBase type
| "grep Hello" # Shell command to filter records, shelling out assumed on non path strings, otherwise IO assumed and sink context anywhere other than the head of the pipeline
| tee("./file.csv") # Tee to a local path, but could be anything
# Forks pipeline to handle both destinations
| "s3://my-bucket/my-file.txt" # Tee to a cloud path
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
slonk-0.1.1.tar.gz
(3.0 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
slonk-0.1.1-py3-none-any.whl
(3.2 kB
view details)
File details
Details for the file slonk-0.1.1.tar.gz.
File metadata
- Download URL: slonk-0.1.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9358dae67373afb1e666acf3b67e4b765711f98562847016e1cfb4aec023aca
|
|
| MD5 |
c79d5fc943d48131139253fd33f4b413
|
|
| BLAKE2b-256 |
f86b4e0ba070e2b41b364ec0124c70f7a412f6370dbb7c268e1d23b3f15c57e6
|
File details
Details for the file slonk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: slonk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30b5a06625c5e337d4acbfaf634cd609e6d70080372354ef0cf8651a8c7a77ec
|
|
| MD5 |
e876483835fc3cdd7a74e63b3629f525
|
|
| BLAKE2b-256 |
02d70f7abd7f6f3edc09229b0d20b7bd6250cd6d4d14b883fdbb136e94518718
|