inqaba 0.1.0__tar.gz
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.
- inqaba-0.1.0/.gitignore +25 -0
- inqaba-0.1.0/PKG-INFO +45 -0
- inqaba-0.1.0/README.md +27 -0
- inqaba-0.1.0/assets/inqaba-soweto-twins.svg +192 -0
- inqaba-0.1.0/doc/MIGRATION.md +30 -0
- inqaba-0.1.0/doc/inqaba-class-diagram.puml +92 -0
- inqaba-0.1.0/doc/inqaba-class-diagram.svg +1 -0
- inqaba-0.1.0/inqaba/__init__.py +20 -0
- inqaba-0.1.0/inqaba/config.py +169 -0
- inqaba-0.1.0/inqaba/entry.py +109 -0
- inqaba-0.1.0/inqaba/files.py +31 -0
- inqaba-0.1.0/inqaba/json5.py +213 -0
- inqaba-0.1.0/inqaba/path.py +113 -0
- inqaba-0.1.0/pyproject.toml +31 -0
- inqaba-0.1.0/scripts/class_diagram.py +47 -0
- inqaba-0.1.0/tests/__init__.py +0 -0
- inqaba-0.1.0/tests/test_boundaries.py +65 -0
- inqaba-0.1.0/tests/test_files_and_config.py +24 -0
- inqaba-0.1.0/tests/test_path.py +31 -0
inqaba-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# Distribution / packaging
|
|
7
|
+
build/
|
|
8
|
+
dist/
|
|
9
|
+
*.egg-info/
|
|
10
|
+
*.egg
|
|
11
|
+
|
|
12
|
+
# Virtual environments
|
|
13
|
+
.venv/
|
|
14
|
+
venv/
|
|
15
|
+
|
|
16
|
+
# Testing & Type checking
|
|
17
|
+
.pytest_cache/
|
|
18
|
+
.mypy_cache/
|
|
19
|
+
.ruff_cache/
|
|
20
|
+
.coverage
|
|
21
|
+
|
|
22
|
+
# OS & Editor
|
|
23
|
+
.DS_Store
|
|
24
|
+
.vscode/
|
|
25
|
+
.idea/
|
inqaba-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: inqaba
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Shared Python filesystem, configuration, command, and media boundaries for RAIkeep.
|
|
5
|
+
Project-URL: Repository, https://github.com/Burkhardt/inqaba
|
|
6
|
+
Project-URL: ReleaseNotes, https://github.com/Burkhardt/RAIkeep/blob/main/doc/releases/v4.x/inqaba_RELEASE_NOTES_4.x.md
|
|
7
|
+
Author: Dr. Rainer Burkhardt
|
|
8
|
+
License: Apache-2.0
|
|
9
|
+
Requires-Python: >=3.12
|
|
10
|
+
Provides-Extra: dev
|
|
11
|
+
Requires-Dist: build; extra == 'dev'
|
|
12
|
+
Requires-Dist: mypy>=1.10; extra == 'dev'
|
|
13
|
+
Requires-Dist: pytest-cov>=5.0; extra == 'dev'
|
|
14
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
15
|
+
Requires-Dist: ruff>=0.5; extra == 'dev'
|
|
16
|
+
Requires-Dist: twine; extra == 'dev'
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
|
|
19
|
+
<p align="center">
|
|
20
|
+
<img src="https://raw.githubusercontent.com/Burkhardt/inqaba/main/assets/inqaba-soweto-twins.svg" width="180" height="180" alt="Inqaba Soweto Twins Logo" />
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
# inqaba
|
|
24
|
+
|
|
25
|
+
Install the `inqaba` distribution with `python -m pip install inqaba`.
|
|
26
|
+
|
|
27
|
+
Shared Python framework boundaries for RAIkeep. The public API begins with
|
|
28
|
+
`Inq*` names and currently provides typed path, file, and configuration
|
|
29
|
+
objects for the active Python projects. Command and media APIs remain planned.
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
from inqaba import InqPath, InqRelPath
|
|
33
|
+
|
|
34
|
+
root = InqPath.from_directory("/srv/jsonpit/")
|
|
35
|
+
people = root / InqRelPath("People")
|
|
36
|
+
person_file = people / "Person.pit"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
`InqRelPath` represents directory segments. A terminal filename is supplied as
|
|
40
|
+
a string and is not itself a relative directory path.
|
|
41
|
+
|
|
42
|
+
See the [rendered class diagram](https://github.com/Burkhardt/inqaba/blob/main/doc/inqaba-class-diagram.svg), its
|
|
43
|
+
[PlantUML source](https://github.com/Burkhardt/inqaba/blob/main/doc/inqaba-class-diagram.puml), and the
|
|
44
|
+
[migration contract](https://github.com/Burkhardt/inqaba/blob/main/doc/MIGRATION.md). For release verification, use the
|
|
45
|
+
paired Umgodi `scripts/preflight.py` with both repositories checked out.
|
inqaba-0.1.0/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/Burkhardt/inqaba/main/assets/inqaba-soweto-twins.svg" width="180" height="180" alt="Inqaba Soweto Twins Logo" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# inqaba
|
|
6
|
+
|
|
7
|
+
Install the `inqaba` distribution with `python -m pip install inqaba`.
|
|
8
|
+
|
|
9
|
+
Shared Python framework boundaries for RAIkeep. The public API begins with
|
|
10
|
+
`Inq*` names and currently provides typed path, file, and configuration
|
|
11
|
+
objects for the active Python projects. Command and media APIs remain planned.
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from inqaba import InqPath, InqRelPath
|
|
15
|
+
|
|
16
|
+
root = InqPath.from_directory("/srv/jsonpit/")
|
|
17
|
+
people = root / InqRelPath("People")
|
|
18
|
+
person_file = people / "Person.pit"
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`InqRelPath` represents directory segments. A terminal filename is supplied as
|
|
22
|
+
a string and is not itself a relative directory path.
|
|
23
|
+
|
|
24
|
+
See the [rendered class diagram](https://github.com/Burkhardt/inqaba/blob/main/doc/inqaba-class-diagram.svg), its
|
|
25
|
+
[PlantUML source](https://github.com/Burkhardt/inqaba/blob/main/doc/inqaba-class-diagram.puml), and the
|
|
26
|
+
[migration contract](https://github.com/Burkhardt/inqaba/blob/main/doc/MIGRATION.md). For release verification, use the
|
|
27
|
+
paired Umgodi `scripts/preflight.py` with both repositories checked out.
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" height="100%">
|
|
2
|
+
<defs>
|
|
3
|
+
<!-- Background Canvas -->
|
|
4
|
+
<linearGradient id="bgObsidian" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
5
|
+
<stop offset="0%" stop-color="#11110F"/>
|
|
6
|
+
<stop offset="100%" stop-color="#1E1E1A"/>
|
|
7
|
+
</linearGradient>
|
|
8
|
+
|
|
9
|
+
<!-- Warm African Ochre & eGoli Gold Gradients -->
|
|
10
|
+
<linearGradient id="goldLight" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
11
|
+
<stop offset="0%" stop-color="#FCE496"/>
|
|
12
|
+
<stop offset="45%" stop-color="#D4AF37"/>
|
|
13
|
+
<stop offset="100%" stop-color="#AA8214"/>
|
|
14
|
+
</linearGradient>
|
|
15
|
+
|
|
16
|
+
<linearGradient id="goldShadow" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
17
|
+
<stop offset="0%" stop-color="#DCA832"/>
|
|
18
|
+
<stop offset="50%" stop-color="#B88219"/>
|
|
19
|
+
<stop offset="100%" stop-color="#7D5508"/>
|
|
20
|
+
</linearGradient>
|
|
21
|
+
|
|
22
|
+
<!-- Deep Warm Obsidian Body for Graphic Mural Contrast -->
|
|
23
|
+
<linearGradient id="muralDark" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
24
|
+
<stop offset="0%" stop-color="#1E1E18"/>
|
|
25
|
+
<stop offset="50%" stop-color="#151511"/>
|
|
26
|
+
<stop offset="100%" stop-color="#0E0E0A"/>
|
|
27
|
+
</linearGradient>
|
|
28
|
+
|
|
29
|
+
<linearGradient id="goldRim" x1="0%" y1="0%" x2="0%" y2="100%">
|
|
30
|
+
<stop offset="0%" stop-color="#FFF2BD"/>
|
|
31
|
+
<stop offset="100%" stop-color="#C59B27"/>
|
|
32
|
+
</linearGradient>
|
|
33
|
+
|
|
34
|
+
<filter id="subtleGlow" x="-20%" y="-20%" width="140%" height="140%">
|
|
35
|
+
<feDropShadow dx="0" dy="10" stdDeviation="15" flood-color="#000000" flood-opacity="0.6"/>
|
|
36
|
+
</filter>
|
|
37
|
+
</defs>
|
|
38
|
+
|
|
39
|
+
<!-- Dark Obsidian Base Ground -->
|
|
40
|
+
<rect width="512" height="512" rx="104" fill="url(#bgObsidian)"/>
|
|
41
|
+
|
|
42
|
+
<!-- Precision Framing Guides -->
|
|
43
|
+
<circle cx="256" cy="256" r="218" fill="none" stroke="#262620" stroke-width="2" stroke-dasharray="5 7"/>
|
|
44
|
+
<circle cx="256" cy="256" r="192" fill="none" stroke="#383830" stroke-width="1.5"/>
|
|
45
|
+
|
|
46
|
+
<!-- ASYMMETRICAL SOWETO TWIN TOWERS (DIVERGENT ARTISTIC MURALS) -->
|
|
47
|
+
<g filter="url(#subtleGlow)">
|
|
48
|
+
|
|
49
|
+
<!-- ======================================================== -->
|
|
50
|
+
<!-- TOWER 2: EAST TOWER (Companion Tower, center x = 336) -->
|
|
51
|
+
<!-- Motif: The Golden Celestial & Organic Wave Canvas -->
|
|
52
|
+
<!-- Luminous Gold Body with Bold Obsidian Fluid Waves -->
|
|
53
|
+
<!-- ======================================================== -->
|
|
54
|
+
<g id="eastTower">
|
|
55
|
+
<!-- Hyperboloid Shell: slightly set back in perspective (y: 136..416) -->
|
|
56
|
+
<!-- Lit Left Half -->
|
|
57
|
+
<path d="M 336,136
|
|
58
|
+
L 294,136
|
|
59
|
+
C 303,170 305,196 300,214
|
|
60
|
+
C 290,252 274,336 264,416
|
|
61
|
+
L 336,416 Z"
|
|
62
|
+
fill="url(#goldLight)"/>
|
|
63
|
+
|
|
64
|
+
<!-- Shaded Right Half -->
|
|
65
|
+
<path d="M 336,136
|
|
66
|
+
L 378,136
|
|
67
|
+
C 369,170 367,196 372,214
|
|
68
|
+
C 382,252 398,336 408,416
|
|
69
|
+
L 336,416 Z"
|
|
70
|
+
fill="url(#goldShadow)"/>
|
|
71
|
+
|
|
72
|
+
<!-- Flared Top Crown Opening -->
|
|
73
|
+
<ellipse cx="336" cy="136" rx="42" ry="8.5" fill="#141412" stroke="url(#goldRim)" stroke-width="2"/>
|
|
74
|
+
<ellipse cx="336" cy="136" rx="28" ry="5" fill="#0C0C0A"/>
|
|
75
|
+
|
|
76
|
+
<!-- Foundation Plinth -->
|
|
77
|
+
<path d="M 260,416 C 260,416 298,423 336,423 C 374,423 412,416 412,416 L 409,422 C 409,422 374,429 336,429 C 298,429 263,422 263,422 Z"
|
|
78
|
+
fill="#0C0C0A" stroke="#7A5A12" stroke-width="1.5"/>
|
|
79
|
+
|
|
80
|
+
<!-- EAST MURAL ART: Flowing Waves, Celestial Arch & Ripple Strata (Fluid Rhythm) -->
|
|
81
|
+
<!-- Crown: Continuous Wavy Ripple Frieze -->
|
|
82
|
+
<path d="M 298,162 Q 307,152 316,162 T 334,162 T 352,162 T 374,162"
|
|
83
|
+
fill="none" stroke="#141412" stroke-width="3.5" stroke-linecap="round"/>
|
|
84
|
+
<line x1="295" y1="170" x2="377" y2="170" stroke="#F4F4F0" stroke-width="1.5"/>
|
|
85
|
+
|
|
86
|
+
<!-- Upper Waist: The Great Soweto Sunburst / Radiant Horizon Arc -->
|
|
87
|
+
<path d="M 292,230 C 314,204 358,204 380,230"
|
|
88
|
+
fill="none" stroke="#141412" stroke-width="4.5" stroke-linecap="round"/>
|
|
89
|
+
<!-- Inner Radiant Dot -->
|
|
90
|
+
<circle cx="336" cy="220" r="7" fill="#141412"/>
|
|
91
|
+
<circle cx="336" cy="220" r="3" fill="#F4F4F0"/>
|
|
92
|
+
|
|
93
|
+
<!-- Mid-Body: Sweeping Dynamic Diagonal Sash (Township Movement) -->
|
|
94
|
+
<path d="M 288,270 L 384,248 L 388,266 L 284,288 Z" fill="#141412" opacity="0.9"/>
|
|
95
|
+
<line x1="290" y1="272" x2="382" y2="251" stroke="#F4F4F0" stroke-width="2" stroke-linecap="round"/>
|
|
96
|
+
|
|
97
|
+
<!-- Lower Mid-Body: Double Fluid Wave Strata -->
|
|
98
|
+
<path d="M 276,324 Q 306,314 336,324 T 396,324"
|
|
99
|
+
fill="none" stroke="#141412" stroke-width="4" stroke-linecap="round"/>
|
|
100
|
+
<path d="M 274,334 Q 304,324 334,334 T 398,334"
|
|
101
|
+
fill="none" stroke="#F4F4F0" stroke-width="1.8" stroke-dasharray="8 5" stroke-linecap="round"/>
|
|
102
|
+
|
|
103
|
+
<!-- Base Colonnade: Stepped Geometric Block Plinth -->
|
|
104
|
+
<path d="M 266,380 L 406,380 L 404,396 L 264,396 Z" fill="#141412" opacity="0.92"/>
|
|
105
|
+
<!-- Gold Rhythmic Dash Array at Base -->
|
|
106
|
+
<line x1="270" y1="388" x2="288" y2="388" stroke="url(#goldRim)" stroke-width="3" stroke-linecap="round"/>
|
|
107
|
+
<line x1="298" y1="388" x2="320" y2="388" stroke="url(#goldRim)" stroke-width="3" stroke-linecap="round"/>
|
|
108
|
+
<line x1="330" y1="388" x2="352" y2="388" stroke="url(#goldRim)" stroke-width="3" stroke-linecap="round"/>
|
|
109
|
+
<line x1="362" y1="388" x2="384" y2="388" stroke="url(#goldRim)" stroke-width="3" stroke-linecap="round"/>
|
|
110
|
+
<line x1="394" y1="388" x2="402" y2="388" stroke="url(#goldRim)" stroke-width="3" stroke-linecap="round"/>
|
|
111
|
+
</g>
|
|
112
|
+
|
|
113
|
+
<!-- ======================================================== -->
|
|
114
|
+
<!-- TOWER 1: WEST TOWER (Hero Foreground, center x = 180) -->
|
|
115
|
+
<!-- Motif: The Iconic "Soweto Gold" Graphic Textile Canvas -->
|
|
116
|
+
<!-- Deep Obsidian Body with Intricate Gold & White Linework -->
|
|
117
|
+
<!-- ======================================================== -->
|
|
118
|
+
<g id="westTower">
|
|
119
|
+
<!-- Hyperboloid Shell: slightly forward and prominent (y: 128..418) -->
|
|
120
|
+
<!-- Left Flank: Deep Obsidian Body with Gold Contour -->
|
|
121
|
+
<path d="M 180,128
|
|
122
|
+
L 135,128
|
|
123
|
+
C 144,164 146,192 141,210
|
|
124
|
+
C 131,248 114,336 104,418
|
|
125
|
+
L 180,418 Z"
|
|
126
|
+
fill="url(#muralDark)" stroke="#D4AF37" stroke-width="1.5"/>
|
|
127
|
+
|
|
128
|
+
<!-- Right Flank: Deep Obsidian Shadow Body -->
|
|
129
|
+
<path d="M 180,128
|
|
130
|
+
L 225,128
|
|
131
|
+
C 216,164 214,192 219,210
|
|
132
|
+
C 229,248 246,336 256,418
|
|
133
|
+
L 180,418 Z"
|
|
134
|
+
fill="url(#muralDark)" stroke="#AA8214" stroke-width="1.5"/>
|
|
135
|
+
|
|
136
|
+
<!-- Flared Top Crown Opening (Gold Trim on Black) -->
|
|
137
|
+
<ellipse cx="180" cy="128" rx="45" ry="9.5" fill="#0E0E0C" stroke="url(#goldRim)" stroke-width="2.5"/>
|
|
138
|
+
<ellipse cx="180" cy="128" rx="32" ry="6" fill="#000000"/>
|
|
139
|
+
|
|
140
|
+
<!-- Foundation Plinth -->
|
|
141
|
+
<path d="M 100,418 C 100,418 140,425 180,425 C 220,425 260,418 260,418 L 257,424 C 257,424 220,431 180,431 C 140,431 103,424 103,424 Z"
|
|
142
|
+
fill="#0C0C0A" stroke="#AA8214" stroke-width="1.8"/>
|
|
143
|
+
|
|
144
|
+
<!-- WEST MURAL ART: Sharp Geometric Chevrons, Diamonds & Angular African Slashes -->
|
|
145
|
+
<!-- Crown Frieze: Sharp Interlocking Gold Chevrons -->
|
|
146
|
+
<path d="M 142,152 L 150,162 L 158,152 L 166,162 L 174,152 L 180,159 L 186,152 L 194,162 L 202,152 L 210,162 L 218,152"
|
|
147
|
+
fill="none" stroke="url(#goldLight)" stroke-width="2.5" stroke-linejoin="round"/>
|
|
148
|
+
<line x1="140" y1="166" x2="220" y2="166" stroke="#F4F4F0" stroke-width="1.5"/>
|
|
149
|
+
|
|
150
|
+
<!-- Waist: Karabo Poppy Geometric Diamond Medallion Array -->
|
|
151
|
+
<polygon points="180,195 195,210 180,225 165,210" fill="url(#goldLight)"/>
|
|
152
|
+
<polygon points="180,199 190,210 180,221 170,210" fill="#141412"/>
|
|
153
|
+
<circle cx="180" cy="210" r="3.5" fill="#F4F4F0"/>
|
|
154
|
+
|
|
155
|
+
<!-- Mid-Body: Rhythmic Gold Horizontal Strata Bands with African Cuts -->
|
|
156
|
+
<path d="M 136,258 H 224 V 268 H 133 Z" fill="url(#goldLight)"/>
|
|
157
|
+
<path d="M 148,258 L 156,268 M 172,258 L 180,268 M 196,258 L 204,268" stroke="#141412" stroke-width="2"/>
|
|
158
|
+
|
|
159
|
+
<path d="M 126,298 H 234 V 308 H 122 Z" fill="url(#goldLight)"/>
|
|
160
|
+
<path d="M 140,298 L 148,308 M 164,298 L 172,308 M 188,298 L 196,308 M 212,298 L 220,308" stroke="#141412" stroke-width="2"/>
|
|
161
|
+
|
|
162
|
+
<!-- Lower Body: Monumental Diamond Star Crest -->
|
|
163
|
+
<polygon points="180,332 196,350 180,368 164,350" fill="none" stroke="url(#goldLight)" stroke-width="2.5"/>
|
|
164
|
+
<polygon points="180,338 190,350 180,362 170,350" fill="#F4F4F0"/>
|
|
165
|
+
|
|
166
|
+
<!-- Basal Colonnade: Deep V-Strut Cooling Airflow Lattice -->
|
|
167
|
+
<path d="M 112,398 L 126,376 L 140,398 L 154,376 L 168,398 L 182,376 L 196,398 L 210,376 L 224,398 L 238,376 L 252,398"
|
|
168
|
+
fill="none" stroke="url(#goldLight)" stroke-width="2.5" stroke-linejoin="round"/>
|
|
169
|
+
<line x1="108" y1="404" x2="254" y2="404" stroke="#F4F4F0" stroke-width="1.8"/>
|
|
170
|
+
</g>
|
|
171
|
+
|
|
172
|
+
<!-- ======================================================== -->
|
|
173
|
+
<!-- THE SOWETO SKYBRIDGE & SUSPENDED CONSENSUS PENDANT -->
|
|
174
|
+
<!-- Spanning across the two crowns with structural poise -->
|
|
175
|
+
<!-- ======================================================== -->
|
|
176
|
+
<!-- Skybridge Girder Beam (Spanning dynamically from West crown y=128 to East crown y=136) -->
|
|
177
|
+
<path d="M 180,128 L 336,136 L 336,142 L 180,134 Z" fill="#F4F4F0" stroke="#AA8214" stroke-width="1"/>
|
|
178
|
+
<path d="M 180,134 L 336,142" stroke="url(#goldLight)" stroke-width="1.8"/>
|
|
179
|
+
|
|
180
|
+
<!-- Structural Plumb-Line Suspension Cable -->
|
|
181
|
+
<line x1="258" y1="138" x2="258" y2="188" stroke="#F4F4F0" stroke-width="2.2"/>
|
|
182
|
+
|
|
183
|
+
<!-- THE CONSENSUS PENDANT MEDALLION (Suspended in the Asymmetrical Negative Space) -->
|
|
184
|
+
<circle cx="258" cy="188" r="14" fill="#141412" stroke="url(#goldRim)" stroke-width="2.5"/>
|
|
185
|
+
<circle cx="258" cy="188" r="6" fill="#F4F4F0"/>
|
|
186
|
+
|
|
187
|
+
<!-- CARDINAL FINIALS -->
|
|
188
|
+
<circle cx="256" cy="44" r="5" fill="#F4F4F0"/>
|
|
189
|
+
<circle cx="256" cy="468" r="5" fill="#F4F4F0"/>
|
|
190
|
+
|
|
191
|
+
</g>
|
|
192
|
+
</svg>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Filesystem and configuration boundary
|
|
2
|
+
|
|
3
|
+
Inqaba owns configuration discovery, the JSON5 subset parser, filesystem traversal,
|
|
4
|
+
and durable file writes. Umgodi consumes these APIs for CLI inputs, persistence,
|
|
5
|
+
flags, receipts, maintenance and audit.
|
|
6
|
+
|
|
7
|
+
`InqPath` represents an absolute directory. `InqRelPath` supplies relative
|
|
8
|
+
directory intent; `directory / InqRelPath("People/")` returns `InqPath`.
|
|
9
|
+
`directory / "Person.pit"` returns `InqFile`. No operator returns a raw pathlib
|
|
10
|
+
object. `as_path()` is the explicit interoperability escape hatch.
|
|
11
|
+
|
|
12
|
+
`InqEntry` is the common PathLike implementation and the adapter for CLI inputs
|
|
13
|
+
whose file/directory kind is not yet known. Enumeration produces typed directory
|
|
14
|
+
or file objects. Its filesystem methods are explicitly listed, with no dynamic
|
|
15
|
+
forwarding to pathlib. Domain APIs should choose InqPath or InqFile when known.
|
|
16
|
+
|
|
17
|
+
`InqConfig.load()` retains the previous Python discovery and fallback behavior.
|
|
18
|
+
Configured roots are InqPath objects. Umgodi's old OsConfig export is a compatibility
|
|
19
|
+
reference to this single implementation, not a second singleton. JSON5 parsing
|
|
20
|
+
supports the prior Python subset; it does not claim full JSON5 conformance.
|
|
21
|
+
|
|
22
|
+
Canonical writes use `write_durable()`: truncate/write/flush/fsync at the existing
|
|
23
|
+
pathname. Sibling temporary replacement remains a separate explicit operation.
|
|
24
|
+
|
|
25
|
+
This migration covers the filesystem/configuration boundary. It does not yet
|
|
26
|
+
implement the complete C# OsLib, RaiUtils and RaiImage surface or their full
|
|
27
|
+
cloud-operation restrictions.
|
|
28
|
+
|
|
29
|
+
Regenerate the class inventories with `scripts/class_diagram.py`, then render
|
|
30
|
+
with PlantUML. The diagrams describe actual source classes and inheritance.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
@startuml
|
|
2
|
+
skinparam classAttributeIconSize 0
|
|
3
|
+
hide empty members
|
|
4
|
+
left to right direction
|
|
5
|
+
package "inqaba.config" {
|
|
6
|
+
class InqConfig {
|
|
7
|
+
_instance
|
|
8
|
+
+ __init__(config_dict, config_path)
|
|
9
|
+
+ is_config_loaded()
|
|
10
|
+
+ reset()
|
|
11
|
+
+ find_config_file()
|
|
12
|
+
+ load(config_path)
|
|
13
|
+
+ get_cloud_root(cloud_name)
|
|
14
|
+
+ is_cloud_path(path)
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
package "inqaba.entry" {
|
|
18
|
+
class InqEntry {
|
|
19
|
+
+ __init__(value)
|
|
20
|
+
+ as_path()
|
|
21
|
+
+ as_posix()
|
|
22
|
+
+ cwd()
|
|
23
|
+
+ parent()
|
|
24
|
+
+ parents()
|
|
25
|
+
+ name()
|
|
26
|
+
+ stem()
|
|
27
|
+
+ suffix()
|
|
28
|
+
+ parts()
|
|
29
|
+
+ expanduser()
|
|
30
|
+
+ absolute()
|
|
31
|
+
+ resolve(strict)
|
|
32
|
+
+ is_absolute()
|
|
33
|
+
+ relative_to(other)
|
|
34
|
+
+ with_suffix(suffix)
|
|
35
|
+
+ exists()
|
|
36
|
+
+ is_file()
|
|
37
|
+
+ is_dir()
|
|
38
|
+
+ stat()
|
|
39
|
+
+ mkdir(mode, parents, exist_ok)
|
|
40
|
+
+ unlink(missing_ok)
|
|
41
|
+
+ rename(target)
|
|
42
|
+
+ replace(target)
|
|
43
|
+
+ open()
|
|
44
|
+
+ read_text(encoding)
|
|
45
|
+
+ write_text(content, encoding)
|
|
46
|
+
+ read_bytes()
|
|
47
|
+
+ write_bytes(content)
|
|
48
|
+
+ iterdir()
|
|
49
|
+
+ glob(pattern)
|
|
50
|
+
+ copy_to(target)
|
|
51
|
+
+ write_durable(content)
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
package "inqaba.files" {
|
|
55
|
+
class InqFile {
|
|
56
|
+
+ __init__(parent, name)
|
|
57
|
+
+ full_name()
|
|
58
|
+
+ delete()
|
|
59
|
+
}
|
|
60
|
+
class InqTextFile {
|
|
61
|
+
}
|
|
62
|
+
class InqJsonFile {
|
|
63
|
+
+ read_json(encoding)
|
|
64
|
+
+ write_json(value, encoding)
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
package "inqaba.path" {
|
|
68
|
+
class InqPathError {
|
|
69
|
+
}
|
|
70
|
+
class InqRelPath {
|
|
71
|
+
value
|
|
72
|
+
+ segments()
|
|
73
|
+
+ depth()
|
|
74
|
+
}
|
|
75
|
+
class InqPath {
|
|
76
|
+
+ __init__(value)
|
|
77
|
+
+ from_directory(value)
|
|
78
|
+
+ from_path(value)
|
|
79
|
+
+ as_path()
|
|
80
|
+
+ segments()
|
|
81
|
+
+ depth()
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
InqFile --|> InqEntry
|
|
85
|
+
InqTextFile --|> InqFile
|
|
86
|
+
InqJsonFile --|> InqTextFile
|
|
87
|
+
InqPath --|> InqEntry
|
|
88
|
+
InqFile --> InqPath : parent
|
|
89
|
+
InqPath ..> InqRelPath : anchors
|
|
90
|
+
InqConfig --> InqPath : configured roots
|
|
91
|
+
InqEntry *-- "pathlib.Path" : embedded
|
|
92
|
+
@enduml
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" data-diagram-type="CLASS" style="width:1667px;height:1003px;background:#FFFFFF;" width="1667px" height="1003px" viewBox="0 0 1667 1003" zoomAndPan="magnify" preserveAspectRatio="none" contentStyleType="text/css"><?plantuml 1.2026.8?><defs/><g font-family="sans-serif" lengthAdjust="spacing"><!--cluster inqaba--><g class="cluster" data-qualified-name="inqaba" id="ent0003" data-source-line="5"><path d="M8.5,6 L58.261,6 A3.75,3.75 0 0 1 60.761,8.5 L67.761,28.488 L1456.47,28.488 A2.5,2.5 0 0 1 1458.97,30.988 L1458.97,985.5 A2.5,2.5 0 0 1 1456.47,988 L8.5,988 A2.5,2.5 0 0 1 6,985.5 L6,8.5 A2.5,2.5 0 0 1 8.5,6" style="stroke:#000;stroke-width:1.5;" fill="none"/><line x1="6" y1="28.488" x2="67.761" y2="28.488" style="stroke:#000;stroke-width:1.5;"/><text x="10" y="21.535" fill="#000" font-size="14" textLength="48.761" font-weight="700">inqaba</text></g><!--cluster config--><g class="cluster" data-qualified-name="inqaba.config" id="ent0001" data-source-line="4"><path d="M472.33,687 L518.509,687 A3.75,3.75 0 0 1 521.009,689.5 L528.009,709.488 L744.94,709.488 A2.5,2.5 0 0 1 747.44,711.988 L747.44,915.5 A2.5,2.5 0 0 1 744.94,918 L472.33,918 A2.5,2.5 0 0 1 469.83,915.5 L469.83,689.5 A2.5,2.5 0 0 1 472.33,687" style="stroke:#000;stroke-width:1.5;" fill="none"/><line x1="469.83" y1="709.488" x2="528.009" y2="709.488" style="stroke:#000;stroke-width:1.5;"/><text x="473.83" y="702.535" fill="#000" font-size="14" textLength="45.179" font-weight="700">config</text></g><!--cluster entry--><g class="cluster" data-qualified-name="inqaba.entry" id="ent0004" data-source-line="16"><path d="M1169.67,49 L1208.268,49 A3.75,3.75 0 0 1 1210.768,51.5 L1217.768,71.488 L1432.47,71.488 A2.5,2.5 0 0 1 1434.97,73.988 L1434.97,681.5 A2.5,2.5 0 0 1 1432.47,684 L1169.67,684 A2.5,2.5 0 0 1 1167.17,681.5 L1167.17,51.5 A2.5,2.5 0 0 1 1169.67,49" style="stroke:#000;stroke-width:1.5;" fill="none"/><line x1="1167.17" y1="71.488" x2="1217.768" y2="71.488" style="stroke:#000;stroke-width:1.5;"/><text x="1171.17" y="64.535" fill="#000" font-size="14" textLength="37.598" font-weight="700">entry</text></g><!--cluster files--><g class="cluster" data-qualified-name="inqaba.files" id="ent0006" data-source-line="53"><path d="M32.5,409 L64.528,409 A3.75,3.75 0 0 1 67.028,411.5 L74.028,431.488 L708.34,431.488 A2.5,2.5 0 0 1 710.84,433.988 L710.84,547.5 A2.5,2.5 0 0 1 708.34,550 L32.5,550 A2.5,2.5 0 0 1 30,547.5 L30,411.5 A2.5,2.5 0 0 1 32.5,409" style="stroke:#000;stroke-width:1.5;" fill="none"/><line x1="30" y1="431.488" x2="74.028" y2="431.488" style="stroke:#000;stroke-width:1.5;"/><text x="34" y="424.535" fill="#000" font-size="14" textLength="31.028" font-weight="700">files</text></g><!--cluster path--><g class="cluster" data-qualified-name="inqaba.path" id="ent0010" data-source-line="66"><path d="M888.94,708 L922.315,708 A3.75,3.75 0 0 1 924.815,710.5 L931.815,730.488 L1366.38,730.488 A2.5,2.5 0 0 1 1368.88,732.988 L1368.88,961.5 A2.5,2.5 0 0 1 1366.38,964 L888.94,964 A2.5,2.5 0 0 1 886.44,961.5 L886.44,710.5 A2.5,2.5 0 0 1 888.94,708" style="stroke:#000;stroke-width:1.5;" fill="none"/><line x1="886.44" y1="730.488" x2="931.815" y2="730.488" style="stroke:#000;stroke-width:1.5;"/><text x="890.44" y="723.535" fill="#000" font-size="14" textLength="32.375" font-weight="700">path</text></g><!--cluster pathlib--><g class="cluster" data-qualified-name="pathlib" id="ent0022" data-source-line="90"><path d="M1561.47,325 L1613.227,325 A3.75,3.75 0 0 1 1615.727,327.5 L1622.727,347.488 L1649.86,347.488 A2.5,2.5 0 0 1 1652.36,349.988 L1652.36,405.5 A2.5,2.5 0 0 1 1649.86,408 L1561.47,408 A2.5,2.5 0 0 1 1558.97,405.5 L1558.97,327.5 A2.5,2.5 0 0 1 1561.47,325" style="stroke:#000;stroke-width:1.5;" fill="none"/><line x1="1558.97" y1="347.488" x2="1622.727" y2="347.488" style="stroke:#000;stroke-width:1.5;"/><text x="1562.97" y="340.535" fill="#000" font-size="14" textLength="50.757" font-weight="700">pathlib</text></g><!--class InqConfig--><g class="entity" data-qualified-name="inqaba.config.InqConfig" id="ent0002" data-source-line="5"><rect x="485.83" y="722.05" width="245.611" height="179.906" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="571.17" cy="738.05" rx="11" ry="11" fill="#ADD1B2" style="stroke:#181818;stroke-width:1;"/><path d="M573.643,744.193 Q573.062,744.492 572.423,744.641 Q571.784,744.791 571.078,744.791 Q568.571,744.791 567.251,743.139 Q565.932,741.487 565.932,738.366 Q565.932,735.237 567.251,733.585 Q568.571,731.933 571.078,731.933 Q571.784,731.933 572.431,732.082 Q573.079,732.232 573.643,732.53 L573.643,735.253 Q573.012,734.672 572.419,734.402 Q571.825,734.133 571.194,734.133 Q569.85,734.133 569.165,735.199 Q568.48,736.266 568.48,738.366 Q568.48,740.458 569.165,741.524 Q569.85,742.591 571.194,742.591 Q571.825,742.591 572.419,742.321 Q573.012,742.051 573.643,741.47 Z " fill="#000"/><text x="591.67" y="743.341" fill="#000" font-size="14" textLength="66.432">InqConfig</text><line x1="486.83" y1="754.05" x2="730.441" y2="754.05" style="stroke:#181818;stroke-width:0.5;"/><text x="491.83" y="771.585" fill="#000" font-size="14" textLength="63.499">_instance</text><line x1="486.83" y1="778.538" x2="730.441" y2="778.538" style="stroke:#181818;stroke-width:0.5;"/><text x="491.83" y="796.073" fill="#000" font-size="14" textLength="233.611">+__init__(config_dict, config_path)</text><text x="491.83" y="812.562" fill="#000" font-size="14" textLength="133.602">+is_config_loaded()</text><text x="491.83" y="829.05" fill="#000" font-size="14" textLength="53.936">+reset()</text><text x="491.83" y="845.538" fill="#000" font-size="14" textLength="124.353">+find_config_file()</text><text x="491.83" y="862.027" fill="#000" font-size="14" textLength="129.274">+load(config_path)</text><text x="491.83" y="878.515" fill="#000" font-size="14" textLength="203.089">+get_cloud_root(cloud_name)</text><text x="491.83" y="895.003" fill="#000" font-size="14" textLength="143.671">+is_cloud_path(path)</text></g><!--class InqEntry--><g class="entity" data-qualified-name="inqaba.entry.InqEntry" id="ent0005" data-source-line="17"><rect x="1183.17" y="83.94" width="235.795" height="584.113" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="1268.773" cy="99.94" rx="11" ry="11" fill="#ADD1B2" style="stroke:#181818;stroke-width:1;"/><path d="M1271.246,106.083 Q1270.665,106.382 1270.026,106.531 Q1269.387,106.681 1268.681,106.681 Q1266.174,106.681 1264.855,105.029 Q1263.535,103.377 1263.535,100.256 Q1263.535,97.127 1264.855,95.475 Q1266.174,93.823 1268.681,93.823 Q1269.387,93.823 1270.034,93.972 Q1270.682,94.122 1271.246,94.42 L1271.246,97.143 Q1270.615,96.562 1270.022,96.292 Q1269.428,96.023 1268.797,96.023 Q1267.453,96.023 1266.768,97.089 Q1266.083,98.156 1266.083,100.256 Q1266.083,102.348 1266.768,103.414 Q1267.453,104.481 1268.797,104.481 Q1269.428,104.481 1270.022,104.211 Q1270.615,103.941 1271.246,103.36 Z " fill="#000"/><text x="1289.273" y="105.231" fill="#000" font-size="14" textLength="56.089">InqEntry</text><line x1="1184.17" y1="115.94" x2="1417.965" y2="115.94" style="stroke:#181818;stroke-width:0.5;"/><text x="1189.17" y="133.475" fill="#000" font-size="14" textLength="105.766">+__init__(value)</text><text x="1189.17" y="149.963" fill="#000" font-size="14" textLength="72.57">+as_path()</text><text x="1189.17" y="166.452" fill="#000" font-size="14" textLength="79.283">+as_posix()</text><text x="1189.17" y="182.94" fill="#000" font-size="14" textLength="47.004">+cwd()</text><text x="1189.17" y="199.428" fill="#000" font-size="14" textLength="64.23">+parent()</text><text x="1189.17" y="215.917" fill="#000" font-size="14" textLength="71.367">+parents()</text><text x="1189.17" y="232.405" fill="#000" font-size="14" textLength="57.524">+name()</text><text x="1189.17" y="248.893" fill="#000" font-size="14" textLength="53.478">+stem()</text><text x="1189.17" y="265.381" fill="#000" font-size="14" textLength="58.987">+suffix()</text><text x="1189.17" y="281.87" fill="#000" font-size="14" textLength="54.879">+parts()</text><text x="1189.17" y="298.358" fill="#000" font-size="14" textLength="100.017">+expanduser()</text><text x="1189.17" y="314.846" fill="#000" font-size="14" textLength="78.285">+absolute()</text><text x="1189.17" y="331.335" fill="#000" font-size="14" textLength="103.147">+resolve(strict)</text><text x="1189.17" y="347.823" fill="#000" font-size="14" textLength="96.469">+is_absolute()</text><text x="1189.17" y="364.311" fill="#000" font-size="14" textLength="126.759">+relative_to(other)</text><text x="1189.17" y="380.799" fill="#000" font-size="14" textLength="133.499">+with_suffix(suffix)</text><text x="1189.17" y="397.288" fill="#000" font-size="14" textLength="60.177">+exists()</text><text x="1189.17" y="413.776" fill="#000" font-size="14" textLength="59.459">+is_file()</text><text x="1189.17" y="430.264" fill="#000" font-size="14" textLength="57.005">+is_dir()</text><text x="1189.17" y="446.753" fill="#000" font-size="14" textLength="45.575">+stat()</text><text x="1189.17" y="463.241" fill="#000" font-size="14" textLength="223.795">+mkdir(mode, parents, exist_ok)</text><text x="1189.17" y="479.729" fill="#000" font-size="14" textLength="139.214">+unlink(missing_ok)</text><text x="1189.17" y="496.217" fill="#000" font-size="14" textLength="111.515">+rename(target)</text><text x="1189.17" y="512.706" fill="#000" font-size="14" textLength="109.785">+replace(target)</text><text x="1189.17" y="529.194" fill="#000" font-size="14" textLength="54.134">+open()</text><text x="1189.17" y="545.682" fill="#000" font-size="14" textLength="146.699">+read_text(encoding)</text><text x="1189.17" y="562.17" fill="#000" font-size="14" textLength="210.506">+write_text(content, encoding)</text><text x="1189.17" y="578.659" fill="#000" font-size="14" textLength="93.604">+read_bytes()</text><text x="1189.17" y="595.147" fill="#000" font-size="14" textLength="148.552">+write_bytes(content)</text><text x="1189.17" y="611.635" fill="#000" font-size="14" textLength="61.633">+iterdir()</text><text x="1189.17" y="628.124" fill="#000" font-size="14" textLength="99.654">+glob(pattern)</text><text x="1189.17" y="644.612" fill="#000" font-size="14" textLength="113.429">+copy_to(target)</text><text x="1189.17" y="661.1" fill="#000" font-size="14" textLength="163.871">+write_durable(content)</text></g><!--class InqFile--><g class="entity" data-qualified-name="inqaba.files.InqFile" id="ent0007" data-source-line="54"><rect x="522.44" y="444.27" width="172.398" height="89.465" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="581.923" cy="460.27" rx="11" ry="11" fill="#ADD1B2" style="stroke:#181818;stroke-width:1;"/><path d="M584.396,466.413 Q583.815,466.712 583.176,466.861 Q582.537,467.011 581.831,467.011 Q579.324,467.011 578.004,465.359 Q576.685,463.707 576.685,460.586 Q576.685,457.457 578.004,455.805 Q579.324,454.153 581.831,454.153 Q582.537,454.153 583.184,454.302 Q583.832,454.452 584.396,454.75 L584.396,457.473 Q583.765,456.892 583.172,456.622 Q582.578,456.353 581.947,456.353 Q580.603,456.353 579.918,457.419 Q579.233,458.486 579.233,460.586 Q579.233,462.678 579.918,463.744 Q580.603,464.811 581.947,464.811 Q582.578,464.811 583.172,464.541 Q583.765,464.271 584.396,463.69 Z " fill="#000"/><text x="602.423" y="465.561" fill="#000" font-size="14" textLength="44.933">InqFile</text><line x1="523.44" y1="476.27" x2="693.838" y2="476.27" style="stroke:#181818;stroke-width:0.5;"/><text x="528.44" y="493.805" fill="#000" font-size="14" textLength="160.398">+__init__(parent, name)</text><text x="528.44" y="510.293" fill="#000" font-size="14" textLength="86.454">+full_name()</text><text x="528.44" y="526.782" fill="#000" font-size="14" textLength="61.729">+delete()</text></g><!--class InqTextFile--><g class="entity" data-qualified-name="inqaba.files.InqTextFile" id="ent0008" data-source-line="59"><rect x="315.42" y="473" width="107.407" height="32" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="330.42" cy="489" rx="11" ry="11" fill="#ADD1B2" style="stroke:#181818;stroke-width:1;"/><path d="M332.893,495.143 Q332.312,495.442 331.673,495.591 Q331.034,495.741 330.328,495.741 Q327.821,495.741 326.502,494.089 Q325.182,492.437 325.182,489.316 Q325.182,486.187 326.502,484.535 Q327.821,482.883 330.328,482.883 Q331.034,482.883 331.681,483.032 Q332.329,483.182 332.893,483.48 L332.893,486.203 Q332.262,485.622 331.669,485.352 Q331.075,485.083 330.444,485.083 Q329.1,485.083 328.415,486.149 Q327.73,487.216 327.73,489.316 Q327.73,491.408 328.415,492.474 Q329.1,493.541 330.444,493.541 Q331.075,493.541 331.669,493.271 Q332.262,493.001 332.893,492.42 Z " fill="#000"/><text x="344.42" y="494.291" fill="#000" font-size="14" textLength="75.407">InqTextFile</text></g><!--class InqJsonFile--><g class="entity" data-qualified-name="inqaba.files.InqJsonFile" id="ent0009" data-source-line="61"><rect x="46" y="452.51" width="208.424" height="72.977" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="109.106" cy="468.51" rx="11" ry="11" fill="#ADD1B2" style="stroke:#181818;stroke-width:1;"/><path d="M111.579,474.653 Q110.998,474.952 110.359,475.101 Q109.72,475.251 109.014,475.251 Q106.507,475.251 105.188,473.599 Q103.868,471.947 103.868,468.826 Q103.868,465.697 105.188,464.045 Q106.507,462.393 109.014,462.393 Q109.72,462.393 110.367,462.542 Q111.015,462.692 111.579,462.99 L111.579,465.713 Q110.948,465.132 110.355,464.862 Q109.761,464.593 109.13,464.593 Q107.786,464.593 107.101,465.659 Q106.416,466.726 106.416,468.826 Q106.416,470.918 107.101,471.984 Q107.786,473.051 109.13,473.051 Q109.761,473.051 110.355,472.781 Q110.948,472.511 111.579,471.93 Z " fill="#000"/><text x="129.606" y="473.801" fill="#000" font-size="14" textLength="73.712">InqJsonFile</text><line x1="47" y1="484.51" x2="253.424" y2="484.51" style="stroke:#181818;stroke-width:0.5;"/><text x="52" y="502.045" fill="#000" font-size="14" textLength="148.524">+read_json(encoding)</text><text x="52" y="518.533" fill="#000" font-size="14" textLength="196.424">+write_json(value, encoding)</text></g><!--class InqPathError--><g class="entity" data-qualified-name="inqaba.path.InqPathError" id="ent0011" data-source-line="67"><rect x="928.16" y="916" width="116.301" height="32" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="943.16" cy="932" rx="11" ry="11" fill="#ADD1B2" style="stroke:#181818;stroke-width:1;"/><path d="M945.633,938.143 Q945.052,938.442 944.413,938.591 Q943.774,938.741 943.068,938.741 Q940.561,938.741 939.242,937.089 Q937.922,935.437 937.922,932.316 Q937.922,929.187 939.242,927.535 Q940.561,925.883 943.068,925.883 Q943.774,925.883 944.421,926.032 Q945.069,926.182 945.633,926.48 L945.633,929.203 Q945.002,928.622 944.409,928.352 Q943.815,928.083 943.184,928.083 Q941.84,928.083 941.155,929.149 Q940.47,930.216 940.47,932.316 Q940.47,934.408 941.155,935.474 Q941.84,936.541 943.184,936.541 Q943.815,936.541 944.409,936.271 Q945.002,936.001 945.633,935.42 Z " fill="#000"/><text x="957.16" y="937.291" fill="#000" font-size="14" textLength="84.301">InqPathError</text></g><!--class InqRelPath--><g class="entity" data-qualified-name="inqaba.path.InqRelPath" id="ent0012" data-source-line="69"><rect x="1249.26" y="763.27" width="103.627" height="97.465" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="1264.26" cy="779.27" rx="11" ry="11" fill="#ADD1B2" style="stroke:#181818;stroke-width:1;"/><path d="M1266.733,785.413 Q1266.152,785.712 1265.513,785.861 Q1264.874,786.011 1264.168,786.011 Q1261.661,786.011 1260.342,784.359 Q1259.022,782.707 1259.022,779.586 Q1259.022,776.457 1260.342,774.805 Q1261.661,773.153 1264.168,773.153 Q1264.874,773.153 1265.521,773.302 Q1266.169,773.452 1266.733,773.75 L1266.733,776.473 Q1266.102,775.892 1265.509,775.622 Q1264.915,775.353 1264.284,775.353 Q1262.94,775.353 1262.255,776.419 Q1261.57,777.486 1261.57,779.586 Q1261.57,781.678 1262.255,782.744 Q1262.94,783.811 1264.284,783.811 Q1264.915,783.811 1265.509,783.541 Q1266.102,783.271 1266.733,782.69 Z " fill="#000"/><text x="1278.26" y="784.561" fill="#000" font-size="14" textLength="71.627">InqRelPath</text><line x1="1250.26" y1="795.27" x2="1351.887" y2="795.27" style="stroke:#181818;stroke-width:0.5;"/><text x="1255.26" y="812.805" fill="#000" font-size="14" textLength="35.513">value</text><line x1="1250.26" y1="819.758" x2="1351.887" y2="819.758" style="stroke:#181818;stroke-width:0.5;"/><text x="1255.26" y="837.293" fill="#000" font-size="14" textLength="85.832">+segments()</text><text x="1255.26" y="853.782" fill="#000" font-size="14" textLength="59.582">+depth()</text></g><!--class InqPath--><g class="entity" data-qualified-name="inqaba.path.InqPath" id="ent0013" data-source-line="74"><rect x="902.44" y="742.54" width="167.729" height="138.93" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="956.591" cy="758.54" rx="11" ry="11" fill="#ADD1B2" style="stroke:#181818;stroke-width:1;"/><path d="M959.064,764.683 Q958.483,764.982 957.844,765.131 Q957.205,765.281 956.499,765.281 Q953.992,765.281 952.672,763.629 Q951.353,761.977 951.353,758.856 Q951.353,755.727 952.672,754.075 Q953.992,752.423 956.499,752.423 Q957.205,752.423 957.852,752.572 Q958.5,752.722 959.064,753.02 L959.064,755.743 Q958.433,755.162 957.84,754.892 Q957.246,754.623 956.615,754.623 Q955.271,754.623 954.586,755.689 Q953.901,756.756 953.901,758.856 Q953.901,760.948 954.586,762.014 Q955.271,763.081 956.615,763.081 Q957.246,763.081 957.84,762.811 Q958.433,762.541 959.064,761.96 Z " fill="#000"/><text x="977.091" y="763.831" fill="#000" font-size="14" textLength="50.928">InqPath</text><line x1="903.44" y1="774.54" x2="1069.169" y2="774.54" style="stroke:#181818;stroke-width:0.5;"/><text x="908.44" y="792.075" fill="#000" font-size="14" textLength="105.766">+__init__(value)</text><text x="908.44" y="808.563" fill="#000" font-size="14" textLength="155.729">+from_directory(value)</text><text x="908.44" y="825.052" fill="#000" font-size="14" textLength="125.761">+from_path(value)</text><text x="908.44" y="841.54" fill="#000" font-size="14" textLength="72.57">+as_path()</text><text x="908.44" y="858.028" fill="#000" font-size="14" textLength="85.832">+segments()</text><text x="908.44" y="874.517" fill="#000" font-size="14" textLength="59.582">+depth()</text></g><!--class Path--><g class="entity" data-qualified-name="pathlib.Path" id="ent0021" data-source-line="90"><rect x="1574.97" y="360" width="61.395" height="32" fill="#F1F1F1" style="stroke:#181818;stroke-width:0.5;" rx="2.5" ry="2.5"/><ellipse cx="1589.97" cy="376" rx="11" ry="11" fill="#ADD1B2" style="stroke:#181818;stroke-width:1;"/><path d="M1592.443,382.143 Q1591.862,382.442 1591.223,382.591 Q1590.584,382.741 1589.878,382.741 Q1587.371,382.741 1586.052,381.089 Q1584.732,379.437 1584.732,376.316 Q1584.732,373.187 1586.052,371.535 Q1587.371,369.883 1589.878,369.883 Q1590.584,369.883 1591.231,370.032 Q1591.879,370.182 1592.443,370.48 L1592.443,373.203 Q1591.812,372.622 1591.219,372.352 Q1590.625,372.083 1589.994,372.083 Q1588.65,372.083 1587.965,373.149 Q1587.28,374.216 1587.28,376.316 Q1587.28,378.408 1587.965,379.474 Q1588.65,380.541 1589.994,380.541 Q1590.625,380.541 1591.219,380.271 Q1591.812,380.001 1592.443,379.42 Z " fill="#000"/><text x="1603.97" y="381.291" fill="#000" font-size="14" textLength="29.395">Path</text></g><!--link InqFile to InqEntry--><g class="link" data-entity-1="ent0007" data-entity-2="ent0005" id="lnk14" data-source-line="83" data-link-type="extension"><path d="M694.99,475.03 C817.75,454.94 1026.806,420.728 1165.166,398.078" style="stroke:#181818;stroke-width:1;" fill="none" id="InqFile-to-InqEntry" codeLine="83"/><polygon points="1182.93,395.17,1164.197,392.157,1166.136,403.999,1182.93,395.17" fill="none" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><!--link InqTextFile to InqFile--><g class="link" data-entity-1="ent0008" data-entity-2="ent0007" id="lnk15" data-source-line="84" data-link-type="extension"><path d="M423.13,489 C452.25,489 471.08,489 504.15,489" style="stroke:#181818;stroke-width:1;" fill="none" id="InqTextFile-to-InqFile" codeLine="84"/><polygon points="522.15,489,504.15,483,504.15,495,522.15,489" fill="none" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><!--link InqJsonFile to InqTextFile--><g class="link" data-entity-1="ent0009" data-entity-2="ent0008" id="lnk16" data-source-line="85" data-link-type="extension"><path d="M254.9,489 C275.71,489 278.75,489 296.95,489" style="stroke:#181818;stroke-width:1;" fill="none" id="InqJsonFile-to-InqTextFile" codeLine="85"/><polygon points="314.95,489,296.95,483,296.95,495,314.95,489" fill="none" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><!--link InqPath to InqEntry--><g class="link" data-entity-1="ent0013" data-entity-2="ent0005" id="lnk17" data-source-line="86" data-link-type="extension"><path d="M1037.21,742.43 C1076.36,687.86 1121.968,624.276 1172.298,554.116" style="stroke:#181818;stroke-width:1;" fill="none" id="InqPath-to-InqEntry" codeLine="86"/><polygon points="1182.79,539.49,1167.423,550.619,1177.173,557.613,1182.79,539.49" fill="none" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/></g><!--link InqFile to InqPath--><g class="link" data-entity-1="ent0007" data-entity-2="ent0013" id="lnk18" data-source-line="87" data-link-type="dependency"><path d="M661.87,533.91 C724.67,587.91 826.989,675.88 900.459,739.05" style="stroke:#181818;stroke-width:1;" fill="none" id="InqFile-to-InqPath" codeLine="87"/><polygon points="904.25,742.31,900.034,733.409,900.459,739.05,894.818,739.475,904.25,742.31" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/><text x="796.94" y="618.138" fill="#000" font-size="13" textLength="40.854">parent</text></g><!--link InqPath to InqRelPath--><g class="link" data-entity-1="ent0013" data-entity-2="ent0012" id="lnk19" data-source-line="88" data-link-type="dependency"><path d="M1070.3,812 C1127.13,812 1195.67,812 1244.05,812" style="stroke:#181818;stroke-width:1;stroke-dasharray:7,7;" fill="none" id="InqPath-to-InqRelPath" codeLine="88"/><polygon points="1249.05,812,1240.05,808,1244.05,812,1240.05,816,1249.05,812" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/><text x="1101.17" y="808.568" fill="#000" font-size="13" textLength="49.905">anchors</text></g><!--link InqConfig to InqPath--><g class="link" data-entity-1="ent0002" data-entity-2="ent0013" id="lnk20" data-source-line="89" data-link-type="dependency"><path d="M731.87,812 C787.55,812 847.04,812 897.03,812" style="stroke:#181818;stroke-width:1;" fill="none" id="InqConfig-to-InqPath" codeLine="89"/><polygon points="902.03,812,893.03,808,897.03,812,893.03,816,902.03,812" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/><text x="764.44" y="808.568" fill="#000" font-size="13" textLength="105.06">configured roots</text></g><!--reverse link InqEntry to Path--><g class="link" data-entity-1="ent0005" data-entity-2="ent0021" id="lnk23" data-source-line="90" data-link-type="composition"><path d="M1431.06,376 C1487.44,376 1538.53,376 1574.72,376" style="stroke:#181818;stroke-width:1;" fill="none" id="InqEntry-backto-Path" codeLine="90"/><polygon points="1419.06,376,1425.06,380,1431.06,376,1425.06,372,1419.06,376" fill="#181818" style="stroke:#181818;stroke-width:1;stroke-linejoin:miter;stroke-miterlimit:10;"/><text x="1475.97" y="372.568" fill="#000" font-size="13" textLength="66.593">embedded</text></g><?plantuml-src VLLDRzim3BtxLmWzULiIxDn3WM7eWEvKRBiBiaKdMcJ9bUYssPR_FkhB7qrRv13nYNpKeoZQ7vKPX1CzQxNm_WkYKys8SDTQyrFz0VQvEYW93Fe1Jwo7lW7dAmqTChJCgVq1cLGEMbJML8DeZs8Fx4gP1z687P5qQd_5_bQHdTsPXwyH8eGnhen7OLgWzIV6oLJ8UPs2k5GjRbWs1e673z5DUPunROK4MIVOWGVCwquPMPmwfI73mR--uDi3ybRRKN9dBTPfQKGFSxe8XOWwXPtfzr8f67IdbT3RW4IT2ssFGe-PMVZ4ELlMg-Tijaz565qESQyCdwrmohpq27rPZbqtyL30v0xFWp1ozE1ApiPRJNSzbz3gHwWzjK2Ba_mBBorGFG97MriyW4lmay83pwdJNqcg_7G2OblS1rdKEPC0KKJsnm3tLiAc2Dua7cwFoMKqMfbZtIllbTbFCFc6ag1mTAi56hHervWTm4ngXEG8prY3QQqaiYp7AOIqGHs3T0OwmieZHZOdX28kXIGansIT26uMkjUs2Nr4eCbtROTJgERoY8bCZauqLA-9xhNE2nNrgyxxHiZBnak5tB2vixjHQxve8GaQuYsVPwPVL83Cja2_UsiMEM8bVXFsQWtZHcpxPGLV4n9Umqh7FG6tpbctJly3TDY9sIDnQY3Ozukt8M68R-kyfdldFNREzZoDCkjE5plnhRxvVD_CVgxAXMot_swckL0jYrjsWb4jwrisYcTLL5nmPVURIUTrVZfJo6vtiopUDQF1Ux0qo-UPl8vFat9q85cOZD4npRIFsosx2kArQdRtyTQkMVWoI9h7_m40?></g></svg>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Shared Python framework boundaries for RAIkeep."""
|
|
2
|
+
|
|
3
|
+
from .files import InqFile, InqJsonFile, InqTextFile
|
|
4
|
+
from .entry import InqEntry
|
|
5
|
+
from .config import DEFAULT_CONFIG_FILE_LOCATION, InqConfig
|
|
6
|
+
from .path import InqPath, InqPathError, InqRelPath
|
|
7
|
+
|
|
8
|
+
__version__ = "0.1.0"
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"InqEntry",
|
|
12
|
+
"InqFile",
|
|
13
|
+
"InqConfig",
|
|
14
|
+
"InqJsonFile",
|
|
15
|
+
"InqPath",
|
|
16
|
+
"InqPathError",
|
|
17
|
+
"InqRelPath",
|
|
18
|
+
"InqTextFile",
|
|
19
|
+
"DEFAULT_CONFIG_FILE_LOCATION",
|
|
20
|
+
]
|