qwak-core 0.6.7__py3-none-any.whl → 0.7.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.
Files changed (68) hide show
  1. frogml_storage/__init__.py +1 -0
  2. frogml_storage/artifactory/__init__.py +1 -0
  3. frogml_storage/artifactory/_artifactory_api.py +315 -0
  4. frogml_storage/authentication/login/__init__.py +1 -0
  5. frogml_storage/authentication/login/_login_cli.py +239 -0
  6. frogml_storage/authentication/login/_login_command.py +74 -0
  7. frogml_storage/authentication/models/__init__.py +3 -0
  8. frogml_storage/authentication/models/_auth.py +24 -0
  9. frogml_storage/authentication/models/_auth_config.py +70 -0
  10. frogml_storage/authentication/models/_login.py +22 -0
  11. frogml_storage/authentication/utils/__init__.py +18 -0
  12. frogml_storage/authentication/utils/_authentication_utils.py +284 -0
  13. frogml_storage/authentication/utils/_login_checks_utils.py +114 -0
  14. frogml_storage/base_storage.py +140 -0
  15. frogml_storage/constants.py +56 -0
  16. frogml_storage/exceptions/checksum_verification_error.py +3 -0
  17. frogml_storage/exceptions/validation_error.py +4 -0
  18. frogml_storage/frog_ml.py +668 -0
  19. frogml_storage/http/__init__.py +1 -0
  20. frogml_storage/http/http_client.py +83 -0
  21. frogml_storage/logging/__init__.py +1 -0
  22. frogml_storage/logging/_log_config.py +45 -0
  23. frogml_storage/logging/log_utils.py +21 -0
  24. frogml_storage/models/__init__.py +1 -0
  25. frogml_storage/models/_download_context.py +54 -0
  26. frogml_storage/models/dataset_manifest.py +13 -0
  27. frogml_storage/models/entity_manifest.py +93 -0
  28. frogml_storage/models/frogml_dataset_version.py +21 -0
  29. frogml_storage/models/frogml_entity_type_info.py +50 -0
  30. frogml_storage/models/frogml_entity_version.py +34 -0
  31. frogml_storage/models/frogml_model_version.py +21 -0
  32. frogml_storage/models/model_manifest.py +60 -0
  33. frogml_storage/models/serialization_metadata.py +15 -0
  34. frogml_storage/utils/__init__.py +12 -0
  35. frogml_storage/utils/_environment.py +21 -0
  36. frogml_storage/utils/_input_checks_utility.py +104 -0
  37. frogml_storage/utils/_storage_utils.py +15 -0
  38. frogml_storage/utils/_url_utils.py +27 -0
  39. qwak/__init__.py +1 -1
  40. qwak/clients/model_management/client.py +5 -0
  41. qwak/clients/project/client.py +7 -0
  42. qwak/inner/const.py +8 -0
  43. qwak/inner/di_configuration/account.py +67 -6
  44. qwak/inner/di_configuration/dependency_wiring.py +0 -2
  45. qwak/inner/tool/auth.py +83 -0
  46. qwak/inner/tool/grpc/grpc_auth.py +35 -0
  47. qwak/inner/tool/grpc/grpc_tools.py +37 -14
  48. qwak/inner/tool/grpc/grpc_try_wrapping.py +1 -3
  49. qwak/qwak_client/client.py +6 -0
  50. {qwak_core-0.6.7.dist-info → qwak_core-0.7.0.dist-info}/METADATA +1 -1
  51. {qwak_core-0.6.7.dist-info → qwak_core-0.7.0.dist-info}/RECORD +54 -30
  52. qwak_services_mock/mocks/qwak_mocks.py +2 -8
  53. qwak_services_mock/services_mock.py +0 -24
  54. qwak/clients/vector_store/__init__.py +0 -2
  55. qwak/clients/vector_store/management_client.py +0 -124
  56. qwak/clients/vector_store/serving_client.py +0 -156
  57. qwak/vector_store/__init__.py +0 -4
  58. qwak/vector_store/client.py +0 -150
  59. qwak/vector_store/collection.py +0 -426
  60. qwak/vector_store/filters.py +0 -354
  61. qwak/vector_store/inference_client.py +0 -103
  62. qwak/vector_store/rest_helpers.py +0 -72
  63. qwak/vector_store/utils/__init__.py +0 -0
  64. qwak/vector_store/utils/filter_utils.py +0 -21
  65. qwak/vector_store/utils/upsert_utils.py +0 -217
  66. qwak_services_mock/mocks/vector_serving_api.py +0 -154
  67. qwak_services_mock/mocks/vectors_management_api.py +0 -96
  68. {qwak_core-0.6.7.dist-info → qwak_core-0.7.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,56 @@
1
+ import os
2
+
3
+ home_dir = os.path.expanduser("~")
4
+
5
+ JFROG_CLI_CONFIG_FILE_PATH = os.path.join(home_dir, ".jfrog", "jfrog-cli.conf.v6")
6
+ CONFIG_FILE_PATH = os.path.join(home_dir, ".frogml", "config.json")
7
+
8
+ FROG_ML_CONFIG_USER = "user"
9
+ FROG_ML_CONFIG_ARTIFACTORY_URL = "artifactory_url"
10
+ FROG_ML_CONFIG_PASSWORD = "password" # nosec B105
11
+ FROG_ML_CONFIG_ACCESS_TOKEN = "access_token" # nosec B105
12
+ FROG_ML_DEFAULT_HTTP_THREADS_COUNT = 5
13
+ FROG_ML_MAX_CHARS_FOR_NAME = 60
14
+
15
+ SERVER_ID = "server_id"
16
+
17
+ JFROG_CLI_CONFIG_ARTIFACTORY_URL = "artifactoryUrl"
18
+ JFROG_CLI_CONFIG_URL = "url"
19
+ JFROG_CLI_CONFIG_USER = "user"
20
+ JFROG_CLI_CONFIG_PASSWORD = "password" # nosec B105
21
+ JFROG_CLI_CONFIG_ACCESS_TOKEN = "accessToken" # nosec B105
22
+
23
+ MODEL = "model"
24
+ ROOT_FROGML_MODEL_UI_DIRECTORY = "models"
25
+ MODEL_UI_DIRECTORY = "model"
26
+ MODEL_METADATA_FILE_NAME = "model-manifest.json"
27
+ BODY_PART_MODEL_MANIFEST_STREAM = "modelManifest"
28
+
29
+ DATASET = "dataset"
30
+ ROOT_FROGML_DATASET_UI_DIRECTORY = "datasets"
31
+ DATASET_UI_DIRECTORY = "dataset"
32
+ DATASET_METADATA_FILE_NAME = "dataset-manifest.json"
33
+ BODY_PART_DATASET_MANIFEST_STREAM = "datasetManifest"
34
+
35
+ CHECKSUM_SHA2_HEADER = "X-Checksum-Sha256"
36
+
37
+ JFML_THREAD_COUNT = "JFML_THREAD_COUNT"
38
+ JF_URL = "JF_URL"
39
+ JF_ACCESS_TOKEN = "JF_ACCESS_TOKEN" # nosec B105
40
+
41
+ FROG_ML_IGNORED_FILES = [
42
+ ".DS_Store",
43
+ "CVS",
44
+ ".cvsignore",
45
+ "SCCS",
46
+ "vssver.scc",
47
+ ".svn",
48
+ ".git",
49
+ ".gitignore",
50
+ ".gitattributes",
51
+ ".gitmodules",
52
+ ".gitkeep",
53
+ ".gitconfig",
54
+ MODEL_METADATA_FILE_NAME,
55
+ DATASET_METADATA_FILE_NAME,
56
+ ]
@@ -0,0 +1,3 @@
1
+ class ChecksumVerificationError(Exception):
2
+ def __init__(self, filename):
3
+ super().__init__(f"Checksum verification failed for file: '{filename}'")
@@ -0,0 +1,4 @@
1
+ class FrogMLValidationError(ValueError):
2
+ def __init__(self, message, errors=None):
3
+ super().__init__(message)
4
+ self.errors = errors or {}