Jerry-Thomas: a stream-first, plugin-friendly data pipeline (mixology-themed CLI)
Project description
Datapipeline Runtime
Jerry Thomas is a time-series data pipeline runtime. It reads source data, maps it into ordered record streams, applies declarative transforms, and serves feature vectors for analysis or model training.
The runtime is iterator-first: streams are processed on demand, with explicit sorting, artifacts, observability, built-in transforms, and plugin entry points for custom loaders, parsers, mappers, and aligned-stream combiners.
Core assumptions
- Every record carries a timezone-aware
timeattribute. Time-zone awareness is a quality gate for correct vector assembly.- Samples are grouped by
sample.cadence, plus optionalsample.keyssuch assecurity_id.partition_byis the complete identity of an independent record series. Datasetsample.keysselect which of those fields identify rows; remaining partition fields are appended to feature IDs.
Why You Might Use It
- Materialize canonical time-series datasets from disparate sources.
- Preview and debug each stage of the pipeline without writing ad-hoc scripts.
- Enforce coverage/quality gates and publish artifacts (schema, scaler stats) for downstream ML teams.
- Extend the runtime with entry-point driven plugins for domain-specific I/O, mapping, combining, and custom operations.
- Consume vectors directly from Python via iterators, Pandas DataFrames, or
torch.utils.data.Dataset.
Quick Start
From zero to served vectors:
python -m pip install -U jerry-thomas
jerry demo init
cd demo
python -m pip install -e .
jerry serve --dataset demo --limit 3
The generated demo is a self-contained workspace. Scaffold commands do not
modify a parent jerry.yaml; add a dataset alias explicitly when you want to
integrate a generated project into another workspace.
Create Your Own Plugin + First Stream
jerry plugin init my-datapipeline --out lib/
cd lib/my-datapipeline
# Scaffold source YAML, DTO/parser, domain, mapper, and stream.
jerry inflow create
# Reinstall after commands that update entry points (pyproject.toml).
python -m pip install -e .
# Fill in the generated source and mapping templates, then serve.
jerry serve --limit 3
Import paths use the normalized package name: my_datapipeline for a
my-datapipeline distribution. Reinstall the plugin after scaffolding or
manually changing entry points.
Preview a Pipeline
jerry serve --preview <stage> stops at one stable boundary: input,
canonical, records, features, samples, or postprocess. Preview bypasses
split output so the selected stage can be inspected directly. Feature
engineering still runs before dataset splitting and should remain causal.
See the CLI reference for the exact value emitted at each boundary and Artifacts for split and scaler behavior.
CLI Cheat Sheet
Profile commands run enabled profiles by default. --profile <name> selects
that profile explicitly, including one configured with enabled: false.
jerry demo init: create the standalone demo plugin.jerry plugin init <name> --out lib/: create a plugin workspace.jerry inflow create: scaffold one source-backed stream end to end.jerry serve: stream enabled serve profiles.jerry build: materialize artifacts such as schema, scaler, and metadata.jerry inspect: run coverage, matrix, or custom inspection profiles.jerry materialize: write configured streams to durable JSONL files.jerry clean [--yes] [--older-than <age>]: lists or removes stale sort spill directories. It does not delete materialized outputs.
Use jerry <command> --help for current flags and the
CLI reference for command behavior.
MLOps & Reproducibility
jerry buildmaterializes deterministic artifacts (schema, scaler, metadata). Builds are keyed by configuration and local-source snapshots, and skip work when nothing changed unless you pass--force.- Filesystem serve output is run-scoped under
<output-directory>/runs/<run_id>/dataset/. Normal profiles write<profile>.<ext>; split profiles write<profile>.<label>.<ext>. - Versioning: tag the project config + plugin code in Git and pair with a data versioning tool like DVC for raw sources. With those inputs pinned, interim datasets and artifacts can be regenerated instead of stored.
Concepts
Workspace (jerry.yaml)
datasets: dataset aliases →project.yamlpaths (relative tojerry.yaml).default_dataset: which dataset project commands use when you omit--dataset/--project.plugin_root: where scaffolding commands write Python code (src/<package>/...) and where they look forpyproject.toml.
Plugin Package
These live under lib/<plugin>/src/<package>/:
dtos/*.py: DTO models (raw source shapes).parsers/*.py: raw -> DTO parsers (referenced by source YAML via entry point).domains/<domain>/model.py: domain record models.mappers/*.py: iterator mappings from parsed values to domain records.combiners/*.py: functions combining aligned domain records.loaders/*.py: optional custom loaders (fs/http usually use the built-in core loader).pyproject.toml: entry points for loaders, parsers, mappers, and combiners (rerunpip install -e lib/<plugin>after changes).
Source to Domain Record
- A loader reads raw rows;
core.iohandles ordinary filesystem and HTTP sources. - A parser converts each row into a source-shaped DTO and may drop invalid rows.
- A mapper converts DTOs into canonical domain records shared by downstream
streams. Every record has a timezone-aware
timefield. - Custom loaders are for behavior such as pagination, authentication, or proprietary protocols. See Extending the runtime.
Transforms (Preprocess -> Ordered Stream -> Feature -> Vector)
- Preprocess transforms run on mapped domain records before ordering. Each transform operates on one record at a time. Configure source-backed streams under
preprocess:. - Ordered transforms run after ordering (dedupe, cadence enforcement, lag/lead, rolling, derive, fills). These operate across a sequence of records for a partition because they depend on sorted partition/time order and cadence. Configure streams under
transforms:. - Feature transforms run after stream regularization and shape the per-feature payload for vectorization. The explicit
scaleandsequencefields indataset.yamlconfigure this stage; it is not an arbitrary transform list. - Postprocess policies select assembled vector columns and filter samples by coverage. Configure them under
postprocess:indataset.yaml. - Transform lists contain flat, validated built-in operations. Each item has an
operationdiscriminator and that operation's fields. See the transform guide for the supported operations.
Glossary
- Source alias:
sources/*.yaml:id(referenced by source-backed streams underfrom.source). - Stream id:
streams/*.yaml:id(referenced bydataset.yamlunderstream:). - Sample key: vector identity: floored time plus optional
dataset.sample.keys. - Partition: complete identity of an independent record series, declared by
stream
partition_byand used as the state boundary for history-based transforms. - Feature ID fields: partition fields not present in
dataset.sample.keys; these are appended to feature IDs in partition order. - Group: sample cadence set by
dataset.sample.cadence. - Preview stage: stable semantic boundary selected with
jerry serve --preview <stage>. - Sort spill: ordered stages sort pickle-serializable values in bounded serialized buffers and spill temporary runs when the next value would exceed the configured buffer.
Documentation
- Configuration: config layout, precedence, and YAML reference.
- Data flow: the YAML reference chain from workspace to output.
- CLI: command behavior beyond
--help. - Transforms: preprocess, ordered, feature, and postprocess stages.
- Artifacts: dependencies, freshness, splitting, and serving.
- Python integrations: iterator, Pandas, and Torch APIs.
- Extending: plugin entry points and contracts.
- Architecture: runtime and pipeline design.
Development
See CONTRIBUTING.md.
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
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 jerry_thomas-5.0.0.tar.gz.
File metadata
- Download URL: jerry_thomas-5.0.0.tar.gz
- Upload date:
- Size: 177.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
740e73de7f3b219da94077c0164f27da85818fb5c4b221dfc5d3d9e396c84b57
|
|
| MD5 |
0eabc5b1e2e71b29be0300063bdb713a
|
|
| BLAKE2b-256 |
d551d3ae83be60ac5024590c0136fc93c4af17f6b2cf675fe8fad23f361f7dab
|
Provenance
The following attestation bundles were made for jerry_thomas-5.0.0.tar.gz:
Publisher:
workflow.yml on mr-lovalova/datapipeline
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jerry_thomas-5.0.0.tar.gz -
Subject digest:
740e73de7f3b219da94077c0164f27da85818fb5c4b221dfc5d3d9e396c84b57 - Sigstore transparency entry: 2181621759
- Sigstore integration time:
-
Permalink:
mr-lovalova/datapipeline@3d53af086240dec14749247e1d6f3753ac43de31 -
Branch / Tag:
refs/tags/v5.0.0 - Owner: https://github.com/mr-lovalova
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@3d53af086240dec14749247e1d6f3753ac43de31 -
Trigger Event:
release
-
Statement type:
File details
Details for the file jerry_thomas-5.0.0-py3-none-any.whl.
File metadata
- Download URL: jerry_thomas-5.0.0-py3-none-any.whl
- Upload date:
- Size: 278.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce7fbd34b02236cd339d9d32c4bbca2c70ff128a7270cd64103e381d9aab6b06
|
|
| MD5 |
e5c4732b501782029507595ebc82960d
|
|
| BLAKE2b-256 |
1a1e5871fabb48cd00a58f84bddefabc65f0c9657a076fdad57a3088fbe00e97
|
Provenance
The following attestation bundles were made for jerry_thomas-5.0.0-py3-none-any.whl:
Publisher:
workflow.yml on mr-lovalova/datapipeline
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jerry_thomas-5.0.0-py3-none-any.whl -
Subject digest:
ce7fbd34b02236cd339d9d32c4bbca2c70ff128a7270cd64103e381d9aab6b06 - Sigstore transparency entry: 2181621922
- Sigstore integration time:
-
Permalink:
mr-lovalova/datapipeline@3d53af086240dec14749247e1d6f3753ac43de31 -
Branch / Tag:
refs/tags/v5.0.0 - Owner: https://github.com/mr-lovalova
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@3d53af086240dec14749247e1d6f3753ac43de31 -
Trigger Event:
release
-
Statement type: