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 +122 -0
- fticket/__main__.py +8 -0
- fticket/_html.py +925 -0
- fticket/claims.py +239 -0
- fticket/cli.py +853 -0
- fticket/clock.py +23 -0
- fticket/config.py +110 -0
- fticket/core.py +586 -0
- fticket/dashboard.py +585 -0
- fticket/db.py +74 -0
- fticket/deps.py +340 -0
- fticket/errors.py +139 -0
- fticket/events.py +30 -0
- fticket/history.py +64 -0
- fticket/py.typed +0 -0
- fticket/queries.py +612 -0
- fticket/resources.py +459 -0
- fticket/scheduler.py +47 -0
- fticket/schema.py +210 -0
- fticket/state_machine.py +76 -0
- fticket/tickets.py +133 -0
- fticket/transitions.py +457 -0
- fticket/types.py +331 -0
- fticket-0.1.0.dist-info/METADATA +73 -0
- fticket-0.1.0.dist-info/RECORD +28 -0
- fticket-0.1.0.dist-info/WHEEL +4 -0
- fticket-0.1.0.dist-info/entry_points.txt +2 -0
- fticket-0.1.0.dist-info/licenses/LICENSE +21 -0
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
|
+
]
|