qtype 0.0.11__py3-none-any.whl → 0.0.12__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.
- qtype/application/converters/types.py +3 -3
- qtype/loader.py +6 -1
- {qtype-0.0.11.dist-info → qtype-0.0.12.dist-info}/METADATA +1 -1
- {qtype-0.0.11.dist-info → qtype-0.0.12.dist-info}/RECORD +8 -8
- {qtype-0.0.11.dist-info → qtype-0.0.12.dist-info}/WHEEL +0 -0
- {qtype-0.0.11.dist-info → qtype-0.0.12.dist-info}/entry_points.txt +0 -0
- {qtype-0.0.11.dist-info → qtype-0.0.12.dist-info}/licenses/LICENSE +0 -0
- {qtype-0.0.11.dist-info → qtype-0.0.12.dist-info}/top_level.txt +0 -0
|
@@ -9,14 +9,14 @@ PRIMITIVE_TO_PYTHON_TYPE = {
|
|
|
9
9
|
PrimitiveTypeEnum.audio: bytes,
|
|
10
10
|
PrimitiveTypeEnum.boolean: bool,
|
|
11
11
|
PrimitiveTypeEnum.bytes: bytes,
|
|
12
|
-
PrimitiveTypeEnum.date:
|
|
13
|
-
PrimitiveTypeEnum.datetime:
|
|
12
|
+
PrimitiveTypeEnum.date: date,
|
|
13
|
+
PrimitiveTypeEnum.datetime: datetime,
|
|
14
14
|
PrimitiveTypeEnum.int: int,
|
|
15
15
|
PrimitiveTypeEnum.file: bytes, # Use bytes for file content
|
|
16
16
|
PrimitiveTypeEnum.float: float,
|
|
17
17
|
PrimitiveTypeEnum.image: bytes, # Use bytes for image data
|
|
18
18
|
PrimitiveTypeEnum.text: str,
|
|
19
|
-
PrimitiveTypeEnum.time:
|
|
19
|
+
PrimitiveTypeEnum.time: time, # Use time for time representation
|
|
20
20
|
PrimitiveTypeEnum.video: bytes, # Use bytes for video data
|
|
21
21
|
}
|
|
22
22
|
|
qtype/loader.py
CHANGED
|
@@ -211,7 +211,12 @@ def _resolve_path(current_path: str, target_path: str) -> str:
|
|
|
211
211
|
return urljoin(current_path, target_path)
|
|
212
212
|
else:
|
|
213
213
|
# Current is a local path, resolve relative to its directory
|
|
214
|
-
|
|
214
|
+
current_path_obj = Path(current_path)
|
|
215
|
+
if current_path_obj.is_dir():
|
|
216
|
+
current_dir = current_path_obj
|
|
217
|
+
else:
|
|
218
|
+
# If it's a directory or doesn't exist yet, use it as-is
|
|
219
|
+
current_dir = current_path_obj.parent
|
|
215
220
|
return str(current_dir / target_path)
|
|
216
221
|
|
|
217
222
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
qtype/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
qtype/cli.py,sha256=XSVtfzpjTbQBQ60iyb5oupwi-mFpGH5jT8H1bJQdjis,4697
|
|
3
|
-
qtype/loader.py,sha256=
|
|
3
|
+
qtype/loader.py,sha256=5yqD19-ke5iBemeO1XC-o77y8WzNHWh3YKKs2cEY3MU,12782
|
|
4
4
|
qtype/application/__init__.py,sha256=WS3x0b0NRt-nRmj1trsytlvMpQS5KN7Hi6THGfY8bKE,230
|
|
5
5
|
qtype/application/documentation.py,sha256=_ftD344BS7xca6zxjAoiUzTyBrLTtH4iDXUkN4OO4Hs,4992
|
|
6
6
|
qtype/application/facade.py,sha256=GQ05OFs_FL5m-l8wAf05tujwUnoO5ciEX0vGozLlMcI,5660
|
|
@@ -9,7 +9,7 @@ qtype/application/commons/tools.py,sha256=pJFY5mPiFErXVFLw2GtiFoWnS8xCNaDVtk-opk
|
|
|
9
9
|
qtype/application/converters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
qtype/application/converters/tools_from_api.py,sha256=qsycjLGZDnawND8JtK97avAEJcpAm5FGs8nDgePXzbc,774
|
|
11
11
|
qtype/application/converters/tools_from_module.py,sha256=zNyJdgMButHOmgXy0m1OKVPDUhl-4ZaSrSRsQBcSjvA,8017
|
|
12
|
-
qtype/application/converters/types.py,sha256=
|
|
12
|
+
qtype/application/converters/types.py,sha256=MNH0WOkY2ijGV17kLZIsp8mcHbfgUgLitpagKSaSYSU,1184
|
|
13
13
|
qtype/base/__init__.py,sha256=4jwcB8cDHzDNF3NBv8WqHNk3sDZDNvUFNjx2CKZ-pyY,283
|
|
14
14
|
qtype/base/exceptions.py,sha256=NR6-p6FnIabFPid9xIUTTeNhCYoIw8sbxEzaWQ11a4o,1155
|
|
15
15
|
qtype/base/logging.py,sha256=eqStjILlmhNryYRqUiyTdDHoUoiLKSY8J0GevvzvTKQ,1075
|
|
@@ -97,9 +97,9 @@ qtype/semantic/generate.py,sha256=4xYDSz7sJG-py4MqLP1ePZjm5uwvAmOxsNRfF1NZFWY,15
|
|
|
97
97
|
qtype/semantic/model.py,sha256=pFFUuLgKIKac9-vgPkv3m9wL5hjaGGuNrcUptnKgt3o,15256
|
|
98
98
|
qtype/semantic/resolver.py,sha256=rhePhY1m4h-qYZucIcBcu0DMocjlOs5OVSbhR5HZ2xo,3404
|
|
99
99
|
qtype/semantic/visualize.py,sha256=8eHKgiPOqbJIEd7LUQ1PiSO0RF6GUrnBQue9tV6EbMU,16924
|
|
100
|
-
qtype-0.0.
|
|
101
|
-
qtype-0.0.
|
|
102
|
-
qtype-0.0.
|
|
103
|
-
qtype-0.0.
|
|
104
|
-
qtype-0.0.
|
|
105
|
-
qtype-0.0.
|
|
100
|
+
qtype-0.0.12.dist-info/licenses/LICENSE,sha256=1KA5EgYBSR0O6nCH2HEvk6Di53YKJ9r_VCR7G8G8qAY,11341
|
|
101
|
+
qtype-0.0.12.dist-info/METADATA,sha256=o4iYQxFZQyK9By7ozLQJx8ZVmlL_1Pez4ilCbrfLAq8,4589
|
|
102
|
+
qtype-0.0.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
103
|
+
qtype-0.0.12.dist-info/entry_points.txt,sha256=5y4vj8RLvgl2tXSj-Hm7v5-Tn3kP4-UonjNoN-mfaQE,41
|
|
104
|
+
qtype-0.0.12.dist-info/top_level.txt,sha256=ONroH5B0mZ51jr7NSWCK0weFwwCO7wBLmyVS1YqNU14,6
|
|
105
|
+
qtype-0.0.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|