Skip to main content

python-dataflow

Version: 2.1.0

Table of Contents

syrtis-python-dataflow runs a pipeline: stages reading one another from the sources down, each a projection of elements an operator computes — a book, its paragraphs, their summaries, the chapters', the book's. It is the engine of the data side of Syrtis, where the scenarios' engine holds a conversation: here nothing reasons, and no session is kept; collections are read, transformed and kept, in a storage.

What it does that the scenarios' engine does not: it works on collections, element by element; it remembers what every element was computed from, so that a run computes only what changed — a stage's config, a source refreshed — and keeps the rest; it runs a stage's elements on several threads; an element an operator fails on is reported and left out, the stage going on.

It knows nothing of Syrtis' database: the host — the core — builds the pipeline from what it keeps, hands the operators what they need, and reads the report back.

Installation

pip install syrtis-python-dataflow

Requires Python >=3.10.

Tests

This project uses pytest for testing and pytest-cov for code coverage analysis.

Installation

First, install the required testing dependencies:

.venv/bin/python -m pip install pytest pytest-cov

Basic Usage

Run all tests with coverage:

.venv/bin/python -m pytest --cov --cov-report=html

Common Commands

# Run tests with coverage for a specific module
.venv/bin/python -m pytest --cov=your_module

# Show which lines are not covered
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing

# Generate an HTML coverage report
.venv/bin/python -m pytest --cov=your_module --cov-report=html

# Combine terminal and HTML reports
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html

# Run specific test file with coverage
.venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing

Viewing HTML Reports

After generating an HTML report, open htmlcov/index.html in your browser to view detailed line-by-line coverage information.

Coverage Threshold

To enforce a minimum coverage percentage:

.venv/bin/python -m pytest --cov=your_module --cov-fail-under=80

This will cause the test suite to fail if coverage drops below 80%.

Known Limitations & Roadmap

Current limitations and planned features are tracked in the GitHub issues.

See the project roadmap for upcoming features and improvements.

Status & Compatibility

Maturity: Production-ready

Python Support: >=3.10

OS Support: Linux, macOS, Windows

Status: Actively maintained

Metadata

Release files for syrtis-python-dataflow 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for syrtis-python-dataflow 2.1.0
File Size Uploaded Provenance Actions
syrtis_python_dataflow-2.1.0.tar.gz 18.5 kB Without provenance Details for syrtis_python_dataflow-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for syrtis-python-dataflow 2.1.0
File Interpreter ABI Platform Actions
syrtis_python_dataflow-2.1.0-py3-none-any.whl Python 3 none any Details for syrtis_python_dataflow-2.1.0-py3-none-any.whl

Total release size: 41.0 kB

Release files / syrtis_python_dataflow-2.1.0.tar.gz

Download URL syrtis_python_dataflow-2.1.0.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bf1b69231cec2453d506afa7eabd1d7316630acdc60dc4c46c9fbb155290e02d
BLAKE2b-256 checksum
How to use checksums
e4f2ce363e93de0118a82612ebf0bc38b8c9e8fc41775a7274e4ddc9631025e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.29.3 CPython/3.12.3 Linux/6.1.0-37-amd64

Release files / syrtis_python_dataflow-2.1.0-py3-none-any.whl

Download URL syrtis_python_dataflow-2.1.0-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11922884661f4361e72c8a51f91fa085699c4eca075da8d0d9e3d60560ee2c09
BLAKE2b-256 checksum
How to use checksums
d008759edd4edc273b26ca518f7fa937ff9c45186a0adb7d80a4d900ce2304af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.29.3 CPython/3.12.3 Linux/6.1.0-37-amd64

Security for syrtis-python-dataflow 2.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page