Code-First Pipelines
A framework built on top of Ploomber that allows code-first definition of pipelines. No YAML needed!
Installation
To get the minimum code needed to use the pipelines, install it from PyPI:
pip install code-first-pipelines
Usage
Pipelines
import pandas as pd
from sklearn import datasets
from cf_pipelines import Pipeline
iris_pipeline = Pipeline("My Cool Pipeline")
@iris_pipeline.step("Data ingestion")
def data_ingestion():
d = datasets.load_iris()
df = pd.DataFrame(d["data"])
df.columns = d["feature_names"]
df["target"] = d["target"]
return {"raw_data.csv": df}
iris_pipeline.run()
See the tutorial notebook for a more comprehensive example.
ML Pipelines
import pandas as pd
from sklearn import datasets
from cf_pipelines.ml import MLPipeline
iris_pipeline = MLPipeline("My Cool Pipeline")
@iris_pipeline.data_ingestion
def data_ingestion():
d = datasets.load_iris()
df = pd.DataFrame(d["data"])
df.columns = d["feature_names"]
df["target"] = d["target"]
return {"raw_data.csv": df}
iris_pipeline.run()
See the tutorial notebook for a more comprehensive example.
Getting started with a template
Once installed, you can create a new pipeline template by running:
pipelines new [pipeline name]
Metadata
Release files for code-first-pipelines 1.0.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 | Actions |
|---|---|---|---|---|
| code-first-pipelines-1.0.0.tar.gz | 7.0 kB | Without provenance | Details for code-first-pipelines-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| code_first_pipelines-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for code_first_pipelines-1.0.0-py3-none-any.whl |
Total release size: 14.7 kB
Release files / code-first-pipelines-1.0.0.tar.gz
| Download URL | code-first-pipelines-1.0.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f760de684e3286c3c5a920dfb9f03de60ae94234e237e3e96a49adece61d1ce9
|
|
BLAKE2b-256 checksum How to use checksums |
777bfa081cfe6edc1b9d86355b6db126f2659b15f71cadb57ebe10e3ba4bb13a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.14 Linux/5.15.0-1022-azure
|
Release files / code_first_pipelines-1.0.0-py3-none-any.whl
| Download URL | code_first_pipelines-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7253ee9833d156e4ed9188959e527915d0499d394a614e012d0367365fd1b3f3
|
|
BLAKE2b-256 checksum How to use checksums |
3e773514627251f8326f1104deab49d5c900e3af157f17b3d7d0ad37c0713c0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.14 Linux/5.15.0-1022-azure
|
Security for code-first-pipelines 1.0.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.