fticket 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
fticket/__init__.py ADDED
@@ -0,0 +1,122 @@
1
+ """FTS — Factory Ticket System (§10 public surface).
2
+
3
+ Re-exports the facade (`FTS`), the clock protocol, every public StrEnum and value
4
+ dataclass (`types`), and the full error hierarchy (`errors`), so callers import from the
5
+ package root. Names are listed in `__all__` for explicit re-export under mypy --strict.
6
+ """
7
+
8
+ from fticket.clock import Clock, SystemClock
9
+ from fticket.core import FTS
10
+ from fticket.errors import (
11
+ ClaimExpired,
12
+ ClaimFenced,
13
+ ConfigError,
14
+ Contended,
15
+ DependencyCycle,
16
+ DuplicateFolder,
17
+ FTSError,
18
+ FTSStageWarning,
19
+ IllegalTransition,
20
+ LeaseUpgradeUnsupported,
21
+ NotClaimOwner,
22
+ NotFound,
23
+ ReadOnlyError,
24
+ ResourceModeError,
25
+ ResourceNotFound,
26
+ ResourceOrderViolation,
27
+ SelfDependency,
28
+ TicketNotFound,
29
+ )
30
+ from fticket.types import (
31
+ AcquireResult,
32
+ BounceRate,
33
+ Claim,
34
+ ClaimResult,
35
+ CycleTimeStats,
36
+ Dag,
37
+ DagEdge,
38
+ DagNode,
39
+ Dependency,
40
+ DoctorCheck,
41
+ DoctorCheckId,
42
+ DoctorReport,
43
+ Event,
44
+ EventType,
45
+ Grant,
46
+ HistoryKind,
47
+ HistoryRow,
48
+ Kind,
49
+ LeaseView,
50
+ Mode,
51
+ ModePolicy,
52
+ OrphanReport,
53
+ ResourceBlock,
54
+ ResourceState,
55
+ StageDepth,
56
+ Status,
57
+ StuckReason,
58
+ Ticket,
59
+ TicketDetail,
60
+ TickReport,
61
+ WaitView,
62
+ WhyCategory,
63
+ )
64
+
65
+ __all__ = [
66
+ "FTS",
67
+ "Clock",
68
+ "SystemClock",
69
+ # enums
70
+ "Status",
71
+ "Kind",
72
+ "Mode",
73
+ "ModePolicy",
74
+ "Grant",
75
+ "HistoryKind",
76
+ "EventType",
77
+ "WhyCategory",
78
+ "DoctorCheckId",
79
+ # value dataclasses
80
+ "Dependency",
81
+ "Ticket",
82
+ "ClaimResult",
83
+ "Claim",
84
+ "AcquireResult",
85
+ "HistoryRow",
86
+ "Event",
87
+ "TickReport",
88
+ "StageDepth",
89
+ "ResourceBlock",
90
+ "BounceRate",
91
+ "CycleTimeStats",
92
+ "DagNode",
93
+ "DagEdge",
94
+ "Dag",
95
+ "LeaseView",
96
+ "WaitView",
97
+ "ResourceState",
98
+ "OrphanReport",
99
+ "TicketDetail",
100
+ "StuckReason",
101
+ "DoctorCheck",
102
+ "DoctorReport",
103
+ # errors
104
+ "FTSError",
105
+ "NotFound",
106
+ "TicketNotFound",
107
+ "ResourceNotFound",
108
+ "IllegalTransition",
109
+ "DependencyCycle",
110
+ "SelfDependency",
111
+ "NotClaimOwner",
112
+ "ClaimExpired",
113
+ "ClaimFenced",
114
+ "ResourceModeError",
115
+ "LeaseUpgradeUnsupported",
116
+ "ResourceOrderViolation",
117
+ "DuplicateFolder",
118
+ "Contended",
119
+ "ConfigError",
120
+ "ReadOnlyError",
121
+ "FTSStageWarning",
122
+ ]
fticket/__main__.py ADDED
@@ -0,0 +1,8 @@
1
+ """`python -m fticket` entry point -> `cli.main` (§8). [CLI wave 2]"""
2
+
3
+ import sys
4
+
5
+ from fticket.cli import main
6
+
7
+ if __name__ == "__main__":
8
+ sys.exit(main())