Skip to content

v0.0.7

Choose a tag to compare

@MrDataPsycho MrDataPsycho released this 17 Apr 15:12
· 37 commits to main since this release
d5d66f7

🚀 Release 0.0.7 — Key Features

  1. Result[T, E] Monad

    • Rust‑style Ok/Err wrapper for sync & async flows
    • Methods: map, and_then, unwrap_or, match, plus *_async variants
    • JSON/dict serialization, custom UnwrapError
  2. Sync Task System

    • BaseSyncTask abstract base: retry logic + exponential backoff + task_id/task_name + logging
    • FunctionSyncTask decorator for def f(res: Result)->Result functions
    • ClassSyncTask subclassable for stateful logic in execute(res: Result)->Result
  3. Async Task System

    • Mirror of sync tasks under BaseAsyncTask
    • FunctionAsyncTask for async def f(res: Result)->Result with retries
    • ClassAsyncTask for complex async workflows
  4. Sync Pipeline

    • SyncPipeline: sequential chaining of Result‑driven tasks
    • One‑to‑one parallel helper run_parallel() for running multiple pipelines concurrently and merging outputs
    • debug mode: returns full ordered trace of (task_name, Result)
  5. Async Pipeline

    • AsyncPipeline: concurrent execution of BaseAsyncTask list, one input per task
    • debug mode support for per‑task trace capture
  6. Validation & Safety

    • Signature checks on every task’s execute(...) to enforce Result‑based input
    • Runtime type checks to catch input/output mismatches early
    • Comprehensive unit tests covering happy paths, error short‑circuit, retry, debug traces, and invalid configurations
  7. Documentation & Examples

    • Full MkDocs site with:
      • task_sync.md / task_async.md reference pages
      • basic_usage_task.md, pipeline_basics.md, basic_usage_async_pipeline.md examples
      • Quick‑start “run locally” guide
    • Code snippets for real‑world scenarios (OpenAI, data filtering, I/O mocks)