ADAPT-Chase commited on
Commit
4e998f0
·
verified ·
1 Parent(s): e16198d

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +11 -0
  2. platform/dataops/dto/.venv/lib/python3.12/site-packages/huggingface_hub/commands/__init__.py +27 -0
  3. platform/dataops/dto/.venv/lib/python3.12/site-packages/huggingface_hub/commands/_cli_utils.py +63 -0
  4. platform/dataops/dto/.venv/lib/python3.12/site-packages/huggingface_hub/commands/delete_cache.py +427 -0
  5. platform/dataops/dto/.venv/lib/python3.12/site-packages/huggingface_hub/commands/download.py +214 -0
  6. platform/dataops/dto/.venv/lib/python3.12/site-packages/huggingface_hub/commands/env.py +35 -0
  7. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications-2025.4.1.dist-info/licenses/COPYING +19 -0
  8. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/__pycache__/__init__.cpython-312.pyc +0 -0
  9. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/__pycache__/_core.cpython-312.pyc +0 -0
  10. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/metaschema.json +42 -0
  11. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/applicator +56 -0
  12. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/content +17 -0
  13. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/core +57 -0
  14. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/meta-data +37 -0
  15. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/validation +98 -0
  16. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/metaschema.json +58 -0
  17. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/applicator +48 -0
  18. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/content +17 -0
  19. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/core +51 -0
  20. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/format +14 -0
  21. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/format-annotation +14 -0
  22. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/format-assertion +14 -0
  23. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/meta-data +37 -0
  24. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/unevaluated +15 -0
  25. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/validation +98 -0
  26. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft3/metaschema.json +172 -0
  27. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft4/metaschema.json +149 -0
  28. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft6/metaschema.json +153 -0
  29. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft7/metaschema.json +166 -0
  30. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/tests/__init__.py +0 -0
  31. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/tests/__pycache__/__init__.cpython-312.pyc +0 -0
  32. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/tests/__pycache__/test_jsonschema_specifications.cpython-312.pyc +0 -0
  33. platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/tests/test_jsonschema_specifications.py +41 -0
  34. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/config/__pycache__/__init__.cpython-312.pyc +0 -0
  35. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/config/__pycache__/test_config.cpython-312.pyc +0 -0
  36. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/config/__pycache__/test_localization.cpython-312.pyc +0 -0
  37. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/construction/__pycache__/__init__.cpython-312.pyc +0 -0
  38. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/construction/__pycache__/test_extract_array.cpython-312.pyc +0 -0
  39. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/__init__.cpython-312.pyc +0 -0
  40. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_array.cpython-312.pyc +0 -0
  41. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_astype.cpython-312.pyc +0 -0
  42. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_clip.cpython-312.pyc +0 -0
  43. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_constructors.cpython-312.pyc +0 -0
  44. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_core_functionalities.cpython-312.pyc +0 -0
  45. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_functions.cpython-312.pyc +0 -0
  46. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_indexing.cpython-312.pyc +0 -0
  47. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_internals.cpython-312.pyc +0 -0
  48. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_interp_fillna.cpython-312.pyc +0 -0
  49. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_methods.cpython-312.pyc +3 -0
  50. platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_replace.cpython-312.pyc +0 -0
.gitattributes CHANGED
@@ -3478,3 +3478,14 @@ platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/io/__pycach
3478
  platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/io/__pycache__/test_stata.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3479
  platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/io/json/__pycache__/test_pandas.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3480
  platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/io/formats/__pycache__/test_format.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
3478
  platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/io/__pycache__/test_stata.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3479
  platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/io/json/__pycache__/test_pandas.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3480
  platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/io/formats/__pycache__/test_format.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3481
+ platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/frame/__pycache__/test_arithmetic.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3482
+ platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/frame/__pycache__/test_constructors.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3483
+ platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/frame/__pycache__/test_reductions.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3484
+ platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/frame/__pycache__/test_stack_unstack.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3485
+ platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/frame/indexing/__pycache__/test_indexing.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3486
+ platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/reshape/__pycache__/test_pivot.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3487
+ platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/reshape/merge/__pycache__/test_merge.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3488
+ platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/series/__pycache__/test_constructors.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3489
+ platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/dtypes/__pycache__/test_inference.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3490
+ platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/resample/__pycache__/test_datetime_index.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
3491
+ platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_methods.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
platform/dataops/dto/.venv/lib/python3.12/site-packages/huggingface_hub/commands/__init__.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2020 The HuggingFace Team. All rights reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ from abc import ABC, abstractmethod
16
+ from argparse import _SubParsersAction
17
+
18
+
19
+ class BaseHuggingfaceCLICommand(ABC):
20
+ @staticmethod
21
+ @abstractmethod
22
+ def register_subcommand(parser: _SubParsersAction):
23
+ raise NotImplementedError()
24
+
25
+ @abstractmethod
26
+ def run(self):
27
+ raise NotImplementedError()
platform/dataops/dto/.venv/lib/python3.12/site-packages/huggingface_hub/commands/_cli_utils.py ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2022 The HuggingFace Team. All rights reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ """Contains a utility for good-looking prints."""
15
+ import os
16
+ from typing import List, Union
17
+
18
+
19
+ class ANSI:
20
+ """
21
+ Helper for en.wikipedia.org/wiki/ANSI_escape_code
22
+ """
23
+
24
+ _bold = "\u001b[1m"
25
+ _gray = "\u001b[90m"
26
+ _red = "\u001b[31m"
27
+ _reset = "\u001b[0m"
28
+
29
+ @classmethod
30
+ def bold(cls, s: str) -> str:
31
+ return cls._format(s, cls._bold)
32
+
33
+ @classmethod
34
+ def gray(cls, s: str) -> str:
35
+ return cls._format(s, cls._gray)
36
+
37
+ @classmethod
38
+ def red(cls, s: str) -> str:
39
+ return cls._format(s, cls._bold + cls._red)
40
+
41
+ @classmethod
42
+ def _format(cls, s: str, code: str) -> str:
43
+ if os.environ.get("NO_COLOR"):
44
+ # See https://no-color.org/
45
+ return s
46
+ return f"{code}{s}{cls._reset}"
47
+
48
+
49
+ def tabulate(rows: List[List[Union[str, int]]], headers: List[str]) -> str:
50
+ """
51
+ Inspired by:
52
+
53
+ - stackoverflow.com/a/8356620/593036
54
+ - stackoverflow.com/questions/9535954/printing-lists-as-tabular-data
55
+ """
56
+ col_widths = [max(len(str(x)) for x in col) for col in zip(*rows, headers)]
57
+ row_format = ("{{:{}}} " * len(headers)).format(*col_widths)
58
+ lines = []
59
+ lines.append(row_format.format(*headers))
60
+ lines.append(row_format.format(*["-" * w for w in col_widths]))
61
+ for row in rows:
62
+ lines.append(row_format.format(*row))
63
+ return "\n".join(lines)
platform/dataops/dto/.venv/lib/python3.12/site-packages/huggingface_hub/commands/delete_cache.py ADDED
@@ -0,0 +1,427 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2022-present, the HuggingFace Inc. team.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ """Contains command to delete some revisions from the HF cache directory.
16
+
17
+ Usage:
18
+ huggingface-cli delete-cache
19
+ huggingface-cli delete-cache --disable-tui
20
+ huggingface-cli delete-cache --dir ~/.cache/huggingface/hub
21
+
22
+ NOTE:
23
+ This command is based on `InquirerPy` to build the multiselect menu in the terminal.
24
+ This dependency has to be installed with `pip install huggingface_hub[cli]`. Since
25
+ we want to avoid as much as possible cross-platform issues, I chose a library that
26
+ is built on top of `python-prompt-toolkit` which seems to be a reference in terminal
27
+ GUI (actively maintained on both Unix and Windows, 7.9k stars).
28
+
29
+ For the moment, the TUI feature is in beta.
30
+
31
+ See:
32
+ - https://github.com/kazhala/InquirerPy
33
+ - https://inquirerpy.readthedocs.io/en/latest/
34
+ - https://github.com/prompt-toolkit/python-prompt-toolkit
35
+
36
+ Other solutions could have been:
37
+ - `simple_term_menu`: would be good as well for our use case but some issues suggest
38
+ that Windows is less supported.
39
+ See: https://github.com/IngoMeyer441/simple-term-menu
40
+ - `PyInquirer`: very similar to `InquirerPy` but older and not maintained anymore.
41
+ In particular, no support of Python3.10.
42
+ See: https://github.com/CITGuru/PyInquirer
43
+ - `pick` (or `pickpack`): easy to use and flexible but built on top of Python's
44
+ standard library `curses` that is specific to Unix (not implemented on Windows).
45
+ See https://github.com/wong2/pick and https://github.com/anafvana/pickpack.
46
+ - `inquirer`: lot of traction (700 stars) but explicitly states "experimental
47
+ support of Windows". Not built on top of `python-prompt-toolkit`.
48
+ See https://github.com/magmax/python-inquirer
49
+
50
+ TODO: add support for `huggingface-cli delete-cache aaaaaa bbbbbb cccccc (...)` ?
51
+ TODO: add "--keep-last" arg to delete revisions that are not on `main` ref
52
+ TODO: add "--filter" arg to filter repositories by name ?
53
+ TODO: add "--sort" arg to sort by size ?
54
+ TODO: add "--limit" arg to limit to X repos ?
55
+ TODO: add "-y" arg for immediate deletion ?
56
+ See discussions in https://github.com/huggingface/huggingface_hub/issues/1025.
57
+ """
58
+ import os
59
+ from argparse import Namespace, _SubParsersAction
60
+ from functools import wraps
61
+ from tempfile import mkstemp
62
+ from typing import Any, Callable, Iterable, List, Optional, Union
63
+
64
+ from ..utils import CachedRepoInfo, CachedRevisionInfo, HFCacheInfo, scan_cache_dir
65
+ from . import BaseHuggingfaceCLICommand
66
+ from ._cli_utils import ANSI
67
+
68
+
69
+ try:
70
+ from InquirerPy import inquirer
71
+ from InquirerPy.base.control import Choice
72
+ from InquirerPy.separator import Separator
73
+
74
+ _inquirer_py_available = True
75
+ except ImportError:
76
+ _inquirer_py_available = False
77
+
78
+
79
+ def require_inquirer_py(fn: Callable) -> Callable:
80
+ """Decorator to flag methods that require `InquirerPy`."""
81
+
82
+ # TODO: refactor this + imports in a unified pattern across codebase
83
+ @wraps(fn)
84
+ def _inner(*args, **kwargs):
85
+ if not _inquirer_py_available:
86
+ raise ImportError(
87
+ "The `delete-cache` command requires extra dependencies to work with"
88
+ " the TUI.\nPlease run `pip install huggingface_hub[cli]` to install"
89
+ " them.\nOtherwise, disable TUI using the `--disable-tui` flag."
90
+ )
91
+
92
+ return fn(*args, **kwargs)
93
+
94
+ return _inner
95
+
96
+
97
+ # Possibility for the user to cancel deletion
98
+ _CANCEL_DELETION_STR = "CANCEL_DELETION"
99
+
100
+
101
+ class DeleteCacheCommand(BaseHuggingfaceCLICommand):
102
+ @staticmethod
103
+ def register_subcommand(parser: _SubParsersAction):
104
+ delete_cache_parser = parser.add_parser("delete-cache", help="Delete revisions from the cache directory.")
105
+
106
+ delete_cache_parser.add_argument(
107
+ "--dir",
108
+ type=str,
109
+ default=None,
110
+ help="cache directory (optional). Default to the default HuggingFace cache.",
111
+ )
112
+
113
+ delete_cache_parser.add_argument(
114
+ "--disable-tui",
115
+ action="store_true",
116
+ help=(
117
+ "Disable Terminal User Interface (TUI) mode. Useful if your"
118
+ " platform/terminal doesn't support the multiselect menu."
119
+ ),
120
+ )
121
+
122
+ delete_cache_parser.set_defaults(func=DeleteCacheCommand)
123
+
124
+ def __init__(self, args: Namespace) -> None:
125
+ self.cache_dir: Optional[str] = args.dir
126
+ self.disable_tui: bool = args.disable_tui
127
+
128
+ def run(self):
129
+ """Run `delete-cache` command with or without TUI."""
130
+ # Scan cache directory
131
+ hf_cache_info = scan_cache_dir(self.cache_dir)
132
+
133
+ # Manual review from the user
134
+ if self.disable_tui:
135
+ selected_hashes = _manual_review_no_tui(hf_cache_info, preselected=[])
136
+ else:
137
+ selected_hashes = _manual_review_tui(hf_cache_info, preselected=[])
138
+
139
+ # If deletion is not cancelled
140
+ if len(selected_hashes) > 0 and _CANCEL_DELETION_STR not in selected_hashes:
141
+ confirm_message = _get_expectations_str(hf_cache_info, selected_hashes) + " Confirm deletion ?"
142
+
143
+ # Confirm deletion
144
+ if self.disable_tui:
145
+ confirmed = _ask_for_confirmation_no_tui(confirm_message)
146
+ else:
147
+ confirmed = _ask_for_confirmation_tui(confirm_message)
148
+
149
+ # Deletion is confirmed
150
+ if confirmed:
151
+ strategy = hf_cache_info.delete_revisions(*selected_hashes)
152
+ print("Start deletion.")
153
+ strategy.execute()
154
+ print(
155
+ f"Done. Deleted {len(strategy.repos)} repo(s) and"
156
+ f" {len(strategy.snapshots)} revision(s) for a total of"
157
+ f" {strategy.expected_freed_size_str}."
158
+ )
159
+ return
160
+
161
+ # Deletion is cancelled
162
+ print("Deletion is cancelled. Do nothing.")
163
+
164
+
165
+ @require_inquirer_py
166
+ def _manual_review_tui(hf_cache_info: HFCacheInfo, preselected: List[str]) -> List[str]:
167
+ """Ask the user for a manual review of the revisions to delete.
168
+
169
+ Displays a multi-select menu in the terminal (TUI).
170
+ """
171
+ # Define multiselect list
172
+ choices = _get_tui_choices_from_scan(repos=hf_cache_info.repos, preselected=preselected)
173
+ checkbox = inquirer.checkbox(
174
+ message="Select revisions to delete:",
175
+ choices=choices, # List of revisions with some pre-selection
176
+ cycle=False, # No loop between top and bottom
177
+ height=100, # Large list if possible
178
+ # We use the instruction to display to the user the expected effect of the
179
+ # deletion.
180
+ instruction=_get_expectations_str(
181
+ hf_cache_info,
182
+ selected_hashes=[c.value for c in choices if isinstance(c, Choice) and c.enabled],
183
+ ),
184
+ # We use the long instruction to should keybindings instructions to the user
185
+ long_instruction="Press <space> to select, <enter> to validate and <ctrl+c> to quit without modification.",
186
+ # Message that is displayed once the user validates its selection.
187
+ transformer=lambda result: f"{len(result)} revision(s) selected.",
188
+ )
189
+
190
+ # Add a callback to update the information line when a revision is
191
+ # selected/unselected
192
+ def _update_expectations(_) -> None:
193
+ # Hacky way to dynamically set an instruction message to the checkbox when
194
+ # a revision hash is selected/unselected.
195
+ checkbox._instruction = _get_expectations_str(
196
+ hf_cache_info,
197
+ selected_hashes=[choice["value"] for choice in checkbox.content_control.choices if choice["enabled"]],
198
+ )
199
+
200
+ checkbox.kb_func_lookup["toggle"].append({"func": _update_expectations})
201
+
202
+ # Finally display the form to the user.
203
+ try:
204
+ return checkbox.execute()
205
+ except KeyboardInterrupt:
206
+ return [] # Quit without deletion
207
+
208
+
209
+ @require_inquirer_py
210
+ def _ask_for_confirmation_tui(message: str, default: bool = True) -> bool:
211
+ """Ask for confirmation using Inquirer."""
212
+ return inquirer.confirm(message, default=default).execute()
213
+
214
+
215
+ def _get_tui_choices_from_scan(repos: Iterable[CachedRepoInfo], preselected: List[str]) -> List:
216
+ """Build a list of choices from the scanned repos.
217
+
218
+ Args:
219
+ repos (*Iterable[`CachedRepoInfo`]*):
220
+ List of scanned repos on which we want to delete revisions.
221
+ preselected (*List[`str`]*):
222
+ List of revision hashes that will be preselected.
223
+
224
+ Return:
225
+ The list of choices to pass to `inquirer.checkbox`.
226
+ """
227
+ choices: List[Union[Choice, Separator]] = []
228
+
229
+ # First choice is to cancel the deletion. If selected, nothing will be deleted,
230
+ # no matter the other selected items.
231
+ choices.append(
232
+ Choice(
233
+ _CANCEL_DELETION_STR,
234
+ name="None of the following (if selected, nothing will be deleted).",
235
+ enabled=False,
236
+ )
237
+ )
238
+
239
+ # Display a separator per repo and a Choice for each revisions of the repo
240
+ for repo in sorted(repos, key=_repo_sorting_order):
241
+ # Repo as separator
242
+ choices.append(
243
+ Separator(
244
+ f"\n{repo.repo_type.capitalize()} {repo.repo_id} ({repo.size_on_disk_str},"
245
+ f" used {repo.last_accessed_str})"
246
+ )
247
+ )
248
+ for revision in sorted(repo.revisions, key=_revision_sorting_order):
249
+ # Revision as choice
250
+ choices.append(
251
+ Choice(
252
+ revision.commit_hash,
253
+ name=(
254
+ f"{revision.commit_hash[:8]}:"
255
+ f" {', '.join(sorted(revision.refs)) or '(detached)'} #"
256
+ f" modified {revision.last_modified_str}"
257
+ ),
258
+ enabled=revision.commit_hash in preselected,
259
+ )
260
+ )
261
+
262
+ # Return choices
263
+ return choices
264
+
265
+
266
+ def _manual_review_no_tui(hf_cache_info: HFCacheInfo, preselected: List[str]) -> List[str]:
267
+ """Ask the user for a manual review of the revisions to delete.
268
+
269
+ Used when TUI is disabled. Manual review happens in a separate tmp file that the
270
+ user can manually edit.
271
+ """
272
+ # 1. Generate temporary file with delete commands.
273
+ fd, tmp_path = mkstemp(suffix=".txt") # suffix to make it easier to find by editors
274
+ os.close(fd)
275
+
276
+ lines = []
277
+ for repo in sorted(hf_cache_info.repos, key=_repo_sorting_order):
278
+ lines.append(
279
+ f"\n# {repo.repo_type.capitalize()} {repo.repo_id} ({repo.size_on_disk_str},"
280
+ f" used {repo.last_accessed_str})"
281
+ )
282
+ for revision in sorted(repo.revisions, key=_revision_sorting_order):
283
+ lines.append(
284
+ # Deselect by prepending a '#'
285
+ f"{'' if revision.commit_hash in preselected else '#'} "
286
+ f" {revision.commit_hash} # Refs:"
287
+ # Print `refs` as comment on same line
288
+ f" {', '.join(sorted(revision.refs)) or '(detached)'} # modified"
289
+ # Print `last_modified` as comment on same line
290
+ f" {revision.last_modified_str}"
291
+ )
292
+
293
+ with open(tmp_path, "w") as f:
294
+ f.write(_MANUAL_REVIEW_NO_TUI_INSTRUCTIONS)
295
+ f.write("\n".join(lines))
296
+
297
+ # 2. Prompt instructions to user.
298
+ instructions = f"""
299
+ TUI is disabled. In order to select which revisions you want to delete, please edit
300
+ the following file using the text editor of your choice. Instructions for manual
301
+ editing are located at the beginning of the file. Edit the file, save it and confirm
302
+ to continue.
303
+ File to edit: {ANSI.bold(tmp_path)}
304
+ """
305
+ print("\n".join(line.strip() for line in instructions.strip().split("\n")))
306
+
307
+ # 3. Wait for user confirmation.
308
+ while True:
309
+ selected_hashes = _read_manual_review_tmp_file(tmp_path)
310
+ if _ask_for_confirmation_no_tui(
311
+ _get_expectations_str(hf_cache_info, selected_hashes) + " Continue ?",
312
+ default=False,
313
+ ):
314
+ break
315
+
316
+ # 4. Return selected_hashes
317
+ os.remove(tmp_path)
318
+ return selected_hashes
319
+
320
+
321
+ def _ask_for_confirmation_no_tui(message: str, default: bool = True) -> bool:
322
+ """Ask for confirmation using pure-python."""
323
+ YES = ("y", "yes", "1")
324
+ NO = ("n", "no", "0")
325
+ DEFAULT = ""
326
+ ALL = YES + NO + (DEFAULT,)
327
+ full_message = message + (" (Y/n) " if default else " (y/N) ")
328
+ while True:
329
+ answer = input(full_message).lower()
330
+ if answer == DEFAULT:
331
+ return default
332
+ if answer in YES:
333
+ return True
334
+ if answer in NO:
335
+ return False
336
+ print(f"Invalid input. Must be one of {ALL}")
337
+
338
+
339
+ def _get_expectations_str(hf_cache_info: HFCacheInfo, selected_hashes: List[str]) -> str:
340
+ """Format a string to display to the user how much space would be saved.
341
+
342
+ Example:
343
+ ```
344
+ >>> _get_expectations_str(hf_cache_info, selected_hashes)
345
+ '7 revisions selected counting for 4.3G.'
346
+ ```
347
+ """
348
+ if _CANCEL_DELETION_STR in selected_hashes:
349
+ return "Nothing will be deleted."
350
+ strategy = hf_cache_info.delete_revisions(*selected_hashes)
351
+ return f"{len(selected_hashes)} revisions selected counting for {strategy.expected_freed_size_str}."
352
+
353
+
354
+ def _read_manual_review_tmp_file(tmp_path: str) -> List[str]:
355
+ """Read the manually reviewed instruction file and return a list of revision hash.
356
+
357
+ Example:
358
+ ```txt
359
+ # This is the tmp file content
360
+ ###
361
+
362
+ # Commented out line
363
+ 123456789 # revision hash
364
+
365
+ # Something else
366
+ # a_newer_hash # 2 days ago
367
+ an_older_hash # 3 days ago
368
+ ```
369
+
370
+ ```py
371
+ >>> _read_manual_review_tmp_file(tmp_path)
372
+ ['123456789', 'an_older_hash']
373
+ ```
374
+ """
375
+ with open(tmp_path) as f:
376
+ content = f.read()
377
+
378
+ # Split lines
379
+ lines = [line.strip() for line in content.split("\n")]
380
+
381
+ # Filter commented lines
382
+ selected_lines = [line for line in lines if not line.startswith("#")]
383
+
384
+ # Select only before comment
385
+ selected_hashes = [line.split("#")[0].strip() for line in selected_lines]
386
+
387
+ # Return revision hashes
388
+ return [hash for hash in selected_hashes if len(hash) > 0]
389
+
390
+
391
+ _MANUAL_REVIEW_NO_TUI_INSTRUCTIONS = f"""
392
+ # INSTRUCTIONS
393
+ # ------------
394
+ # This is a temporary file created by running `huggingface-cli delete-cache` with the
395
+ # `--disable-tui` option. It contains a set of revisions that can be deleted from your
396
+ # local cache directory.
397
+ #
398
+ # Please manually review the revisions you want to delete:
399
+ # - Revision hashes can be commented out with '#'.
400
+ # - Only non-commented revisions in this file will be deleted.
401
+ # - Revision hashes that are removed from this file are ignored as well.
402
+ # - If `{_CANCEL_DELETION_STR}` line is uncommented, the all cache deletion is cancelled and
403
+ # no changes will be applied.
404
+ #
405
+ # Once you've manually reviewed this file, please confirm deletion in the terminal. This
406
+ # file will be automatically removed once done.
407
+ # ------------
408
+
409
+ # KILL SWITCH
410
+ # ------------
411
+ # Un-comment following line to completely cancel the deletion process
412
+ # {_CANCEL_DELETION_STR}
413
+ # ------------
414
+
415
+ # REVISIONS
416
+ # ------------
417
+ """.strip()
418
+
419
+
420
+ def _repo_sorting_order(repo: CachedRepoInfo) -> Any:
421
+ # First split by Dataset/Model, then sort by last accessed (oldest first)
422
+ return (repo.repo_type, repo.last_accessed)
423
+
424
+
425
+ def _revision_sorting_order(revision: CachedRevisionInfo) -> Any:
426
+ # Sort by last modified (oldest first)
427
+ return revision.last_modified
platform/dataops/dto/.venv/lib/python3.12/site-packages/huggingface_hub/commands/download.py ADDED
@@ -0,0 +1,214 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2023-present, the HuggingFace Inc. team.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ """Contains command to download files from the Hub with the CLI.
16
+
17
+ Usage:
18
+ huggingface-cli download --help
19
+
20
+ # Download file
21
+ huggingface-cli download gpt2 config.json
22
+
23
+ # Download entire repo
24
+ huggingface-cli download fffiloni/zeroscope --repo-type=space --revision=refs/pr/78
25
+
26
+ # Download repo with filters
27
+ huggingface-cli download gpt2 --include="*.safetensors"
28
+
29
+ # Download with token
30
+ huggingface-cli download Wauplin/private-model --token=hf_***
31
+
32
+ # Download quietly (no progress bar, no warnings, only the returned path)
33
+ huggingface-cli download gpt2 config.json --quiet
34
+
35
+ # Download to local dir
36
+ huggingface-cli download gpt2 --local-dir=./models/gpt2
37
+ """
38
+ import warnings
39
+ from argparse import Namespace, _SubParsersAction
40
+ from typing import List, Literal, Optional, Union
41
+
42
+ from huggingface_hub import logging
43
+ from huggingface_hub._snapshot_download import snapshot_download
44
+ from huggingface_hub.commands import BaseHuggingfaceCLICommand
45
+ from huggingface_hub.constants import HF_HUB_ENABLE_HF_TRANSFER
46
+ from huggingface_hub.file_download import hf_hub_download
47
+ from huggingface_hub.utils import disable_progress_bars, enable_progress_bars
48
+
49
+
50
+ logger = logging.get_logger(__name__)
51
+
52
+
53
+ class DownloadCommand(BaseHuggingfaceCLICommand):
54
+ @staticmethod
55
+ def register_subcommand(parser: _SubParsersAction):
56
+ download_parser = parser.add_parser("download", help="Download files from the Hub")
57
+ download_parser.add_argument(
58
+ "repo_id", type=str, help="ID of the repo to download from (e.g. `username/repo-name`)."
59
+ )
60
+ download_parser.add_argument(
61
+ "filenames", type=str, nargs="*", help="Files to download (e.g. `config.json`, `data/metadata.jsonl`)."
62
+ )
63
+ download_parser.add_argument(
64
+ "--repo-type",
65
+ choices=["model", "dataset", "space"],
66
+ default="model",
67
+ help="Type of repo to download from (e.g. `dataset`).",
68
+ )
69
+ download_parser.add_argument(
70
+ "--revision",
71
+ type=str,
72
+ help="An optional Git revision id which can be a branch name, a tag, or a commit hash.",
73
+ )
74
+ download_parser.add_argument(
75
+ "--include", nargs="*", type=str, help="Glob patterns to match files to download."
76
+ )
77
+ download_parser.add_argument(
78
+ "--exclude", nargs="*", type=str, help="Glob patterns to exclude from files to download."
79
+ )
80
+ download_parser.add_argument(
81
+ "--cache-dir", type=str, help="Path to the directory where to save the downloaded files."
82
+ )
83
+ download_parser.add_argument(
84
+ "--local-dir",
85
+ type=str,
86
+ help=(
87
+ "If set, the downloaded file will be placed under this directory either as a symlink (default) or a"
88
+ " regular file. Check out"
89
+ " https://huggingface.co/docs/huggingface_hub/guides/download#download-files-to-local-folder for more"
90
+ " details."
91
+ ),
92
+ )
93
+ download_parser.add_argument(
94
+ "--local-dir-use-symlinks",
95
+ choices=["auto", "True", "False"],
96
+ default="auto",
97
+ help=(
98
+ "To be used with `local_dir`. If set to 'auto', the cache directory will be used and the file will be"
99
+ " either duplicated or symlinked to the local directory depending on its size. It set to `True`, a"
100
+ " symlink will be created, no matter the file size. If set to `False`, the file will either be"
101
+ " duplicated from cache (if already exists) or downloaded from the Hub and not cached."
102
+ ),
103
+ )
104
+ download_parser.add_argument(
105
+ "--force-download",
106
+ action="store_true",
107
+ help="If True, the files will be downloaded even if they are already cached.",
108
+ )
109
+ download_parser.add_argument(
110
+ "--resume-download", action="store_true", help="If True, resume a previously interrupted download."
111
+ )
112
+ download_parser.add_argument(
113
+ "--token", type=str, help="A User Access Token generated from https://huggingface.co/settings/tokens"
114
+ )
115
+ download_parser.add_argument(
116
+ "--quiet",
117
+ action="store_true",
118
+ help="If True, progress bars are disabled and only the path to the download files is printed.",
119
+ )
120
+ download_parser.set_defaults(func=DownloadCommand)
121
+
122
+ def __init__(self, args: Namespace) -> None:
123
+ self.token = args.token
124
+ self.repo_id: str = args.repo_id
125
+ self.filenames: List[str] = args.filenames
126
+ self.repo_type: str = args.repo_type
127
+ self.revision: Optional[str] = args.revision
128
+ self.include: Optional[List[str]] = args.include
129
+ self.exclude: Optional[List[str]] = args.exclude
130
+ self.cache_dir: Optional[str] = args.cache_dir
131
+ self.local_dir: Optional[str] = args.local_dir
132
+ self.force_download: bool = args.force_download
133
+ self.resume_download: bool = args.resume_download
134
+ self.quiet: bool = args.quiet
135
+
136
+ # Raise if local_dir_use_symlinks is invalid
137
+ self.local_dir_use_symlinks: Union[Literal["auto"], bool]
138
+ use_symlinks_lowercase = args.local_dir_use_symlinks.lower()
139
+ if use_symlinks_lowercase == "true":
140
+ self.local_dir_use_symlinks = True
141
+ elif use_symlinks_lowercase == "false":
142
+ self.local_dir_use_symlinks = False
143
+ elif use_symlinks_lowercase == "auto":
144
+ self.local_dir_use_symlinks = "auto"
145
+ else:
146
+ raise ValueError(
147
+ f"'{args.local_dir_use_symlinks}' is not a valid value for `local_dir_use_symlinks`. It must be either"
148
+ " 'auto', 'True' or 'False'."
149
+ )
150
+
151
+ def run(self) -> None:
152
+ if self.quiet:
153
+ disable_progress_bars()
154
+ with warnings.catch_warnings():
155
+ warnings.simplefilter("ignore")
156
+ print(self._download()) # Print path to downloaded files
157
+ enable_progress_bars()
158
+ else:
159
+ logging.set_verbosity_info()
160
+ print(self._download()) # Print path to downloaded files
161
+ logging.set_verbosity_warning()
162
+
163
+ def _download(self) -> str:
164
+ # Warn user if patterns are ignored
165
+ if len(self.filenames) > 0:
166
+ if self.include is not None and len(self.include) > 0:
167
+ warnings.warn("Ignoring `--include` since filenames have being explicitly set.")
168
+ if self.exclude is not None and len(self.exclude) > 0:
169
+ warnings.warn("Ignoring `--exclude` since filenames have being explicitly set.")
170
+
171
+ if not HF_HUB_ENABLE_HF_TRANSFER:
172
+ logger.info(
173
+ "Consider using `hf_transfer` for faster downloads. This solution comes with some limitations. See"
174
+ " https://huggingface.co/docs/huggingface_hub/hf_transfer for more details."
175
+ )
176
+
177
+ # Single file to download: use `hf_hub_download`
178
+ if len(self.filenames) == 1:
179
+ return hf_hub_download(
180
+ repo_id=self.repo_id,
181
+ repo_type=self.repo_type,
182
+ revision=self.revision,
183
+ filename=self.filenames[0],
184
+ cache_dir=self.cache_dir,
185
+ resume_download=self.resume_download,
186
+ force_download=self.force_download,
187
+ token=self.token,
188
+ local_dir=self.local_dir,
189
+ local_dir_use_symlinks=self.local_dir_use_symlinks,
190
+ library_name="huggingface-cli",
191
+ )
192
+
193
+ # Otherwise: use `snapshot_download` to ensure all files comes from same revision
194
+ elif len(self.filenames) == 0:
195
+ allow_patterns = self.include
196
+ ignore_patterns = self.exclude
197
+ else:
198
+ allow_patterns = self.filenames
199
+ ignore_patterns = None
200
+
201
+ return snapshot_download(
202
+ repo_id=self.repo_id,
203
+ repo_type=self.repo_type,
204
+ revision=self.revision,
205
+ allow_patterns=allow_patterns,
206
+ ignore_patterns=ignore_patterns,
207
+ resume_download=self.resume_download,
208
+ force_download=self.force_download,
209
+ cache_dir=self.cache_dir,
210
+ token=self.token,
211
+ local_dir=self.local_dir,
212
+ local_dir_use_symlinks=self.local_dir_use_symlinks,
213
+ library_name="huggingface-cli",
214
+ )
platform/dataops/dto/.venv/lib/python3.12/site-packages/huggingface_hub/commands/env.py ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright 2022 The HuggingFace Team. All rights reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ """Contains command to print information about the environment.
15
+
16
+ Usage:
17
+ huggingface-cli env
18
+ """
19
+ from argparse import _SubParsersAction
20
+
21
+ from ..utils import dump_environment_info
22
+ from . import BaseHuggingfaceCLICommand
23
+
24
+
25
+ class EnvironmentCommand(BaseHuggingfaceCLICommand):
26
+ def __init__(self, args):
27
+ self.args = args
28
+
29
+ @staticmethod
30
+ def register_subcommand(parser: _SubParsersAction):
31
+ env_parser = parser.add_parser("env", help="Print information about the environment.")
32
+ env_parser.set_defaults(func=EnvironmentCommand)
33
+
34
+ def run(self) -> None:
35
+ dump_environment_info()
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications-2025.4.1.dist-info/licenses/COPYING ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) 2022 Julian Berman
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/__pycache__/__init__.cpython-312.pyc ADDED
Binary file (559 Bytes). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/__pycache__/_core.cpython-312.pyc ADDED
Binary file (1.48 kB). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/metaschema.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
3
+ "$id": "https://json-schema.org/draft/2019-09/schema",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2019-09/vocab/core": true,
6
+ "https://json-schema.org/draft/2019-09/vocab/applicator": true,
7
+ "https://json-schema.org/draft/2019-09/vocab/validation": true,
8
+ "https://json-schema.org/draft/2019-09/vocab/meta-data": true,
9
+ "https://json-schema.org/draft/2019-09/vocab/format": false,
10
+ "https://json-schema.org/draft/2019-09/vocab/content": true
11
+ },
12
+ "$recursiveAnchor": true,
13
+
14
+ "title": "Core and Validation specifications meta-schema",
15
+ "allOf": [
16
+ {"$ref": "meta/core"},
17
+ {"$ref": "meta/applicator"},
18
+ {"$ref": "meta/validation"},
19
+ {"$ref": "meta/meta-data"},
20
+ {"$ref": "meta/format"},
21
+ {"$ref": "meta/content"}
22
+ ],
23
+ "type": ["object", "boolean"],
24
+ "properties": {
25
+ "definitions": {
26
+ "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",
27
+ "type": "object",
28
+ "additionalProperties": { "$recursiveRef": "#" },
29
+ "default": {}
30
+ },
31
+ "dependencies": {
32
+ "$comment": "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"",
33
+ "type": "object",
34
+ "additionalProperties": {
35
+ "anyOf": [
36
+ { "$recursiveRef": "#" },
37
+ { "$ref": "meta/validation#/$defs/stringArray" }
38
+ ]
39
+ }
40
+ }
41
+ }
42
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/applicator ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
3
+ "$id": "https://json-schema.org/draft/2019-09/meta/applicator",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2019-09/vocab/applicator": true
6
+ },
7
+ "$recursiveAnchor": true,
8
+
9
+ "title": "Applicator vocabulary meta-schema",
10
+ "type": ["object", "boolean"],
11
+ "properties": {
12
+ "additionalItems": { "$recursiveRef": "#" },
13
+ "unevaluatedItems": { "$recursiveRef": "#" },
14
+ "items": {
15
+ "anyOf": [
16
+ { "$recursiveRef": "#" },
17
+ { "$ref": "#/$defs/schemaArray" }
18
+ ]
19
+ },
20
+ "contains": { "$recursiveRef": "#" },
21
+ "additionalProperties": { "$recursiveRef": "#" },
22
+ "unevaluatedProperties": { "$recursiveRef": "#" },
23
+ "properties": {
24
+ "type": "object",
25
+ "additionalProperties": { "$recursiveRef": "#" },
26
+ "default": {}
27
+ },
28
+ "patternProperties": {
29
+ "type": "object",
30
+ "additionalProperties": { "$recursiveRef": "#" },
31
+ "propertyNames": { "format": "regex" },
32
+ "default": {}
33
+ },
34
+ "dependentSchemas": {
35
+ "type": "object",
36
+ "additionalProperties": {
37
+ "$recursiveRef": "#"
38
+ }
39
+ },
40
+ "propertyNames": { "$recursiveRef": "#" },
41
+ "if": { "$recursiveRef": "#" },
42
+ "then": { "$recursiveRef": "#" },
43
+ "else": { "$recursiveRef": "#" },
44
+ "allOf": { "$ref": "#/$defs/schemaArray" },
45
+ "anyOf": { "$ref": "#/$defs/schemaArray" },
46
+ "oneOf": { "$ref": "#/$defs/schemaArray" },
47
+ "not": { "$recursiveRef": "#" }
48
+ },
49
+ "$defs": {
50
+ "schemaArray": {
51
+ "type": "array",
52
+ "minItems": 1,
53
+ "items": { "$recursiveRef": "#" }
54
+ }
55
+ }
56
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/content ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
3
+ "$id": "https://json-schema.org/draft/2019-09/meta/content",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2019-09/vocab/content": true
6
+ },
7
+ "$recursiveAnchor": true,
8
+
9
+ "title": "Content vocabulary meta-schema",
10
+
11
+ "type": ["object", "boolean"],
12
+ "properties": {
13
+ "contentMediaType": { "type": "string" },
14
+ "contentEncoding": { "type": "string" },
15
+ "contentSchema": { "$recursiveRef": "#" }
16
+ }
17
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/core ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
3
+ "$id": "https://json-schema.org/draft/2019-09/meta/core",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2019-09/vocab/core": true
6
+ },
7
+ "$recursiveAnchor": true,
8
+
9
+ "title": "Core vocabulary meta-schema",
10
+ "type": ["object", "boolean"],
11
+ "properties": {
12
+ "$id": {
13
+ "type": "string",
14
+ "format": "uri-reference",
15
+ "$comment": "Non-empty fragments not allowed.",
16
+ "pattern": "^[^#]*#?$"
17
+ },
18
+ "$schema": {
19
+ "type": "string",
20
+ "format": "uri"
21
+ },
22
+ "$anchor": {
23
+ "type": "string",
24
+ "pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$"
25
+ },
26
+ "$ref": {
27
+ "type": "string",
28
+ "format": "uri-reference"
29
+ },
30
+ "$recursiveRef": {
31
+ "type": "string",
32
+ "format": "uri-reference"
33
+ },
34
+ "$recursiveAnchor": {
35
+ "type": "boolean",
36
+ "default": false
37
+ },
38
+ "$vocabulary": {
39
+ "type": "object",
40
+ "propertyNames": {
41
+ "type": "string",
42
+ "format": "uri"
43
+ },
44
+ "additionalProperties": {
45
+ "type": "boolean"
46
+ }
47
+ },
48
+ "$comment": {
49
+ "type": "string"
50
+ },
51
+ "$defs": {
52
+ "type": "object",
53
+ "additionalProperties": { "$recursiveRef": "#" },
54
+ "default": {}
55
+ }
56
+ }
57
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/meta-data ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
3
+ "$id": "https://json-schema.org/draft/2019-09/meta/meta-data",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2019-09/vocab/meta-data": true
6
+ },
7
+ "$recursiveAnchor": true,
8
+
9
+ "title": "Meta-data vocabulary meta-schema",
10
+
11
+ "type": ["object", "boolean"],
12
+ "properties": {
13
+ "title": {
14
+ "type": "string"
15
+ },
16
+ "description": {
17
+ "type": "string"
18
+ },
19
+ "default": true,
20
+ "deprecated": {
21
+ "type": "boolean",
22
+ "default": false
23
+ },
24
+ "readOnly": {
25
+ "type": "boolean",
26
+ "default": false
27
+ },
28
+ "writeOnly": {
29
+ "type": "boolean",
30
+ "default": false
31
+ },
32
+ "examples": {
33
+ "type": "array",
34
+ "items": true
35
+ }
36
+ }
37
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft201909/vocabularies/validation ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
3
+ "$id": "https://json-schema.org/draft/2019-09/meta/validation",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2019-09/vocab/validation": true
6
+ },
7
+ "$recursiveAnchor": true,
8
+
9
+ "title": "Validation vocabulary meta-schema",
10
+ "type": ["object", "boolean"],
11
+ "properties": {
12
+ "multipleOf": {
13
+ "type": "number",
14
+ "exclusiveMinimum": 0
15
+ },
16
+ "maximum": {
17
+ "type": "number"
18
+ },
19
+ "exclusiveMaximum": {
20
+ "type": "number"
21
+ },
22
+ "minimum": {
23
+ "type": "number"
24
+ },
25
+ "exclusiveMinimum": {
26
+ "type": "number"
27
+ },
28
+ "maxLength": { "$ref": "#/$defs/nonNegativeInteger" },
29
+ "minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
30
+ "pattern": {
31
+ "type": "string",
32
+ "format": "regex"
33
+ },
34
+ "maxItems": { "$ref": "#/$defs/nonNegativeInteger" },
35
+ "minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
36
+ "uniqueItems": {
37
+ "type": "boolean",
38
+ "default": false
39
+ },
40
+ "maxContains": { "$ref": "#/$defs/nonNegativeInteger" },
41
+ "minContains": {
42
+ "$ref": "#/$defs/nonNegativeInteger",
43
+ "default": 1
44
+ },
45
+ "maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },
46
+ "minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
47
+ "required": { "$ref": "#/$defs/stringArray" },
48
+ "dependentRequired": {
49
+ "type": "object",
50
+ "additionalProperties": {
51
+ "$ref": "#/$defs/stringArray"
52
+ }
53
+ },
54
+ "const": true,
55
+ "enum": {
56
+ "type": "array",
57
+ "items": true
58
+ },
59
+ "type": {
60
+ "anyOf": [
61
+ { "$ref": "#/$defs/simpleTypes" },
62
+ {
63
+ "type": "array",
64
+ "items": { "$ref": "#/$defs/simpleTypes" },
65
+ "minItems": 1,
66
+ "uniqueItems": true
67
+ }
68
+ ]
69
+ }
70
+ },
71
+ "$defs": {
72
+ "nonNegativeInteger": {
73
+ "type": "integer",
74
+ "minimum": 0
75
+ },
76
+ "nonNegativeIntegerDefault0": {
77
+ "$ref": "#/$defs/nonNegativeInteger",
78
+ "default": 0
79
+ },
80
+ "simpleTypes": {
81
+ "enum": [
82
+ "array",
83
+ "boolean",
84
+ "integer",
85
+ "null",
86
+ "number",
87
+ "object",
88
+ "string"
89
+ ]
90
+ },
91
+ "stringArray": {
92
+ "type": "array",
93
+ "items": { "type": "string" },
94
+ "uniqueItems": true,
95
+ "default": []
96
+ }
97
+ }
98
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/metaschema.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://json-schema.org/draft/2020-12/schema",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2020-12/vocab/core": true,
6
+ "https://json-schema.org/draft/2020-12/vocab/applicator": true,
7
+ "https://json-schema.org/draft/2020-12/vocab/unevaluated": true,
8
+ "https://json-schema.org/draft/2020-12/vocab/validation": true,
9
+ "https://json-schema.org/draft/2020-12/vocab/meta-data": true,
10
+ "https://json-schema.org/draft/2020-12/vocab/format-annotation": true,
11
+ "https://json-schema.org/draft/2020-12/vocab/content": true
12
+ },
13
+ "$dynamicAnchor": "meta",
14
+
15
+ "title": "Core and Validation specifications meta-schema",
16
+ "allOf": [
17
+ {"$ref": "meta/core"},
18
+ {"$ref": "meta/applicator"},
19
+ {"$ref": "meta/unevaluated"},
20
+ {"$ref": "meta/validation"},
21
+ {"$ref": "meta/meta-data"},
22
+ {"$ref": "meta/format-annotation"},
23
+ {"$ref": "meta/content"}
24
+ ],
25
+ "type": ["object", "boolean"],
26
+ "$comment": "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",
27
+ "properties": {
28
+ "definitions": {
29
+ "$comment": "\"definitions\" has been replaced by \"$defs\".",
30
+ "type": "object",
31
+ "additionalProperties": { "$dynamicRef": "#meta" },
32
+ "deprecated": true,
33
+ "default": {}
34
+ },
35
+ "dependencies": {
36
+ "$comment": "\"dependencies\" has been split and replaced by \"dependentSchemas\" and \"dependentRequired\" in order to serve their differing semantics.",
37
+ "type": "object",
38
+ "additionalProperties": {
39
+ "anyOf": [
40
+ { "$dynamicRef": "#meta" },
41
+ { "$ref": "meta/validation#/$defs/stringArray" }
42
+ ]
43
+ },
44
+ "deprecated": true,
45
+ "default": {}
46
+ },
47
+ "$recursiveAnchor": {
48
+ "$comment": "\"$recursiveAnchor\" has been replaced by \"$dynamicAnchor\".",
49
+ "$ref": "meta/core#/$defs/anchorString",
50
+ "deprecated": true
51
+ },
52
+ "$recursiveRef": {
53
+ "$comment": "\"$recursiveRef\" has been replaced by \"$dynamicRef\".",
54
+ "$ref": "meta/core#/$defs/uriReferenceString",
55
+ "deprecated": true
56
+ }
57
+ }
58
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/applicator ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://json-schema.org/draft/2020-12/meta/applicator",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2020-12/vocab/applicator": true
6
+ },
7
+ "$dynamicAnchor": "meta",
8
+
9
+ "title": "Applicator vocabulary meta-schema",
10
+ "type": ["object", "boolean"],
11
+ "properties": {
12
+ "prefixItems": { "$ref": "#/$defs/schemaArray" },
13
+ "items": { "$dynamicRef": "#meta" },
14
+ "contains": { "$dynamicRef": "#meta" },
15
+ "additionalProperties": { "$dynamicRef": "#meta" },
16
+ "properties": {
17
+ "type": "object",
18
+ "additionalProperties": { "$dynamicRef": "#meta" },
19
+ "default": {}
20
+ },
21
+ "patternProperties": {
22
+ "type": "object",
23
+ "additionalProperties": { "$dynamicRef": "#meta" },
24
+ "propertyNames": { "format": "regex" },
25
+ "default": {}
26
+ },
27
+ "dependentSchemas": {
28
+ "type": "object",
29
+ "additionalProperties": { "$dynamicRef": "#meta" },
30
+ "default": {}
31
+ },
32
+ "propertyNames": { "$dynamicRef": "#meta" },
33
+ "if": { "$dynamicRef": "#meta" },
34
+ "then": { "$dynamicRef": "#meta" },
35
+ "else": { "$dynamicRef": "#meta" },
36
+ "allOf": { "$ref": "#/$defs/schemaArray" },
37
+ "anyOf": { "$ref": "#/$defs/schemaArray" },
38
+ "oneOf": { "$ref": "#/$defs/schemaArray" },
39
+ "not": { "$dynamicRef": "#meta" }
40
+ },
41
+ "$defs": {
42
+ "schemaArray": {
43
+ "type": "array",
44
+ "minItems": 1,
45
+ "items": { "$dynamicRef": "#meta" }
46
+ }
47
+ }
48
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/content ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://json-schema.org/draft/2020-12/meta/content",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2020-12/vocab/content": true
6
+ },
7
+ "$dynamicAnchor": "meta",
8
+
9
+ "title": "Content vocabulary meta-schema",
10
+
11
+ "type": ["object", "boolean"],
12
+ "properties": {
13
+ "contentEncoding": { "type": "string" },
14
+ "contentMediaType": { "type": "string" },
15
+ "contentSchema": { "$dynamicRef": "#meta" }
16
+ }
17
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/core ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://json-schema.org/draft/2020-12/meta/core",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2020-12/vocab/core": true
6
+ },
7
+ "$dynamicAnchor": "meta",
8
+
9
+ "title": "Core vocabulary meta-schema",
10
+ "type": ["object", "boolean"],
11
+ "properties": {
12
+ "$id": {
13
+ "$ref": "#/$defs/uriReferenceString",
14
+ "$comment": "Non-empty fragments not allowed.",
15
+ "pattern": "^[^#]*#?$"
16
+ },
17
+ "$schema": { "$ref": "#/$defs/uriString" },
18
+ "$ref": { "$ref": "#/$defs/uriReferenceString" },
19
+ "$anchor": { "$ref": "#/$defs/anchorString" },
20
+ "$dynamicRef": { "$ref": "#/$defs/uriReferenceString" },
21
+ "$dynamicAnchor": { "$ref": "#/$defs/anchorString" },
22
+ "$vocabulary": {
23
+ "type": "object",
24
+ "propertyNames": { "$ref": "#/$defs/uriString" },
25
+ "additionalProperties": {
26
+ "type": "boolean"
27
+ }
28
+ },
29
+ "$comment": {
30
+ "type": "string"
31
+ },
32
+ "$defs": {
33
+ "type": "object",
34
+ "additionalProperties": { "$dynamicRef": "#meta" }
35
+ }
36
+ },
37
+ "$defs": {
38
+ "anchorString": {
39
+ "type": "string",
40
+ "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"
41
+ },
42
+ "uriString": {
43
+ "type": "string",
44
+ "format": "uri"
45
+ },
46
+ "uriReferenceString": {
47
+ "type": "string",
48
+ "format": "uri-reference"
49
+ }
50
+ }
51
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/format ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
3
+ "$id": "https://json-schema.org/draft/2019-09/meta/format",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2019-09/vocab/format": true
6
+ },
7
+ "$recursiveAnchor": true,
8
+
9
+ "title": "Format vocabulary meta-schema",
10
+ "type": ["object", "boolean"],
11
+ "properties": {
12
+ "format": { "type": "string" }
13
+ }
14
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/format-annotation ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://json-schema.org/draft/2020-12/meta/format-annotation",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2020-12/vocab/format-annotation": true
6
+ },
7
+ "$dynamicAnchor": "meta",
8
+
9
+ "title": "Format vocabulary meta-schema for annotation results",
10
+ "type": ["object", "boolean"],
11
+ "properties": {
12
+ "format": { "type": "string" }
13
+ }
14
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/format-assertion ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://json-schema.org/draft/2020-12/meta/format-assertion",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2020-12/vocab/format-assertion": true
6
+ },
7
+ "$dynamicAnchor": "meta",
8
+
9
+ "title": "Format vocabulary meta-schema for assertion results",
10
+ "type": ["object", "boolean"],
11
+ "properties": {
12
+ "format": { "type": "string" }
13
+ }
14
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/meta-data ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://json-schema.org/draft/2020-12/meta/meta-data",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2020-12/vocab/meta-data": true
6
+ },
7
+ "$dynamicAnchor": "meta",
8
+
9
+ "title": "Meta-data vocabulary meta-schema",
10
+
11
+ "type": ["object", "boolean"],
12
+ "properties": {
13
+ "title": {
14
+ "type": "string"
15
+ },
16
+ "description": {
17
+ "type": "string"
18
+ },
19
+ "default": true,
20
+ "deprecated": {
21
+ "type": "boolean",
22
+ "default": false
23
+ },
24
+ "readOnly": {
25
+ "type": "boolean",
26
+ "default": false
27
+ },
28
+ "writeOnly": {
29
+ "type": "boolean",
30
+ "default": false
31
+ },
32
+ "examples": {
33
+ "type": "array",
34
+ "items": true
35
+ }
36
+ }
37
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/unevaluated ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://json-schema.org/draft/2020-12/meta/unevaluated",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2020-12/vocab/unevaluated": true
6
+ },
7
+ "$dynamicAnchor": "meta",
8
+
9
+ "title": "Unevaluated applicator vocabulary meta-schema",
10
+ "type": ["object", "boolean"],
11
+ "properties": {
12
+ "unevaluatedItems": { "$dynamicRef": "#meta" },
13
+ "unevaluatedProperties": { "$dynamicRef": "#meta" }
14
+ }
15
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft202012/vocabularies/validation ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://json-schema.org/draft/2020-12/meta/validation",
4
+ "$vocabulary": {
5
+ "https://json-schema.org/draft/2020-12/vocab/validation": true
6
+ },
7
+ "$dynamicAnchor": "meta",
8
+
9
+ "title": "Validation vocabulary meta-schema",
10
+ "type": ["object", "boolean"],
11
+ "properties": {
12
+ "type": {
13
+ "anyOf": [
14
+ { "$ref": "#/$defs/simpleTypes" },
15
+ {
16
+ "type": "array",
17
+ "items": { "$ref": "#/$defs/simpleTypes" },
18
+ "minItems": 1,
19
+ "uniqueItems": true
20
+ }
21
+ ]
22
+ },
23
+ "const": true,
24
+ "enum": {
25
+ "type": "array",
26
+ "items": true
27
+ },
28
+ "multipleOf": {
29
+ "type": "number",
30
+ "exclusiveMinimum": 0
31
+ },
32
+ "maximum": {
33
+ "type": "number"
34
+ },
35
+ "exclusiveMaximum": {
36
+ "type": "number"
37
+ },
38
+ "minimum": {
39
+ "type": "number"
40
+ },
41
+ "exclusiveMinimum": {
42
+ "type": "number"
43
+ },
44
+ "maxLength": { "$ref": "#/$defs/nonNegativeInteger" },
45
+ "minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
46
+ "pattern": {
47
+ "type": "string",
48
+ "format": "regex"
49
+ },
50
+ "maxItems": { "$ref": "#/$defs/nonNegativeInteger" },
51
+ "minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
52
+ "uniqueItems": {
53
+ "type": "boolean",
54
+ "default": false
55
+ },
56
+ "maxContains": { "$ref": "#/$defs/nonNegativeInteger" },
57
+ "minContains": {
58
+ "$ref": "#/$defs/nonNegativeInteger",
59
+ "default": 1
60
+ },
61
+ "maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },
62
+ "minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
63
+ "required": { "$ref": "#/$defs/stringArray" },
64
+ "dependentRequired": {
65
+ "type": "object",
66
+ "additionalProperties": {
67
+ "$ref": "#/$defs/stringArray"
68
+ }
69
+ }
70
+ },
71
+ "$defs": {
72
+ "nonNegativeInteger": {
73
+ "type": "integer",
74
+ "minimum": 0
75
+ },
76
+ "nonNegativeIntegerDefault0": {
77
+ "$ref": "#/$defs/nonNegativeInteger",
78
+ "default": 0
79
+ },
80
+ "simpleTypes": {
81
+ "enum": [
82
+ "array",
83
+ "boolean",
84
+ "integer",
85
+ "null",
86
+ "number",
87
+ "object",
88
+ "string"
89
+ ]
90
+ },
91
+ "stringArray": {
92
+ "type": "array",
93
+ "items": { "type": "string" },
94
+ "uniqueItems": true,
95
+ "default": []
96
+ }
97
+ }
98
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft3/metaschema.json ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema" : "http://json-schema.org/draft-03/schema#",
3
+ "id" : "http://json-schema.org/draft-03/schema#",
4
+ "type" : "object",
5
+
6
+ "properties" : {
7
+ "type" : {
8
+ "type" : ["string", "array"],
9
+ "items" : {
10
+ "type" : ["string", {"$ref" : "#"}]
11
+ },
12
+ "uniqueItems" : true,
13
+ "default" : "any"
14
+ },
15
+
16
+ "properties" : {
17
+ "type" : "object",
18
+ "additionalProperties" : {"$ref" : "#"},
19
+ "default" : {}
20
+ },
21
+
22
+ "patternProperties" : {
23
+ "type" : "object",
24
+ "additionalProperties" : {"$ref" : "#"},
25
+ "default" : {}
26
+ },
27
+
28
+ "additionalProperties" : {
29
+ "type" : [{"$ref" : "#"}, "boolean"],
30
+ "default" : {}
31
+ },
32
+
33
+ "items" : {
34
+ "type" : [{"$ref" : "#"}, "array"],
35
+ "items" : {"$ref" : "#"},
36
+ "default" : {}
37
+ },
38
+
39
+ "additionalItems" : {
40
+ "type" : [{"$ref" : "#"}, "boolean"],
41
+ "default" : {}
42
+ },
43
+
44
+ "required" : {
45
+ "type" : "boolean",
46
+ "default" : false
47
+ },
48
+
49
+ "dependencies" : {
50
+ "type" : "object",
51
+ "additionalProperties" : {
52
+ "type" : ["string", "array", {"$ref" : "#"}],
53
+ "items" : {
54
+ "type" : "string"
55
+ }
56
+ },
57
+ "default" : {}
58
+ },
59
+
60
+ "minimum" : {
61
+ "type" : "number"
62
+ },
63
+
64
+ "maximum" : {
65
+ "type" : "number"
66
+ },
67
+
68
+ "exclusiveMinimum" : {
69
+ "type" : "boolean",
70
+ "default" : false
71
+ },
72
+
73
+ "exclusiveMaximum" : {
74
+ "type" : "boolean",
75
+ "default" : false
76
+ },
77
+
78
+ "minItems" : {
79
+ "type" : "integer",
80
+ "minimum" : 0,
81
+ "default" : 0
82
+ },
83
+
84
+ "maxItems" : {
85
+ "type" : "integer",
86
+ "minimum" : 0
87
+ },
88
+
89
+ "uniqueItems" : {
90
+ "type" : "boolean",
91
+ "default" : false
92
+ },
93
+
94
+ "pattern" : {
95
+ "type" : "string",
96
+ "format" : "regex"
97
+ },
98
+
99
+ "minLength" : {
100
+ "type" : "integer",
101
+ "minimum" : 0,
102
+ "default" : 0
103
+ },
104
+
105
+ "maxLength" : {
106
+ "type" : "integer"
107
+ },
108
+
109
+ "enum" : {
110
+ "type" : "array",
111
+ "minItems" : 1,
112
+ "uniqueItems" : true
113
+ },
114
+
115
+ "default" : {
116
+ "type" : "any"
117
+ },
118
+
119
+ "title" : {
120
+ "type" : "string"
121
+ },
122
+
123
+ "description" : {
124
+ "type" : "string"
125
+ },
126
+
127
+ "format" : {
128
+ "type" : "string"
129
+ },
130
+
131
+ "divisibleBy" : {
132
+ "type" : "number",
133
+ "minimum" : 0,
134
+ "exclusiveMinimum" : true,
135
+ "default" : 1
136
+ },
137
+
138
+ "disallow" : {
139
+ "type" : ["string", "array"],
140
+ "items" : {
141
+ "type" : ["string", {"$ref" : "#"}]
142
+ },
143
+ "uniqueItems" : true
144
+ },
145
+
146
+ "extends" : {
147
+ "type" : [{"$ref" : "#"}, "array"],
148
+ "items" : {"$ref" : "#"},
149
+ "default" : {}
150
+ },
151
+
152
+ "id" : {
153
+ "type" : "string"
154
+ },
155
+
156
+ "$ref" : {
157
+ "type" : "string"
158
+ },
159
+
160
+ "$schema" : {
161
+ "type" : "string",
162
+ "format" : "uri"
163
+ }
164
+ },
165
+
166
+ "dependencies" : {
167
+ "exclusiveMinimum" : "minimum",
168
+ "exclusiveMaximum" : "maximum"
169
+ },
170
+
171
+ "default" : {}
172
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft4/metaschema.json ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "http://json-schema.org/draft-04/schema#",
3
+ "$schema": "http://json-schema.org/draft-04/schema#",
4
+ "description": "Core schema meta-schema",
5
+ "definitions": {
6
+ "schemaArray": {
7
+ "type": "array",
8
+ "minItems": 1,
9
+ "items": { "$ref": "#" }
10
+ },
11
+ "positiveInteger": {
12
+ "type": "integer",
13
+ "minimum": 0
14
+ },
15
+ "positiveIntegerDefault0": {
16
+ "allOf": [ { "$ref": "#/definitions/positiveInteger" }, { "default": 0 } ]
17
+ },
18
+ "simpleTypes": {
19
+ "enum": [ "array", "boolean", "integer", "null", "number", "object", "string" ]
20
+ },
21
+ "stringArray": {
22
+ "type": "array",
23
+ "items": { "type": "string" },
24
+ "minItems": 1,
25
+ "uniqueItems": true
26
+ }
27
+ },
28
+ "type": "object",
29
+ "properties": {
30
+ "id": {
31
+ "type": "string"
32
+ },
33
+ "$schema": {
34
+ "type": "string"
35
+ },
36
+ "title": {
37
+ "type": "string"
38
+ },
39
+ "description": {
40
+ "type": "string"
41
+ },
42
+ "default": {},
43
+ "multipleOf": {
44
+ "type": "number",
45
+ "minimum": 0,
46
+ "exclusiveMinimum": true
47
+ },
48
+ "maximum": {
49
+ "type": "number"
50
+ },
51
+ "exclusiveMaximum": {
52
+ "type": "boolean",
53
+ "default": false
54
+ },
55
+ "minimum": {
56
+ "type": "number"
57
+ },
58
+ "exclusiveMinimum": {
59
+ "type": "boolean",
60
+ "default": false
61
+ },
62
+ "maxLength": { "$ref": "#/definitions/positiveInteger" },
63
+ "minLength": { "$ref": "#/definitions/positiveIntegerDefault0" },
64
+ "pattern": {
65
+ "type": "string",
66
+ "format": "regex"
67
+ },
68
+ "additionalItems": {
69
+ "anyOf": [
70
+ { "type": "boolean" },
71
+ { "$ref": "#" }
72
+ ],
73
+ "default": {}
74
+ },
75
+ "items": {
76
+ "anyOf": [
77
+ { "$ref": "#" },
78
+ { "$ref": "#/definitions/schemaArray" }
79
+ ],
80
+ "default": {}
81
+ },
82
+ "maxItems": { "$ref": "#/definitions/positiveInteger" },
83
+ "minItems": { "$ref": "#/definitions/positiveIntegerDefault0" },
84
+ "uniqueItems": {
85
+ "type": "boolean",
86
+ "default": false
87
+ },
88
+ "maxProperties": { "$ref": "#/definitions/positiveInteger" },
89
+ "minProperties": { "$ref": "#/definitions/positiveIntegerDefault0" },
90
+ "required": { "$ref": "#/definitions/stringArray" },
91
+ "additionalProperties": {
92
+ "anyOf": [
93
+ { "type": "boolean" },
94
+ { "$ref": "#" }
95
+ ],
96
+ "default": {}
97
+ },
98
+ "definitions": {
99
+ "type": "object",
100
+ "additionalProperties": { "$ref": "#" },
101
+ "default": {}
102
+ },
103
+ "properties": {
104
+ "type": "object",
105
+ "additionalProperties": { "$ref": "#" },
106
+ "default": {}
107
+ },
108
+ "patternProperties": {
109
+ "type": "object",
110
+ "additionalProperties": { "$ref": "#" },
111
+ "default": {}
112
+ },
113
+ "dependencies": {
114
+ "type": "object",
115
+ "additionalProperties": {
116
+ "anyOf": [
117
+ { "$ref": "#" },
118
+ { "$ref": "#/definitions/stringArray" }
119
+ ]
120
+ }
121
+ },
122
+ "enum": {
123
+ "type": "array",
124
+ "minItems": 1,
125
+ "uniqueItems": true
126
+ },
127
+ "type": {
128
+ "anyOf": [
129
+ { "$ref": "#/definitions/simpleTypes" },
130
+ {
131
+ "type": "array",
132
+ "items": { "$ref": "#/definitions/simpleTypes" },
133
+ "minItems": 1,
134
+ "uniqueItems": true
135
+ }
136
+ ]
137
+ },
138
+ "format": { "type": "string" },
139
+ "allOf": { "$ref": "#/definitions/schemaArray" },
140
+ "anyOf": { "$ref": "#/definitions/schemaArray" },
141
+ "oneOf": { "$ref": "#/definitions/schemaArray" },
142
+ "not": { "$ref": "#" }
143
+ },
144
+ "dependencies": {
145
+ "exclusiveMaximum": [ "maximum" ],
146
+ "exclusiveMinimum": [ "minimum" ]
147
+ },
148
+ "default": {}
149
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft6/metaschema.json ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "http://json-schema.org/draft-06/schema#",
3
+ "$id": "http://json-schema.org/draft-06/schema#",
4
+ "title": "Core schema meta-schema",
5
+ "definitions": {
6
+ "schemaArray": {
7
+ "type": "array",
8
+ "minItems": 1,
9
+ "items": { "$ref": "#" }
10
+ },
11
+ "nonNegativeInteger": {
12
+ "type": "integer",
13
+ "minimum": 0
14
+ },
15
+ "nonNegativeIntegerDefault0": {
16
+ "allOf": [
17
+ { "$ref": "#/definitions/nonNegativeInteger" },
18
+ { "default": 0 }
19
+ ]
20
+ },
21
+ "simpleTypes": {
22
+ "enum": [
23
+ "array",
24
+ "boolean",
25
+ "integer",
26
+ "null",
27
+ "number",
28
+ "object",
29
+ "string"
30
+ ]
31
+ },
32
+ "stringArray": {
33
+ "type": "array",
34
+ "items": { "type": "string" },
35
+ "uniqueItems": true,
36
+ "default": []
37
+ }
38
+ },
39
+ "type": ["object", "boolean"],
40
+ "properties": {
41
+ "$id": {
42
+ "type": "string",
43
+ "format": "uri-reference"
44
+ },
45
+ "$schema": {
46
+ "type": "string",
47
+ "format": "uri"
48
+ },
49
+ "$ref": {
50
+ "type": "string",
51
+ "format": "uri-reference"
52
+ },
53
+ "title": {
54
+ "type": "string"
55
+ },
56
+ "description": {
57
+ "type": "string"
58
+ },
59
+ "default": {},
60
+ "examples": {
61
+ "type": "array",
62
+ "items": {}
63
+ },
64
+ "multipleOf": {
65
+ "type": "number",
66
+ "exclusiveMinimum": 0
67
+ },
68
+ "maximum": {
69
+ "type": "number"
70
+ },
71
+ "exclusiveMaximum": {
72
+ "type": "number"
73
+ },
74
+ "minimum": {
75
+ "type": "number"
76
+ },
77
+ "exclusiveMinimum": {
78
+ "type": "number"
79
+ },
80
+ "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },
81
+ "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
82
+ "pattern": {
83
+ "type": "string",
84
+ "format": "regex"
85
+ },
86
+ "additionalItems": { "$ref": "#" },
87
+ "items": {
88
+ "anyOf": [
89
+ { "$ref": "#" },
90
+ { "$ref": "#/definitions/schemaArray" }
91
+ ],
92
+ "default": {}
93
+ },
94
+ "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },
95
+ "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
96
+ "uniqueItems": {
97
+ "type": "boolean",
98
+ "default": false
99
+ },
100
+ "contains": { "$ref": "#" },
101
+ "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },
102
+ "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
103
+ "required": { "$ref": "#/definitions/stringArray" },
104
+ "additionalProperties": { "$ref": "#" },
105
+ "definitions": {
106
+ "type": "object",
107
+ "additionalProperties": { "$ref": "#" },
108
+ "default": {}
109
+ },
110
+ "properties": {
111
+ "type": "object",
112
+ "additionalProperties": { "$ref": "#" },
113
+ "default": {}
114
+ },
115
+ "patternProperties": {
116
+ "type": "object",
117
+ "additionalProperties": { "$ref": "#" },
118
+ "propertyNames": { "format": "regex" },
119
+ "default": {}
120
+ },
121
+ "dependencies": {
122
+ "type": "object",
123
+ "additionalProperties": {
124
+ "anyOf": [
125
+ { "$ref": "#" },
126
+ { "$ref": "#/definitions/stringArray" }
127
+ ]
128
+ }
129
+ },
130
+ "propertyNames": { "$ref": "#" },
131
+ "const": {},
132
+ "enum": {
133
+ "type": "array"
134
+ },
135
+ "type": {
136
+ "anyOf": [
137
+ { "$ref": "#/definitions/simpleTypes" },
138
+ {
139
+ "type": "array",
140
+ "items": { "$ref": "#/definitions/simpleTypes" },
141
+ "minItems": 1,
142
+ "uniqueItems": true
143
+ }
144
+ ]
145
+ },
146
+ "format": { "type": "string" },
147
+ "allOf": { "$ref": "#/definitions/schemaArray" },
148
+ "anyOf": { "$ref": "#/definitions/schemaArray" },
149
+ "oneOf": { "$ref": "#/definitions/schemaArray" },
150
+ "not": { "$ref": "#" }
151
+ },
152
+ "default": {}
153
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/schemas/draft7/metaschema.json ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "http://json-schema.org/draft-07/schema#",
4
+ "title": "Core schema meta-schema",
5
+ "definitions": {
6
+ "schemaArray": {
7
+ "type": "array",
8
+ "minItems": 1,
9
+ "items": { "$ref": "#" }
10
+ },
11
+ "nonNegativeInteger": {
12
+ "type": "integer",
13
+ "minimum": 0
14
+ },
15
+ "nonNegativeIntegerDefault0": {
16
+ "allOf": [
17
+ { "$ref": "#/definitions/nonNegativeInteger" },
18
+ { "default": 0 }
19
+ ]
20
+ },
21
+ "simpleTypes": {
22
+ "enum": [
23
+ "array",
24
+ "boolean",
25
+ "integer",
26
+ "null",
27
+ "number",
28
+ "object",
29
+ "string"
30
+ ]
31
+ },
32
+ "stringArray": {
33
+ "type": "array",
34
+ "items": { "type": "string" },
35
+ "uniqueItems": true,
36
+ "default": []
37
+ }
38
+ },
39
+ "type": ["object", "boolean"],
40
+ "properties": {
41
+ "$id": {
42
+ "type": "string",
43
+ "format": "uri-reference"
44
+ },
45
+ "$schema": {
46
+ "type": "string",
47
+ "format": "uri"
48
+ },
49
+ "$ref": {
50
+ "type": "string",
51
+ "format": "uri-reference"
52
+ },
53
+ "$comment": {
54
+ "type": "string"
55
+ },
56
+ "title": {
57
+ "type": "string"
58
+ },
59
+ "description": {
60
+ "type": "string"
61
+ },
62
+ "default": true,
63
+ "readOnly": {
64
+ "type": "boolean",
65
+ "default": false
66
+ },
67
+ "examples": {
68
+ "type": "array",
69
+ "items": true
70
+ },
71
+ "multipleOf": {
72
+ "type": "number",
73
+ "exclusiveMinimum": 0
74
+ },
75
+ "maximum": {
76
+ "type": "number"
77
+ },
78
+ "exclusiveMaximum": {
79
+ "type": "number"
80
+ },
81
+ "minimum": {
82
+ "type": "number"
83
+ },
84
+ "exclusiveMinimum": {
85
+ "type": "number"
86
+ },
87
+ "maxLength": { "$ref": "#/definitions/nonNegativeInteger" },
88
+ "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
89
+ "pattern": {
90
+ "type": "string",
91
+ "format": "regex"
92
+ },
93
+ "additionalItems": { "$ref": "#" },
94
+ "items": {
95
+ "anyOf": [
96
+ { "$ref": "#" },
97
+ { "$ref": "#/definitions/schemaArray" }
98
+ ],
99
+ "default": true
100
+ },
101
+ "maxItems": { "$ref": "#/definitions/nonNegativeInteger" },
102
+ "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
103
+ "uniqueItems": {
104
+ "type": "boolean",
105
+ "default": false
106
+ },
107
+ "contains": { "$ref": "#" },
108
+ "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" },
109
+ "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" },
110
+ "required": { "$ref": "#/definitions/stringArray" },
111
+ "additionalProperties": { "$ref": "#" },
112
+ "definitions": {
113
+ "type": "object",
114
+ "additionalProperties": { "$ref": "#" },
115
+ "default": {}
116
+ },
117
+ "properties": {
118
+ "type": "object",
119
+ "additionalProperties": { "$ref": "#" },
120
+ "default": {}
121
+ },
122
+ "patternProperties": {
123
+ "type": "object",
124
+ "additionalProperties": { "$ref": "#" },
125
+ "propertyNames": { "format": "regex" },
126
+ "default": {}
127
+ },
128
+ "dependencies": {
129
+ "type": "object",
130
+ "additionalProperties": {
131
+ "anyOf": [
132
+ { "$ref": "#" },
133
+ { "$ref": "#/definitions/stringArray" }
134
+ ]
135
+ }
136
+ },
137
+ "propertyNames": { "$ref": "#" },
138
+ "const": true,
139
+ "enum": {
140
+ "type": "array",
141
+ "items": true
142
+ },
143
+ "type": {
144
+ "anyOf": [
145
+ { "$ref": "#/definitions/simpleTypes" },
146
+ {
147
+ "type": "array",
148
+ "items": { "$ref": "#/definitions/simpleTypes" },
149
+ "minItems": 1,
150
+ "uniqueItems": true
151
+ }
152
+ ]
153
+ },
154
+ "format": { "type": "string" },
155
+ "contentMediaType": { "type": "string" },
156
+ "contentEncoding": { "type": "string" },
157
+ "if": {"$ref": "#"},
158
+ "then": {"$ref": "#"},
159
+ "else": {"$ref": "#"},
160
+ "allOf": { "$ref": "#/definitions/schemaArray" },
161
+ "anyOf": { "$ref": "#/definitions/schemaArray" },
162
+ "oneOf": { "$ref": "#/definitions/schemaArray" },
163
+ "not": { "$ref": "#" }
164
+ },
165
+ "default": true
166
+ }
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/tests/__init__.py ADDED
File without changes
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/tests/__pycache__/__init__.cpython-312.pyc ADDED
Binary file (210 Bytes). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/tests/__pycache__/test_jsonschema_specifications.cpython-312.pyc ADDED
Binary file (1.95 kB). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/jsonschema_specifications/tests/test_jsonschema_specifications.py ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from collections.abc import Mapping
2
+ from pathlib import Path
3
+
4
+ import pytest
5
+
6
+ from jsonschema_specifications import REGISTRY
7
+
8
+
9
+ def test_it_contains_metaschemas():
10
+ schema = REGISTRY.contents("http://json-schema.org/draft-07/schema#")
11
+ assert isinstance(schema, Mapping)
12
+ assert schema["$id"] == "http://json-schema.org/draft-07/schema#"
13
+ assert schema["title"] == "Core schema meta-schema"
14
+
15
+
16
+ def test_it_is_crawled():
17
+ assert REGISTRY.crawl() == REGISTRY
18
+
19
+
20
+ @pytest.mark.parametrize(
21
+ "ignored_relative_path",
22
+ ["schemas/.DS_Store", "schemas/draft7/.DS_Store"],
23
+ )
24
+ def test_it_copes_with_dotfiles(ignored_relative_path):
25
+ """
26
+ Ignore files like .DS_Store if someone has actually caused one to exist.
27
+
28
+ We test here through the private interface as of course the global has
29
+ already loaded our schemas.
30
+ """
31
+
32
+ import jsonschema_specifications
33
+
34
+ package = Path(jsonschema_specifications.__file__).parent
35
+
36
+ ignored = package / ignored_relative_path
37
+ ignored.touch()
38
+ try:
39
+ list(jsonschema_specifications._schemas())
40
+ finally:
41
+ ignored.unlink()
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/config/__pycache__/__init__.cpython-312.pyc ADDED
Binary file (198 Bytes). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/config/__pycache__/test_config.cpython-312.pyc ADDED
Binary file (26.9 kB). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/config/__pycache__/test_localization.cpython-312.pyc ADDED
Binary file (6.54 kB). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/construction/__pycache__/__init__.cpython-312.pyc ADDED
Binary file (204 Bytes). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/construction/__pycache__/test_extract_array.cpython-312.pyc ADDED
Binary file (1.11 kB). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/__init__.cpython-312.pyc ADDED
Binary file (201 Bytes). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_array.cpython-312.pyc ADDED
Binary file (8.92 kB). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_astype.cpython-312.pyc ADDED
Binary file (13.6 kB). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_clip.cpython-312.pyc ADDED
Binary file (4.56 kB). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_constructors.cpython-312.pyc ADDED
Binary file (17.8 kB). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_core_functionalities.cpython-312.pyc ADDED
Binary file (5.28 kB). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_functions.cpython-312.pyc ADDED
Binary file (24.7 kB). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_indexing.cpython-312.pyc ADDED
Binary file (45.3 kB). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_internals.cpython-312.pyc ADDED
Binary file (7.85 kB). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_interp_fillna.cpython-312.pyc ADDED
Binary file (21.2 kB). View file
 
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_methods.cpython-312.pyc ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1856b271a285dcbcf658ab43a9cc97c508d3d412cbbb5ff13774bc8c6202438
3
+ size 103398
platform/dataops/dto/.venv/lib/python3.12/site-packages/pandas/tests/copy_view/__pycache__/test_replace.cpython-312.pyc ADDED
Binary file (23.9 kB). View file