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

@@ -812,6 +812,25 @@ def _init(
812
812
  response = await process_server_error(request, exc, need_to_handle_error)
813
813
  return response
814
814
 
815
+ def verify_localhost(request: Request):
816
+ client_host = request.client.host
817
+ if client_host not in ["127.0.0.1", "::1"]:
818
+ raise HTTPException(status_code=404, detail="Not Found")
819
+
820
+ @app.post("/debug", dependencies=[Depends(verify_localhost)])
821
+ def start_debug():
822
+ import debugpy
823
+
824
+ debug_host = os.getenv("DEBUG_HOST", "127.0.0.1")
825
+ debug_port = int(os.getenv("DEBUG_PORT", "5678"))
826
+ debugpy.listen((debug_host, debug_port))
827
+ return {
828
+ "status": "success",
829
+ "message": f"Debug server is listening on {debug_host}:{debug_port}",
830
+ "host": debug_host,
831
+ "port": debug_port,
832
+ }
833
+
815
834
  if headless is False:
816
835
  app.cached_template = None
817
836
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supervisely
3
- Version: 6.73.309
3
+ Version: 6.73.310
4
4
  Summary: Supervisely Python SDK.
5
5
  Home-page: https://github.com/supervisely/supervisely
6
6
  Author: Supervisely
@@ -70,6 +70,7 @@ Requires-Dist: pyjwt<3.0.0,>=2.1.0
70
70
  Requires-Dist: zstd
71
71
  Requires-Dist: aiofiles
72
72
  Requires-Dist: httpx[http2]==0.27.2
73
+ Requires-Dist: debugpy
73
74
  Provides-Extra: apps
74
75
  Requires-Dist: uvicorn[standard]<1.0.0,>=0.18.2; extra == "apps"
75
76
  Requires-Dist: fastapi<1.0.0,>=0.79.0; extra == "apps"
@@ -93,7 +93,7 @@ supervisely/app/fastapi/index.html,sha256=6K8akK7_k9Au-BpZ7cM2qocuiegLdXz8UFPnWg
93
93
  supervisely/app/fastapi/no_html_main.html,sha256=NhQP7noyORBx72lFh1CQKgBRupkWjiq6Gaw-9Hkvg7c,37
94
94
  supervisely/app/fastapi/offline.py,sha256=CwMMkJ1frD6wiZS-SEoNDtQ1UJcJe1Ob6ohE3r4CQL8,7414
95
95
  supervisely/app/fastapi/request.py,sha256=NU7rKmxJ1pfkDZ7_yHckRcRAueJRQIqCor11UO2OHr8,766
96
- supervisely/app/fastapi/subapp.py,sha256=AE_AJQ5ZfNKbV38To2uhSnSR7C_XoI99lAc0nDXOtbU,44064
96
+ supervisely/app/fastapi/subapp.py,sha256=uKk5epRbwlhl7ue1-OYKUC6oJ9krJ9hIEHEcFqNVdXI,44757
97
97
  supervisely/app/fastapi/templating.py,sha256=JOAW8U-14GD47E286mzFi3mZSPbm_csJGqtXWLRM4rc,2929
98
98
  supervisely/app/fastapi/utils.py,sha256=GZuTWLcVRGVx8TL3jVEYUOZIT2FawbwIe2kAOBLw9ho,398
99
99
  supervisely/app/fastapi/websocket.py,sha256=TlRSPOAhRItTv1HGvdukK1ZvhRjMUxRa-lJlsRR9rJw,1308
@@ -1075,9 +1075,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
1075
1075
  supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
1076
1076
  supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
1077
1077
  supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
1078
- supervisely-6.73.309.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1079
- supervisely-6.73.309.dist-info/METADATA,sha256=Ek8RYYRA_kKO3OyWLaXtIBmF7b61iOmD3h56s3gDFaI,33573
1080
- supervisely-6.73.309.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
1081
- supervisely-6.73.309.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1082
- supervisely-6.73.309.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1083
- supervisely-6.73.309.dist-info/RECORD,,
1078
+ supervisely-6.73.310.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1079
+ supervisely-6.73.310.dist-info/METADATA,sha256=DKjhQeBTWjIX--CIzWMMT8aSbzyDbtWOjezUpfWW5CM,33596
1080
+ supervisely-6.73.310.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
1081
+ supervisely-6.73.310.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1082
+ supervisely-6.73.310.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1083
+ supervisely-6.73.310.dist-info/RECORD,,