textual-tty 0.0.2__tar.gz
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.
- textual_tty-0.0.2/LICENSE.md +7 -0
- textual_tty-0.0.2/PKG-INFO +60 -0
- textual_tty-0.0.2/README.md +26 -0
- textual_tty-0.0.2/pyproject.toml +54 -0
- textual_tty-0.0.2/src/textual_tty/__init__.py +0 -0
- textual_tty-0.0.2/src/textual_tty/__main__.py +6 -0
- textual_tty-0.0.2/src/textual_tty/color.py +643 -0
- textual_tty-0.0.2/src/textual_tty/demo.py +167 -0
- textual_tty-0.0.2/src/textual_tty/log.py +64 -0
- textual_tty-0.0.2/src/textual_tty/parser.py +909 -0
- textual_tty-0.0.2/src/textual_tty/pty_handler.py +260 -0
- textual_tty-0.0.2/src/textual_tty/screen.py +437 -0
- textual_tty-0.0.2/src/textual_tty/tcaps.py +123 -0
- textual_tty-0.0.2/src/textual_tty/widgets/__init__.py +8 -0
- textual_tty-0.0.2/src/textual_tty/widgets/debug_log.py +146 -0
- textual_tty-0.0.2/src/textual_tty/widgets/program.py +131 -0
- textual_tty-0.0.2/src/textual_tty/widgets/program_window.py +119 -0
- textual_tty-0.0.2/src/textual_tty/widgets/terminal.py +331 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: textual_tty
|
|
3
|
+
Version: 0.0.2
|
|
4
|
+
Summary: A tty for Textual UIs
|
|
5
|
+
Author-email: Gareth Davidson <gaz@bitplane.net>
|
|
6
|
+
Requires-Python: >=3.10
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
+
Classifier: License :: Public Domain
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
License-File: LICENSE.md
|
|
16
|
+
Requires-Dist: textual
|
|
17
|
+
Requires-Dist: pywinpty ; sys_platform == 'win32'
|
|
18
|
+
Requires-Dist: textual-window
|
|
19
|
+
Requires-Dist: pre-commit ; extra == "dev"
|
|
20
|
+
Requires-Dist: pytest ; extra == "dev"
|
|
21
|
+
Requires-Dist: coverage ; extra == "dev"
|
|
22
|
+
Requires-Dist: pytest-cov ; extra == "dev"
|
|
23
|
+
Requires-Dist: pydoc-markdown ; extra == "dev"
|
|
24
|
+
Requires-Dist: build ; extra == "dev"
|
|
25
|
+
Requires-Dist: twine ; extra == "dev"
|
|
26
|
+
Requires-Dist: ruff ; extra == "dev"
|
|
27
|
+
Requires-Dist: mkdocs ; extra == "dev"
|
|
28
|
+
Requires-Dist: textual-window ; extra == "dev"
|
|
29
|
+
Project-URL: Bug Tracker, https://github.com/bitplane/textual-tty/issues
|
|
30
|
+
Project-URL: Homepage, https://bitplane.net/dev/python/textual-tty
|
|
31
|
+
Project-URL: Source Code, https://github.com/bitplane/textual-tty
|
|
32
|
+
Provides-Extra: dev
|
|
33
|
+
|
|
34
|
+
# textual-tty
|
|
35
|
+
|
|
36
|
+
A terminal emulator for Textual apps.
|
|
37
|
+
|
|
38
|
+
## Demo
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
uvx textual-tty
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Usage
|
|
45
|
+
|
|
46
|
+
There's 3 widgets:
|
|
47
|
+
|
|
48
|
+
1. `textual_tty.Terminal`, a tty that you can use
|
|
49
|
+
2. `textual_tty.Program`, launch a program
|
|
50
|
+
3. `textual_tty.TerminalProgram`, a terminal emulator in a window
|
|
51
|
+
|
|
52
|
+
## todo - refactor plan
|
|
53
|
+
|
|
54
|
+
* Refactor so Terminal is the base class and TextualTerminal is the widget subclass
|
|
55
|
+
* Use reactives to handle updates, cause events etc
|
|
56
|
+
* Move process management into the Terminal base class
|
|
57
|
+
* Rename Screen to Buffer and have the Terminal handle it
|
|
58
|
+
* Have the parser set modes on the Terminal, and write() text to it
|
|
59
|
+
* Move the tests to match new design
|
|
60
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# textual-tty
|
|
2
|
+
|
|
3
|
+
A terminal emulator for Textual apps.
|
|
4
|
+
|
|
5
|
+
## Demo
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
uvx textual-tty
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
There's 3 widgets:
|
|
14
|
+
|
|
15
|
+
1. `textual_tty.Terminal`, a tty that you can use
|
|
16
|
+
2. `textual_tty.Program`, launch a program
|
|
17
|
+
3. `textual_tty.TerminalProgram`, a terminal emulator in a window
|
|
18
|
+
|
|
19
|
+
## todo - refactor plan
|
|
20
|
+
|
|
21
|
+
* Refactor so Terminal is the base class and TextualTerminal is the widget subclass
|
|
22
|
+
* Use reactives to handle updates, cause events etc
|
|
23
|
+
* Move process management into the Terminal base class
|
|
24
|
+
* Rename Screen to Buffer and have the Terminal handle it
|
|
25
|
+
* Have the parser set modes on the Terminal, and write() text to it
|
|
26
|
+
* Move the tests to match new design
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "textual_tty"
|
|
3
|
+
description = "A tty for Textual UIs"
|
|
4
|
+
version = "0.0.2"
|
|
5
|
+
authors = [
|
|
6
|
+
{ name = "Gareth Davidson", email = "gaz@bitplane.net" }
|
|
7
|
+
]
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
requires-python = ">=3.10"
|
|
10
|
+
classifiers = [
|
|
11
|
+
"Development Status :: 2 - Pre-Alpha",
|
|
12
|
+
"Programming Language :: Python :: 3",
|
|
13
|
+
"Programming Language :: Python :: 3.10",
|
|
14
|
+
"Programming Language :: Python :: 3.11",
|
|
15
|
+
"License :: Public Domain",
|
|
16
|
+
"Environment :: Console",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
dependencies = [
|
|
21
|
+
"textual",
|
|
22
|
+
"pywinpty ; sys_platform == 'win32'",
|
|
23
|
+
"textual-window"
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
[project.scripts]
|
|
27
|
+
textual-tty = "textual_tty.demo:main"
|
|
28
|
+
|
|
29
|
+
[project.urls]
|
|
30
|
+
Homepage = "https://bitplane.net/dev/python/textual-tty"
|
|
31
|
+
"Bug Tracker" = "https://github.com/bitplane/textual-tty/issues"
|
|
32
|
+
"Source Code" = "https://github.com/bitplane/textual-tty"
|
|
33
|
+
|
|
34
|
+
[project.optional-dependencies]
|
|
35
|
+
dev = [
|
|
36
|
+
"pre-commit",
|
|
37
|
+
"pytest",
|
|
38
|
+
"coverage",
|
|
39
|
+
"pytest-cov",
|
|
40
|
+
"pydoc-markdown",
|
|
41
|
+
"build",
|
|
42
|
+
"twine",
|
|
43
|
+
"ruff",
|
|
44
|
+
"mkdocs",
|
|
45
|
+
"textual-window"
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
[build-system]
|
|
49
|
+
requires = ["flit_core >=3.2,<4"]
|
|
50
|
+
build-backend = "flit_core.buildapi"
|
|
51
|
+
|
|
52
|
+
[tool.ruff]
|
|
53
|
+
line-length = 120
|
|
54
|
+
target-version = "py310"
|
|
File without changes
|