Download src/core/lifecycle/__init__.py from anaselamr/yaz: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/core/lifecycle/__init__.py
- Command line
-
hf download hf://spaces/anaselamr/yaz/src/core/lifecycle/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/anaselamr/yaz/resolve/main/src/core/lifecycle/__init__.py
1.37 kB
| """ | |
| Core Lifecycle Module — Domain-Agnostic Case Lifecycle Management | |
| Provides reusable Pre-Event / Event / Post-Event patterns for any domain engine. | |
| Each engine registers a LifecycleConfig that defines domain-specific labels, | |
| readiness items, milestone types, disposition options, barrier types, and follow-ups. | |
| Architecture: | |
| core/lifecycle/models.py — Pydantic value objects (persistence-agnostic) | |
| core/lifecycle/config.py — Declarative per-engine lifecycle configuration | |
| core/lifecycle/service.py — Stateless lifecycle operations on dict/JSON data | |
| core/lifecycle/routes.py — FastAPI route factory for any engine | |
| Usage: | |
| from core.lifecycle import LifecycleConfig, ReadinessChecklist, CompletionPlan | |
| from core.lifecycle import lifecycle_registry | |
| """ | |
| from core.lifecycle.models import ( | |
| PhaseItemStatus, | |
| ReadinessChecklist, | |
| TimelineEventEntry, | |
| CompletionBarrierStatus, | |
| CompletionBarrier, | |
| FollowUpItem, | |
| CompletionPlan, | |
| ) | |
| from core.lifecycle.config import ( | |
| LifecycleConfig, | |
| lifecycle_registry, | |
| get_lifecycle_config, | |
| ) | |
| __all__ = [ | |
| "PhaseItemStatus", | |
| "ReadinessChecklist", | |
| "TimelineEventEntry", | |
| "CompletionBarrierStatus", | |
| "CompletionBarrier", | |
| "FollowUpItem", | |
| "CompletionPlan", | |
| "LifecycleConfig", | |
| "lifecycle_registry", | |
| "get_lifecycle_config", | |
| ] | |