animas 1.0.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.
- animas/__init__.py +182 -0
- animas/core.py +2257 -0
- animas/events.py +481 -0
- animas/fs.py +390 -0
- animas/hmr.py +1015 -0
- animas/include.py +1400 -0
- animas/jsexpr.py +799 -0
- animas/loader.py +604 -0
- animas/logger.py +475 -0
- animas/py.typed +0 -0
- animas/reflect.py +584 -0
- animas/registry.py +288 -0
- animas/schema.py +1048 -0
- animas/timer.py +343 -0
- animas/tree.py +1025 -0
- animas/utils.py +374 -0
- animas-1.0.0.dist-info/METADATA +195 -0
- animas-1.0.0.dist-info/RECORD +21 -0
- animas-1.0.0.dist-info/WHEEL +4 -0
- animas-1.0.0.dist-info/licenses/LICENSE +21 -0
- animas-1.0.0.dist-info/licenses/NOTICE +120 -0
animas/__init__.py
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Animas: The Composable Micro-Kernel by Magitech.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
__version__ = "1.0.0"
|
|
6
|
+
|
|
7
|
+
from animas.core import Context, Fiber, FiberState, Service, inject
|
|
8
|
+
from animas.events import DisposableList, Disposer, EventBus, EventMode, is_bailed
|
|
9
|
+
from animas.fs import (
|
|
10
|
+
BaseFs,
|
|
11
|
+
FsError,
|
|
12
|
+
FsProvider,
|
|
13
|
+
FsService,
|
|
14
|
+
LocalFs,
|
|
15
|
+
Mount,
|
|
16
|
+
Watcher,
|
|
17
|
+
WatchOptions,
|
|
18
|
+
)
|
|
19
|
+
from animas.hmr import (
|
|
20
|
+
Abort,
|
|
21
|
+
HmrService,
|
|
22
|
+
ReconcileResult,
|
|
23
|
+
Reload,
|
|
24
|
+
Skip,
|
|
25
|
+
SkipReason,
|
|
26
|
+
handle_error,
|
|
27
|
+
)
|
|
28
|
+
from animas.include import (
|
|
29
|
+
Conflict,
|
|
30
|
+
EntryOwner,
|
|
31
|
+
FlatEntry,
|
|
32
|
+
Include,
|
|
33
|
+
IncludeError,
|
|
34
|
+
Journal,
|
|
35
|
+
JournalRecord,
|
|
36
|
+
PatchIndex,
|
|
37
|
+
StaleWriteError,
|
|
38
|
+
apply_changes,
|
|
39
|
+
apply_entry_patches,
|
|
40
|
+
apply_journal,
|
|
41
|
+
detach,
|
|
42
|
+
diff_entries,
|
|
43
|
+
diff_options,
|
|
44
|
+
ensure_ids,
|
|
45
|
+
ensure_insert_ids,
|
|
46
|
+
flatten,
|
|
47
|
+
merge,
|
|
48
|
+
merge_records,
|
|
49
|
+
place,
|
|
50
|
+
reconcile,
|
|
51
|
+
record,
|
|
52
|
+
route_journal,
|
|
53
|
+
)
|
|
54
|
+
from animas.jsexpr import JsExprError, evaluate, interpolate
|
|
55
|
+
from animas.loader import (
|
|
56
|
+
LoaderService,
|
|
57
|
+
interpolate_env,
|
|
58
|
+
load_profile,
|
|
59
|
+
resolve_component_target,
|
|
60
|
+
save_profile,
|
|
61
|
+
)
|
|
62
|
+
from animas.logger import (
|
|
63
|
+
ConsoleExporter,
|
|
64
|
+
Exporter,
|
|
65
|
+
Logger,
|
|
66
|
+
LoggerLevel,
|
|
67
|
+
LoggerService,
|
|
68
|
+
Message,
|
|
69
|
+
)
|
|
70
|
+
from animas.reflect import ReflectService
|
|
71
|
+
from animas.registry import Inject, RegistryService, resolve_inject
|
|
72
|
+
from animas.schema import Schema, SchemaError, ValidationError, z
|
|
73
|
+
from animas.timer import Scheduled, TimerService
|
|
74
|
+
from animas.tree import Entry, EntryChange, EntryGroup, EntryOptions, EntryTree, Group
|
|
75
|
+
from animas.utils import (
|
|
76
|
+
Binary,
|
|
77
|
+
Dict,
|
|
78
|
+
Promisify,
|
|
79
|
+
Time,
|
|
80
|
+
filter_keys,
|
|
81
|
+
hyphenate,
|
|
82
|
+
is_non_nullable,
|
|
83
|
+
is_nullable,
|
|
84
|
+
is_plain_object,
|
|
85
|
+
map_values,
|
|
86
|
+
pick,
|
|
87
|
+
value_map,
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
__all__ = [
|
|
91
|
+
"Abort",
|
|
92
|
+
"BaseFs",
|
|
93
|
+
"Binary",
|
|
94
|
+
"Conflict",
|
|
95
|
+
"ConsoleExporter",
|
|
96
|
+
"Context",
|
|
97
|
+
"Dict",
|
|
98
|
+
"DisposableList",
|
|
99
|
+
"Disposer",
|
|
100
|
+
"Entry",
|
|
101
|
+
"EntryChange",
|
|
102
|
+
"EntryGroup",
|
|
103
|
+
"EntryOptions",
|
|
104
|
+
"EntryOwner",
|
|
105
|
+
"EntryTree",
|
|
106
|
+
"EventBus",
|
|
107
|
+
"EventMode",
|
|
108
|
+
"Exporter",
|
|
109
|
+
"Fiber",
|
|
110
|
+
"FiberState",
|
|
111
|
+
"FlatEntry",
|
|
112
|
+
"FsError",
|
|
113
|
+
"FsProvider",
|
|
114
|
+
"FsService",
|
|
115
|
+
"Group",
|
|
116
|
+
"HmrService",
|
|
117
|
+
"Include",
|
|
118
|
+
"IncludeError",
|
|
119
|
+
"Inject",
|
|
120
|
+
"Journal",
|
|
121
|
+
"JournalRecord",
|
|
122
|
+
"JsExprError",
|
|
123
|
+
"LoaderService",
|
|
124
|
+
"LocalFs",
|
|
125
|
+
"Logger",
|
|
126
|
+
"LoggerLevel",
|
|
127
|
+
"LoggerService",
|
|
128
|
+
"Message",
|
|
129
|
+
"Mount",
|
|
130
|
+
"PatchIndex",
|
|
131
|
+
"Promisify",
|
|
132
|
+
"ReconcileResult",
|
|
133
|
+
"ReflectService",
|
|
134
|
+
"RegistryService",
|
|
135
|
+
"Reload",
|
|
136
|
+
"Scheduled",
|
|
137
|
+
"Schema",
|
|
138
|
+
"SchemaError",
|
|
139
|
+
"Service",
|
|
140
|
+
"Skip",
|
|
141
|
+
"SkipReason",
|
|
142
|
+
"StaleWriteError",
|
|
143
|
+
"Time",
|
|
144
|
+
"TimerService",
|
|
145
|
+
"ValidationError",
|
|
146
|
+
"WatchOptions",
|
|
147
|
+
"Watcher",
|
|
148
|
+
"apply_changes",
|
|
149
|
+
"apply_entry_patches",
|
|
150
|
+
"apply_journal",
|
|
151
|
+
"detach",
|
|
152
|
+
"diff_entries",
|
|
153
|
+
"diff_options",
|
|
154
|
+
"ensure_ids",
|
|
155
|
+
"ensure_insert_ids",
|
|
156
|
+
"evaluate",
|
|
157
|
+
"filter_keys",
|
|
158
|
+
"flatten",
|
|
159
|
+
"handle_error",
|
|
160
|
+
"hyphenate",
|
|
161
|
+
"inject",
|
|
162
|
+
"interpolate",
|
|
163
|
+
"interpolate_env",
|
|
164
|
+
"is_bailed",
|
|
165
|
+
"is_non_nullable",
|
|
166
|
+
"is_nullable",
|
|
167
|
+
"is_plain_object",
|
|
168
|
+
"load_profile",
|
|
169
|
+
"map_values",
|
|
170
|
+
"merge",
|
|
171
|
+
"merge_records",
|
|
172
|
+
"pick",
|
|
173
|
+
"place",
|
|
174
|
+
"reconcile",
|
|
175
|
+
"record",
|
|
176
|
+
"resolve_component_target",
|
|
177
|
+
"resolve_inject",
|
|
178
|
+
"route_journal",
|
|
179
|
+
"save_profile",
|
|
180
|
+
"value_map",
|
|
181
|
+
"z",
|
|
182
|
+
]
|