arcade-core 3.1.0__py3-none-any.whl → 3.2.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.
- arcade_core/catalog.py +2 -1
- arcade_core/toolkit.py +0 -7
- arcade_core/utils.py +7 -0
- {arcade_core-3.1.0.dist-info → arcade_core-3.2.0.dist-info}/METADATA +1 -1
- {arcade_core-3.1.0.dist-info → arcade_core-3.2.0.dist-info}/RECORD +6 -6
- {arcade_core-3.1.0.dist-info → arcade_core-3.2.0.dist-info}/WHEEL +0 -0
arcade_core/catalog.py
CHANGED
|
@@ -58,6 +58,7 @@ from arcade_core.utils import (
|
|
|
58
58
|
is_string_literal,
|
|
59
59
|
is_union,
|
|
60
60
|
snake_to_pascal_case,
|
|
61
|
+
space_to_snake_case,
|
|
61
62
|
)
|
|
62
63
|
|
|
63
64
|
logger = logging.getLogger(__name__)
|
|
@@ -418,7 +419,7 @@ class ToolCatalog(BaseModel):
|
|
|
418
419
|
metadata_requirement = create_metadata_requirement(tool, auth_requirement)
|
|
419
420
|
|
|
420
421
|
toolkit_definition = ToolkitDefinition(
|
|
421
|
-
name=snake_to_pascal_case(toolkit_name),
|
|
422
|
+
name=snake_to_pascal_case(space_to_snake_case(toolkit_name)),
|
|
422
423
|
description=toolkit_desc,
|
|
423
424
|
version=toolkit_version,
|
|
424
425
|
)
|
arcade_core/toolkit.py
CHANGED
|
@@ -361,8 +361,6 @@ def get_package_directory(package_name: str) -> str:
|
|
|
361
361
|
|
|
362
362
|
|
|
363
363
|
class Validate:
|
|
364
|
-
warn = True
|
|
365
|
-
|
|
366
364
|
@classmethod
|
|
367
365
|
def path(cls, path: str | Path) -> bool:
|
|
368
366
|
"""
|
|
@@ -376,11 +374,6 @@ class Validate:
|
|
|
376
374
|
all_parts = set(posix_path.parts) | set(windows_path.parts)
|
|
377
375
|
|
|
378
376
|
for part in all_parts:
|
|
379
|
-
if (part == "venv" or part.startswith(".")) and cls.warn:
|
|
380
|
-
print(
|
|
381
|
-
f"⚠️ Your package may contain a venv directory or hidden files. We suggest moving these out of the toolkit directory to avoid deployment issues: {path}"
|
|
382
|
-
)
|
|
383
|
-
cls.warn = False
|
|
384
377
|
if part in {"dist", "build", "__pycache__", "coverage.xml"}:
|
|
385
378
|
return False
|
|
386
379
|
if part.endswith(".lock"):
|
arcade_core/utils.py
CHANGED
|
@@ -29,6 +29,13 @@ def pascal_to_snake_case(name: str) -> str:
|
|
|
29
29
|
return re.sub("([a-z0-9])([A-Z])", r"\1_\2", name).lower()
|
|
30
30
|
|
|
31
31
|
|
|
32
|
+
def space_to_snake_case(name: str) -> str:
|
|
33
|
+
"""
|
|
34
|
+
Converts a space delimited name to snake_case.
|
|
35
|
+
"""
|
|
36
|
+
return name.replace(" ", "_")
|
|
37
|
+
|
|
38
|
+
|
|
32
39
|
def snake_to_pascal_case(name: str) -> str:
|
|
33
40
|
"""
|
|
34
41
|
Converts a snake_case name to PascalCase.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
arcade_core/__init__.py,sha256=1heu3AROAjpistehPzY2H-2nkj_IjQEh-vVlVOCRF1E,88
|
|
2
2
|
arcade_core/annotations.py,sha256=Nst6aejLWXlpTu7GwzWETu1gQCG1XVAUR_qcFbNvyRc,198
|
|
3
3
|
arcade_core/auth.py,sha256=On9sJPOxvHjKBxgKC1yqp7oijF6KYBsG6fG8KUw-9OY,5882
|
|
4
|
-
arcade_core/catalog.py,sha256=
|
|
4
|
+
arcade_core/catalog.py,sha256=PePU80MWXVuEGDzzPDvdoCUcGmV-1Ea82H0sPIOUsHA,41860
|
|
5
5
|
arcade_core/config.py,sha256=e98XQAkYySGW9T_yrJg54BB8Wuq06GPVHp7xqe2d1vU,572
|
|
6
6
|
arcade_core/config_model.py,sha256=78BR6Ch9BDuG4ddWGfpuEKqWcb1fyOF6kxiF4qLFogM,4481
|
|
7
7
|
arcade_core/constants.py,sha256=wakdklI7TyJ0agq9n-Cmb2lbVa95D0oUaMGm30eiv9Y,375
|
|
@@ -13,8 +13,8 @@ arcade_core/output.py,sha256=CMY1pHlQIR27Beiz2I-Yg1aO-P-pbsEbhBZ1RdYuflc,4040
|
|
|
13
13
|
arcade_core/parse.py,sha256=arKGKL9C6g__tRfZ4re6IM_wAqr1v3LrOzTOBEDLhDc,2366
|
|
14
14
|
arcade_core/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
arcade_core/schema.py,sha256=l1eE4__sliPIMOp70YxQMlEIpiYQWlBUWEUvr9K1wxA,16927
|
|
16
|
-
arcade_core/toolkit.py,sha256=
|
|
17
|
-
arcade_core/utils.py,sha256=
|
|
16
|
+
arcade_core/toolkit.py,sha256=ouShX7fIp0vVTdfuN9FiCCKIC40wc7JiMpG4MP8ZPLQ,13477
|
|
17
|
+
arcade_core/utils.py,sha256=_3bM-yfIDFmMVqt-NFYp2Lx1QcNWp7xytGjUQzPs2LY,3255
|
|
18
18
|
arcade_core/version.py,sha256=CpXi3jGlx23RvRyU7iytOMZrnspdWw4yofS8lpP1AJU,18
|
|
19
19
|
arcade_core/converters/openai.py,sha256=4efdgTkvdwT44VGStBhdUmzCnoP5dysceIqPVVPG-vk,7408
|
|
20
20
|
arcade_core/usage/__init__.py,sha256=SUR5mqF-bjdbl-P-OOHN6OFAjXZu4agXyPhr7xdVXCw,234
|
|
@@ -23,6 +23,6 @@ arcade_core/usage/constants.py,sha256=1FQIhkFFMZUhU-H4A7GvMb7KQ3qLFrNAZb2-LEvSF3
|
|
|
23
23
|
arcade_core/usage/identity.py,sha256=2dP1iusI9pE_GrPlz3VXEdz51R5JlNo9_-OXbe6vn7I,6716
|
|
24
24
|
arcade_core/usage/usage_service.py,sha256=xzWWSEktm58liiNYugBHRactSru8V5foriHcsoH0j1A,3407
|
|
25
25
|
arcade_core/usage/utils.py,sha256=FqBOmlhwT68cbnpI5Vx9ZW6vLRYPVg4FJ0GaMEp8qEM,398
|
|
26
|
-
arcade_core-3.
|
|
27
|
-
arcade_core-3.
|
|
28
|
-
arcade_core-3.
|
|
26
|
+
arcade_core-3.2.0.dist-info/METADATA,sha256=Zu1AZLIDxmQmJeuZNHaFdYRpsgbmgZg0i16vFtD_Poc,2383
|
|
27
|
+
arcade_core-3.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
28
|
+
arcade_core-3.2.0.dist-info/RECORD,,
|
|
File without changes
|