latch 2.51.2.dev4__py3-none-any.whl → 2.51.2.dev5__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: latch
3
- Version: 2.51.2.dev4
3
+ Version: 2.51.2.dev5
4
4
  Summary: The Latch SDK
5
5
  Author-email: kenny@latch.bio
6
6
  Classifier: Programming Language :: Python :: 3.8
@@ -52,7 +52,7 @@ latch_cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
52
  latch_cli/click_utils.py,sha256=3ZILEiW_cKf_ZuRznpBGgl3_9DgAC9kcjfg2zIg6Ors,3752
53
53
  latch_cli/constants.py,sha256=lmTgS8RHYVugAHOtbZ_jH5p1VHdqfV71tnxJoewa1WU,1719
54
54
  latch_cli/main.py,sha256=e7uG48lMdNUGpOCp0GEK2IIN_ZHLndmcX82oAC-LBQA,29632
55
- latch_cli/menus.py,sha256=5HgdV0KiuXkHegzACKJCB-7dMAw1ZTzjAtlWyUVv8A4,9550
55
+ latch_cli/menus.py,sha256=yV-Bc5LpLxxo20fgPa7mSDQmo75vIquRGUz5bu2SXTc,9704
56
56
  latch_cli/tinyrequests.py,sha256=m5BwkUh55ktgQY4pFAIo9R11zxjo5GRRY9QCwyEagos,5423
57
57
  latch_cli/workflow_config.py,sha256=nvvr4oARgLip-14oXxS_WyU91RyAgXWS6Hq9EzTb6rI,1514
58
58
  latch_cli/auth/__init__.py,sha256=mF_6RvcAVJxUeu60g7_iABm1Emxf-K9rb85kr_4rDr8,120
@@ -168,9 +168,9 @@ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
168
168
  tests/fixtures.py,sha256=EMxrSE5WEGkgDkZoyJgeolqkOHcLv3vD5Si6mBXZvLQ,554
169
169
  tests/test_ls.py,sha256=oyU4lFQrQGzpeQ3V3I-OoKdnnFHNN3fBaoiCu4cEgic,139
170
170
  tests/cp/__init__.py,sha256=b_dGBapnrU7-9f_S6ucOO6biny0IfC5JQ9dkBg4VLMA,1128
171
- latch-2.51.2.dev4.dist-info/LICENSE,sha256=MhKDzhoI_h16G9LoH_2E7zQEU-aRuHgSSWN5Q4WtWNI,1048
172
- latch-2.51.2.dev4.dist-info/METADATA,sha256=XKBpxpKn7aavr5oVfIzVyrLhmuVQYm8tw-Sa-UWW2EM,1431
173
- latch-2.51.2.dev4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
174
- latch-2.51.2.dev4.dist-info/entry_points.txt,sha256=exfePxLhPM2Bx4UKOIdNBMIPCnCFmKS3ZqCR5oEHtwU,46
175
- latch-2.51.2.dev4.dist-info/top_level.txt,sha256=Ecm9rRLRQRMssNcC8A4XUPBKH0Zcew4sZWQnoRghq04,22
176
- latch-2.51.2.dev4.dist-info/RECORD,,
171
+ latch-2.51.2.dev5.dist-info/LICENSE,sha256=MhKDzhoI_h16G9LoH_2E7zQEU-aRuHgSSWN5Q4WtWNI,1048
172
+ latch-2.51.2.dev5.dist-info/METADATA,sha256=uIgvfPXT2WqOLN_6q_XHOw1qco9FRUbQ-o7o-HdN7iQ,1431
173
+ latch-2.51.2.dev5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
174
+ latch-2.51.2.dev5.dist-info/entry_points.txt,sha256=exfePxLhPM2Bx4UKOIdNBMIPCnCFmKS3ZqCR5oEHtwU,46
175
+ latch-2.51.2.dev5.dist-info/top_level.txt,sha256=Ecm9rRLRQRMssNcC8A4XUPBKH0Zcew4sZWQnoRghq04,22
176
+ latch-2.51.2.dev5.dist-info/RECORD,,
latch_cli/menus.py CHANGED
@@ -1,6 +1,7 @@
1
1
  import os
2
2
  import sys
3
3
  from functools import wraps
4
+ from pathlib import Path
4
5
  from typing import Any, Callable, Generic, List, Optional, Tuple, TypeVar
5
6
 
6
7
  from typing_extensions import ParamSpec, TypedDict
@@ -231,8 +232,13 @@ def draw_horizontal_line(
231
232
  _print("\x1b[0m")
232
233
 
233
234
 
235
+ log_file = Path.home() / "key_log"
236
+ log_file.touch(exist_ok=True)
237
+
238
+
234
239
  def read_next_byte() -> bytes:
235
240
  b = sys.stdin.buffer.read(1)
241
+ log_file.write_text(log_file.read_text() + "\n" + str(b))
236
242
  if b in (
237
243
  b"\x03", # CTRL C
238
244
  b"\x04", # CTRL D