supervisely 6.73.458__py3-none-any.whl → 6.73.460__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.

Potentially problematic release.


This version of supervisely might be problematic. Click here for more details.

@@ -42,7 +42,7 @@ class CustomStaticFiles(StaticFiles):
42
42
  def _get_range_header(range_header: str, file_size: int) -> typing.Tuple[int, int]:
43
43
  def _invalid_range():
44
44
  return HTTPException(
45
- status.HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE,
45
+ status.HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE, #TODO: change to status.HTTP_416_RANGE_NOT_SATISFIABLE if update starlette to 0.48.0+
46
46
  detail=f"Invalid request range (Range:{range_header!r})",
47
47
  )
48
48
 
@@ -119,11 +119,9 @@ class SelectDatasetTree(Widget):
119
119
  self._dataset_id = default_id or env.dataset_id(raise_not_found=False)
120
120
  if self._project_id:
121
121
  project_info = self._api.project.get_info_by_id(self._project_id)
122
- if (
123
- project_info.type not in [pt.value for pt in allowed_project_types]
124
- and allowed_project_types is not None
125
- ):
126
- self._project_id = None
122
+ if allowed_project_types is not None:
123
+ if project_info.type not in [pt.value for pt in allowed_project_types]:
124
+ self._project_id = None
127
125
 
128
126
  self._multiselect = multiselect
129
127
  self._compact = compact
@@ -326,26 +324,22 @@ class SelectDatasetTree(Widget):
326
324
  raise ValueError("This method can only be called when multiselect is enabled.")
327
325
  self._select_dataset.set_selected_by_id(dataset_ids)
328
326
 
329
-
330
327
  def team_changed(self, func: Callable) -> Callable:
331
- """Decorator to set the callback function for the team changed event.
332
- """
328
+ """Decorator to set the callback function for the team changed event."""
333
329
  if self._compact:
334
330
  raise ValueError("callback 'team_changed' is not available in compact mode.")
335
331
  self._team_changed_callbacks.append(func)
336
332
  return func
337
333
 
338
334
  def workspace_changed(self, func: Callable) -> Callable:
339
- """Decorator to set the callback function for the workspace changed event.
340
- """
335
+ """Decorator to set the callback function for the workspace changed event."""
341
336
  if self._compact:
342
337
  raise ValueError("callback 'workspace_changed' is not available in compact mode.")
343
338
  self._workspace_changed_callbacks.append(func)
344
339
  return func
345
340
 
346
341
  def project_changed(self, func: Callable) -> Callable:
347
- """Decorator to set the callback function for the project changed event.
348
- """
342
+ """Decorator to set the callback function for the project changed event."""
349
343
  if self._compact:
350
344
  raise ValueError("callback 'project_changed' is not available in compact mode.")
351
345
  self._project_changed_callbacks.append(func)
@@ -484,7 +478,7 @@ class SelectDatasetTree(Widget):
484
478
  ):
485
479
  self._select_dataset.select_all()
486
480
  self._select_dataset_field.hide()
487
-
481
+
488
482
  for callback in self._project_changed_callbacks:
489
483
  callback(project_id)
490
484
 
@@ -797,7 +797,7 @@ class InferenceImageCache:
797
797
  try:
798
798
  image = self._cache.get_image(name_constructor(hash_or_id))
799
799
  except Exception as e:
800
- logger.error(f"Error retrieving image from cache: {e}", exc_info=True)
800
+ logger.error(f"Error retrieving image from cache: {repr(e)}. Image will be re-downloaded", exc_info=True)
801
801
  ids_to_load.append(hash_or_id)
802
802
  return pos, None
803
803
  return pos, image
@@ -15,6 +15,8 @@ from supervisely.io.fs import (
15
15
  change_directory_at_index,
16
16
  )
17
17
 
18
+ if not hasattr(np, "bool"):
19
+ np.bool = np.bool_
18
20
 
19
21
  def matrix_from_nrrd_header(header: Dict) -> np.ndarray:
20
22
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supervisely
3
- Version: 6.73.458
3
+ Version: 6.73.460
4
4
  Summary: Supervisely Python SDK.
5
5
  Home-page: https://github.com/supervisely/supervisely
6
6
  Author: Supervisely
@@ -21,14 +21,14 @@ Requires-Python: >=3.8
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
23
  Requires-Dist: cachetools<=5.5.0,>=4.2.3
24
- Requires-Dist: numpy<2.0.0,>=1.19
24
+ Requires-Dist: numpy<=2.3.3,>=1.19
25
25
  Requires-Dist: opencv-python<5.0.0.0,>=4.6.0.66
26
26
  Requires-Dist: PTable<1.0.0,>=0.9.2
27
27
  Requires-Dist: pillow<=10.4.0,>=5.4.1
28
28
  Requires-Dist: python-json-logger<3.0.0,>=0.1.11
29
29
  Requires-Dist: requests<3.0.0,>=2.27.1
30
30
  Requires-Dist: requests-toolbelt>=0.9.1
31
- Requires-Dist: Shapely<=2.0.2,>=1.7.1
31
+ Requires-Dist: Shapely<=2.1.2,>=1.7.1
32
32
  Requires-Dist: bidict<1.0.0,>=0.21.2
33
33
  Requires-Dist: varname<1.0.0,>=0.8.1
34
34
  Requires-Dist: python-dotenv<=1.0.1,>=0.19.2
@@ -39,9 +39,9 @@ Requires-Dist: stringcase<2.0.0,>=1.2.0
39
39
  Requires-Dist: python-magic<1.0.0,>=0.4.25
40
40
  Requires-Dist: trimesh<=4.5.0,>=3.11.2
41
41
  Requires-Dist: uvicorn[standard]<1.0.0,>=0.18.2
42
- Requires-Dist: pydantic<=2.11.3,>=1.7.4
43
- Requires-Dist: anyio<=4.2.0,>=3.7.1
44
- Requires-Dist: fastapi<=0.109.0,>=0.79.0
42
+ Requires-Dist: starlette<=0.47.3
43
+ Requires-Dist: pydantic<=2.12.3,>=1.7.4
44
+ Requires-Dist: fastapi<=0.119.1,>=0.103.1
45
45
  Requires-Dist: websockets<=13.1,>=10.3
46
46
  Requires-Dist: jinja2<4.0.0,>=3.0.3
47
47
  Requires-Dist: psutil<6.0.0,>=5.9.0
@@ -49,7 +49,7 @@ Requires-Dist: jsonpatch<2.0,>=1.32
49
49
  Requires-Dist: MarkupSafe<3.0.0,>=2.1.1
50
50
  Requires-Dist: arel<1.0.0,>=0.2.0
51
51
  Requires-Dist: tqdm<5.0.0,>=4.62.3
52
- Requires-Dist: pandas<=2.1.4,>=1.1.3
52
+ Requires-Dist: pandas<=2.3.3,>=1.1.3
53
53
  Requires-Dist: async-asgi-testclient
54
54
  Requires-Dist: PyYAML>=5.4.0
55
55
  Requires-Dist: distinctipy
@@ -70,6 +70,7 @@ Requires-Dist: zstd
70
70
  Requires-Dist: aiofiles
71
71
  Requires-Dist: httpx[http2]==0.27.2
72
72
  Requires-Dist: debugpy
73
+ Requires-Dist: setuptools<81.0.0
73
74
  Provides-Extra: agent
74
75
  Requires-Dist: protobuf<=3.20.3,>=3.19.5; extra == "agent"
75
76
  Provides-Extra: apps
@@ -82,10 +83,11 @@ Requires-Dist: jsonpatch<2.0,>=1.32; extra == "apps"
82
83
  Requires-Dist: MarkupSafe<3.0.0,>=2.1.1; extra == "apps"
83
84
  Requires-Dist: arel<1.0.0,>=0.2.0; extra == "apps"
84
85
  Requires-Dist: tqdm<5.0.0,>=4.62.3; extra == "apps"
85
- Requires-Dist: pandas<1.4.0,>=1.1.3; extra == "apps"
86
+ Requires-Dist: pandas<=2.3.3,>=1.1.3; extra == "apps"
86
87
  Provides-Extra: aug
87
88
  Requires-Dist: imgaug<1.0.0,>=0.4.0; extra == "aug"
88
89
  Requires-Dist: imagecorruptions<2.0.0,>=1.1.2; extra == "aug"
90
+ Requires-Dist: numpy<2.0.0,>=1.19; extra == "aug"
89
91
  Provides-Extra: docs
90
92
  Requires-Dist: sphinx==4.4.0; extra == "docs"
91
93
  Requires-Dist: jinja2==3.0.3; extra == "docs"
@@ -101,7 +103,7 @@ Requires-Dist: scikit-image<1.0.0,>=0.17.1; extra == "extras"
101
103
  Requires-Dist: matplotlib<4.0.0,>=3.3.2; extra == "extras"
102
104
  Requires-Dist: pascal-voc-writer<1.0.0,>=0.1.4; extra == "extras"
103
105
  Requires-Dist: scipy<2.0.0,>=1.8.0; extra == "extras"
104
- Requires-Dist: pandas<1.4.0,>=1.1.3; extra == "extras"
106
+ Requires-Dist: pandas<=2.3.3,>=1.1.3; extra == "extras"
105
107
  Requires-Dist: ruamel.yaml==0.17.21; extra == "extras"
106
108
  Provides-Extra: model-benchmark
107
109
  Requires-Dist: pycocotools; extra == "model-benchmark"
@@ -94,7 +94,7 @@ supervisely/app/development/__init__.py,sha256=f2SpWBcCFPbSEBsJijH25eCAK8NcY2An5
94
94
  supervisely/app/development/development.py,sha256=Ij3tn7HmkHr2RRoYxlpK9xkTGnpFjZwy2kArn6ZxVnA,12505
95
95
  supervisely/app/development/sly-net.sh,sha256=M-RWQ7kygrJm88WGsOW0tEccO0fDgj_xGLI8Ifm-Ie4,1111
96
96
  supervisely/app/fastapi/__init__.py,sha256=ZT7hgv34YNg0CBWHcdvksqXHCcN23f1YdXp-JZd87Ek,482
97
- supervisely/app/fastapi/custom_static_files.py,sha256=5todaVIvUG9sAt6vu1IujJn8N7zTmFhVUfeCVbuXbvc,3391
97
+ supervisely/app/fastapi/custom_static_files.py,sha256=VwIozb4CFgJLkkC-hTHOHvYwPpWNSkjddPTaL-fagXw,3477
98
98
  supervisely/app/fastapi/dialog_window.html,sha256=ffaAxjK0TQRa7RrY5oA4uE6RzFuS0VnRG1pfoIzTqVM,1183
99
99
  supervisely/app/fastapi/index.html,sha256=dz_e-0RE5ZbOU0ToUaEHe1ROI6Tc3SPL-mHt1CpZTxQ,8793
100
100
  supervisely/app/fastapi/multi_user.py,sha256=m8Iy0ibTy85C7JkkovcRbDOirmIaz8BOOmAckDLGItk,3341
@@ -461,7 +461,7 @@ supervisely/app/widgets/select_dataset/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JC
461
461
  supervisely/app/widgets/select_dataset/select_dataset.py,sha256=S7zl83lUhquJ1U8GugiViEiGId6a5nVDfyIRRxh_LT4,10295
462
462
  supervisely/app/widgets/select_dataset/template.html,sha256=7O_ZgmRs0vOL8tng6QvYbI_0o6A4yMAPB2MlfzWHeHQ,984
463
463
  supervisely/app/widgets/select_dataset_tree/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
464
- supervisely/app/widgets/select_dataset_tree/select_dataset_tree.py,sha256=gVJne5A4-QtqEy1s3qwWFR_LlOHrBUlR0vo2BOa8XzQ,25649
464
+ supervisely/app/widgets/select_dataset_tree/select_dataset_tree.py,sha256=Dl2RnuUe0RLkZwGOXbcJO_9tcFmIId8dCKZkRpCqcRY,25577
465
465
  supervisely/app/widgets/select_dataset_tree/template.html,sha256=_uvKCMP0nkpSl3FiTUxqy10JZw3q8-9hXCv22W3BDF0,38
466
466
  supervisely/app/widgets/select_item/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
467
467
  supervisely/app/widgets/select_item/select_item.py,sha256=dcB0UN46rn3nFQybgrGpLRfwB6xnPo-GGrv9rsMeCbA,3833
@@ -905,7 +905,7 @@ supervisely/nn/benchmark/visualization/widgets/sidebar/sidebar.py,sha256=tKPURRS
905
905
  supervisely/nn/benchmark/visualization/widgets/table/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
906
906
  supervisely/nn/benchmark/visualization/widgets/table/table.py,sha256=atmDnF1Af6qLQBUjLhK18RMDKAYlxnsuVHMSEa5a-e8,4319
907
907
  supervisely/nn/inference/__init__.py,sha256=QFukX2ip-U7263aEPCF_UCFwj6EujbMnsgrXp5Bbt8I,1623
908
- supervisely/nn/inference/cache.py,sha256=byR1T9pr4ogKz4xOyOomRvxW4tuQqlZniTZy9HA7BY4,35595
908
+ supervisely/nn/inference/cache.py,sha256=crpcUUzOFhP9Q2bmB_JILCofT-CO5mysirLe5H5AkrU,35630
909
909
  supervisely/nn/inference/inference.py,sha256=DBcROvcSdmauvEMFJcXNTkbltoPamX7ixh34a1pKTeQ,219669
910
910
  supervisely/nn/inference/inference_request.py,sha256=yuqEL4BWjC-aKze_raGScEQyhHe8loYb_eNhGPsf2-4,14870
911
911
  supervisely/nn/inference/session.py,sha256=f2Tyvj21oO9AKxqr6_yHZ81Ol-wXC-h5cweTHEoljkg,35796
@@ -1106,7 +1106,7 @@ supervisely/video_annotation/video_tag_collection.py,sha256=CijC6DqepwraFOIsEWjE
1106
1106
  supervisely/volume/__init__.py,sha256=EBZBY_5mzabXzMUQh5akusIGd16XnX9n8J0jIi_JmWw,446
1107
1107
  supervisely/volume/nrrd_encoder.py,sha256=1lqwwyqxEvctw1ysQ70x4xPSV1uy1g5YcH5CURwL7-c,4084
1108
1108
  supervisely/volume/nrrd_loader.py,sha256=_yqahKcqSRxunHZ5LtnUWIRA7UvIhPKOhAUwYijSGY4,9065
1109
- supervisely/volume/stl_converter.py,sha256=WIMQgHO_u4JT58QdcMXcb_euF1BFhM7D52IVX_0QTxE,6285
1109
+ supervisely/volume/stl_converter.py,sha256=O50-VRQM26-mj68YsmkB1lMHJ_lh-RnP09TZJQ5de8M,6336
1110
1110
  supervisely/volume/volume.py,sha256=jDu_p1zPQxCojjtdJlVVTxfuKgVCYmMSY13Xz99k7pA,30765
1111
1111
  supervisely/volume_annotation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1112
1112
  supervisely/volume_annotation/constants.py,sha256=BdFIh56fy7vzLIjt0gH8xP01EIU-qgQIwbSHVUcABCU,569
@@ -1129,9 +1129,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
1129
1129
  supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
1130
1130
  supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
1131
1131
  supervisely_lib/__init__.py,sha256=yRwzEQmVwSd6lUQoAUdBngKEOlnoQ6hA9ZcoZGJRNC4,331
1132
- supervisely-6.73.458.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1133
- supervisely-6.73.458.dist-info/METADATA,sha256=NE7sMUK3sfkqLwTOBxjJf3DNJ9H2Eb-S6mAOJmAX8pg,35520
1134
- supervisely-6.73.458.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
1135
- supervisely-6.73.458.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1136
- supervisely-6.73.458.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1137
- supervisely-6.73.458.dist-info/RECORD,,
1132
+ supervisely-6.73.460.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1133
+ supervisely-6.73.460.dist-info/METADATA,sha256=Oe6s7atYi8hbNnRLu5PkJkYnxSAhPWMIJID7S7J_wVo,35604
1134
+ supervisely-6.73.460.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
1135
+ supervisely-6.73.460.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1136
+ supervisely-6.73.460.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1137
+ supervisely-6.73.460.dist-info/RECORD,,