A lightweight process tracker (Process / ProcessStep) for long-running, distributed workflows.
Project description
trellis
A lightweight process tracker for long-running, distributed workflows.
trellis gives you a small, reusable Process / ProcessStep domain model
you can use to track business workflows across services and bounded contexts.
It works great for:
- High-level journeys (e.g. referral lifecycle in Harmony)
- Sub-processes (e.g. authorization flow or claim adjudication in Pulse)
- Any long-running process where multiple steps must eventually complete
Trellis is intentionally storage-agnostic: you bring your own database (PostgreSQL, DynamoDB, etc.) and wire it via a repository interface. The core library focuses on the domain model and invariants.
Features
- ✅ Generic
Process+ProcessStepmodel - ✅ Supports multiple
process_types (e.g."ReferralJourney","ClaimAdjudication") - ✅ Tracks required steps, state (
pending,in_progress,completed,failed) - ✅ Simple API:
mark_step_completed,mark_step_failed,has_failed,is_completed - ✅ Storage-agnostic: integrate with Postgres, DynamoDB, etc.
- ✅ In-memory repository for demos and unit tests
Installation
pip install trellis-process
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
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 trellis_process-0.1.0.tar.gz.
File metadata
- Download URL: trellis_process-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/23.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f772a3371c35412409519752e2a2a911c826355e5fa05fd8c3150652bd4c2019
|
|
| MD5 |
d9680dd86e892de32ba393d44d5dfd7c
|
|
| BLAKE2b-256 |
3a10a7b511413430e816841e189774bf6940fb04d9e9d3e0d33ad09b4e08fc2b
|
File details
Details for the file trellis_process-0.1.0-py3-none-any.whl.
File metadata
- Download URL: trellis_process-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/23.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d665fe631ba818766e7c67925c0d07701087e956b6df8562ce070b42f0206458
|
|
| MD5 |
ce02dc905a04a08bd088cf652bbc79e1
|
|
| BLAKE2b-256 |
3f5fdf5e35b20e7834aba6c85a1c4c06b3a851f1a0846f9b73658b8903b0b89e
|