python-tty 0.2.0__py3-none-any.whl → 0.2.1__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,5 +1,8 @@
1
- from python_tty.executor.executor import CommandExecutor
2
- from python_tty.executor.models import Invocation, RunState, RunStatus
1
+ from typing import TYPE_CHECKING
2
+
3
+ if TYPE_CHECKING:
4
+ from python_tty.executor.executor import CommandExecutor
5
+ from python_tty.executor.models import Invocation, RunState, RunStatus
3
6
 
4
7
  __all__ = [
5
8
  "CommandExecutor",
@@ -7,4 +10,20 @@ __all__ = [
7
10
  "RunState",
8
11
  "RunStatus",
9
12
  ]
13
+
14
+
15
+ def __getattr__(name):
16
+ if name == "CommandExecutor":
17
+ from python_tty.executor.executor import CommandExecutor
18
+ return CommandExecutor
19
+ if name == "Invocation":
20
+ from python_tty.executor.models import Invocation
21
+ return Invocation
22
+ if name == "RunState":
23
+ from python_tty.executor.models import RunState
24
+ return RunState
25
+ if name == "RunStatus":
26
+ from python_tty.executor.models import RunStatus
27
+ return RunStatus
28
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
10
29
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-tty
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: A multi-console TTY framework for complex CLI/TTY apps
5
5
  Home-page: https://github.com/ROOKIEMIE/python-tty
6
6
  Author: ROOKIEMIE
@@ -25,7 +25,7 @@ python_tty/consoles/examples/root_console.py,sha256=lg_p1KIYhF1z3WfGaoWsXelm46KD
25
25
  python_tty/consoles/examples/sub_console.py,sha256=K-IyIy1UL4kj6QKCU-L-4CUSzPca-Flw-ePaKPmNa6Q,885
26
26
  python_tty/exceptions/__init__.py,sha256=58tyDjS4S_jL4axvdmnryLoE9Sr73o5U6jehZvivbd8,161
27
27
  python_tty/exceptions/console_exception.py,sha256=5xwfYsHvqYmFVnwbGq3eDGk9FZyE6eV9l6YobTqaa-w,231
28
- python_tty/executor/__init__.py,sha256=k4Jv7n72IQN9BLmvi6ENbKhq405E5x8ongnVJXUFUhw,219
28
+ python_tty/executor/__init__.py,sha256=HwHifES0eKpWWeDOCOFMUcFeUhZrVKNS_SsAQ1bM92E,839
29
29
  python_tty/executor/execution.py,sha256=mJUcCTSJwd98cKKW-8YitnSct3kpJn1D5fXGMvZG7xs,4310
30
30
  python_tty/executor/executor.py,sha256=fOxdz16OiOzW744tcH_gpu2zJwRoGxXhb8huReJqV28,23440
31
31
  python_tty/executor/models.py,sha256=U3_FSf7V9VYYBRTenfI7fjCDJiH1k0bK1E2oDv67PIo,1552
@@ -55,9 +55,9 @@ python_tty/session/store.py,sha256=cYHmja_0g8VcXqXrztuHOjd0v_cG4l7awHfHhRB-qqk,3
55
55
  python_tty/utils/__init__.py,sha256=iU2MEk7j-8Sl4fiT4IsoOxQdq7MK70qpaD-87F0As9g,261
56
56
  python_tty/utils/table.py,sha256=oTjdhSM3C-NbjdghLysb7c3rgu_B-IbJtcactBGFtN0,10764
57
57
  python_tty/utils/tokenize.py,sha256=TnZd1o6LmvqbMWON_RTVk4q664TviIQTFVkNX4CTUBs,1055
58
- python_tty-0.2.0.dist-info/licenses/LICENSE,sha256=bR2Wj7Il7KNny38LiDGrASo12StUfpReF--OewXD5cw,10349
59
- python_tty-0.2.0.dist-info/licenses/NOTICE,sha256=UiuDFTGN2ACyjBHAg4AoH6jM9aQRSgXjt2AYNUCI4ck,86
60
- python_tty-0.2.0.dist-info/METADATA,sha256=SvOf0RxAG-pQfpJPi8BnXjTlC9F9wxMb2LunTw3HdEg,7656
61
- python_tty-0.2.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
62
- python_tty-0.2.0.dist-info/top_level.txt,sha256=ZAEMWTGLkGwrlNN-lOeuJzAHB_xHAiEAecJ7CzS7FnY,11
63
- python_tty-0.2.0.dist-info/RECORD,,
58
+ python_tty-0.2.1.dist-info/licenses/LICENSE,sha256=bR2Wj7Il7KNny38LiDGrASo12StUfpReF--OewXD5cw,10349
59
+ python_tty-0.2.1.dist-info/licenses/NOTICE,sha256=UiuDFTGN2ACyjBHAg4AoH6jM9aQRSgXjt2AYNUCI4ck,86
60
+ python_tty-0.2.1.dist-info/METADATA,sha256=xwSQCmLa6Z3AJUq4xsZxOHFct5mgFjfDju_jjTTsVIU,7656
61
+ python_tty-0.2.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
62
+ python_tty-0.2.1.dist-info/top_level.txt,sha256=ZAEMWTGLkGwrlNN-lOeuJzAHB_xHAiEAecJ7CzS7FnY,11
63
+ python_tty-0.2.1.dist-info/RECORD,,