hc99 commited on
Commit
2c3c408
·
verified ·
1 Parent(s): 7ffff7d

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. testbed/Textualize__textual/.coveragerc +9 -0
  2. testbed/Textualize__textual/.gitignore +118 -0
  3. testbed/Textualize__textual/.pre-commit-config.yaml +16 -0
  4. testbed/Textualize__textual/CHANGELOG.md +106 -0
  5. testbed/Textualize__textual/LICENSE +21 -0
  6. testbed/Textualize__textual/Makefile +18 -0
  7. testbed/Textualize__textual/README.md +112 -0
  8. testbed/Textualize__textual/custom_theme/main.html +5 -0
  9. testbed/Textualize__textual/docs.md +18 -0
  10. testbed/Textualize__textual/docs/CNAME +1 -0
  11. testbed/Textualize__textual/e2e_tests/sandbox_basic_test.py +55 -0
  12. testbed/Textualize__textual/e2e_tests/test_apps/basic.css +250 -0
  13. testbed/Textualize__textual/e2e_tests/test_apps/basic.py +236 -0
  14. testbed/Textualize__textual/examples/README.md +10 -0
  15. testbed/Textualize__textual/imgs/calculator.svg +172 -0
  16. testbed/Textualize__textual/mkdocs.yml +197 -0
  17. testbed/Textualize__textual/mypy.ini +16 -0
  18. testbed/Textualize__textual/notes/README.md +3 -0
  19. testbed/Textualize__textual/notes/snapshot_testing.md +43 -0
  20. testbed/Textualize__textual/poetry.lock +1249 -0
  21. testbed/Textualize__textual/pyproject.toml +71 -0
  22. testbed/Textualize__textual/reference/README.md +1 -0
  23. testbed/Textualize__textual/reference/_color_system.md +73 -0
  24. testbed/Textualize__textual/reference/_devtools.md +14 -0
  25. testbed/Textualize__textual/reference/box.monopic +0 -0
  26. testbed/Textualize__textual/sandbox/darren/basic.css +252 -0
  27. testbed/Textualize__textual/sandbox/darren/basic.py +235 -0
  28. testbed/Textualize__textual/sandbox/darren/buttons.css +6 -0
  29. testbed/Textualize__textual/sandbox/darren/buttons.py +34 -0
  30. testbed/Textualize__textual/sandbox/darren/file_search.py +68 -0
  31. testbed/Textualize__textual/sandbox/darren/file_search.scss +15 -0
  32. testbed/Textualize__textual/sandbox/darren/just_a_box.css +12 -0
  33. testbed/Textualize__textual/sandbox/darren/just_a_box.py +35 -0
  34. testbed/Textualize__textual/sandbox/darren/tabs.py +147 -0
  35. testbed/Textualize__textual/sandbox/darren/tabs.scss +9 -0
  36. testbed/Textualize__textual/sandbox/darren/text_align.py +33 -0
  37. testbed/Textualize__textual/sandbox/darren/text_align.scss +24 -0
  38. testbed/Textualize__textual/sandbox/will/add_remove.py +71 -0
  39. testbed/Textualize__textual/sandbox/will/align.css +14 -0
  40. testbed/Textualize__textual/sandbox/will/align.py +19 -0
  41. testbed/Textualize__textual/sandbox/will/basic.css +265 -0
  42. testbed/Textualize__textual/sandbox/will/basic.py +243 -0
  43. testbed/Textualize__textual/sandbox/will/bindings.py +54 -0
  44. testbed/Textualize__textual/sandbox/will/box.css +28 -0
  45. testbed/Textualize__textual/sandbox/will/box.py +13 -0
  46. testbed/Textualize__textual/sandbox/will/buttons.css +24 -0
  47. testbed/Textualize__textual/sandbox/will/calculator.css +32 -0
  48. testbed/Textualize__textual/sandbox/will/calculator.py +144 -0
  49. testbed/Textualize__textual/sandbox/will/center.py +28 -0
  50. testbed/Textualize__textual/sandbox/will/center2.py +55 -0
testbed/Textualize__textual/.coveragerc ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ [run]
2
+ omit =
3
+
4
+ [report]
5
+ exclude_lines =
6
+ pragma: no cover
7
+ if TYPE_CHECKING:
8
+ if __name__ == "__main__":
9
+ @overload
testbed/Textualize__textual/.gitignore ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.ipynb
2
+ .pytype
3
+ .DS_Store
4
+ .vscode
5
+ .idea
6
+ mypy_report
7
+ docs/build
8
+ docs/source/_build
9
+ tools/*.txt
10
+ playground/
11
+
12
+ # Byte-compiled / optimized / DLL files
13
+ __pycache__/
14
+ *.py[cod]
15
+ *$py.class
16
+
17
+ # C extensions
18
+ *.so
19
+
20
+ # Distribution / packaging
21
+ .Python
22
+ build/
23
+ develop-eggs/
24
+ dist/
25
+ downloads/
26
+ eggs/
27
+ .eggs/
28
+ lib/
29
+ lib64/
30
+ parts/
31
+ sdist/
32
+ var/
33
+ wheels/
34
+ *.egg-info/
35
+ .installed.cfg
36
+ *.egg
37
+ MANIFEST
38
+
39
+ # PyInstaller
40
+ # Usually these files are written by a python script from a template
41
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
42
+ *.manifest
43
+ *.spec
44
+
45
+ # Installer logs
46
+ pip-log.txt
47
+ pip-delete-this-directory.txt
48
+
49
+ # Unit test / coverage reports
50
+ htmlcov/
51
+ .tox/
52
+ .coverage
53
+ .coverage.*
54
+ .cache
55
+ nosetests.xml
56
+ coverage.xml
57
+ *.cover
58
+ .hypothesis/
59
+ .pytest_cache/
60
+
61
+ # Translations
62
+ *.mo
63
+ *.pot
64
+
65
+ # Django stuff:
66
+ *.log
67
+ local_settings.py
68
+ db.sqlite3
69
+
70
+ # Flask stuff:
71
+ instance/
72
+ .webassets-cache
73
+
74
+ # Scrapy stuff:
75
+ .scrapy
76
+
77
+ # Sphinx documentation
78
+ docs/_build/
79
+
80
+ # PyBuilder
81
+ target/
82
+
83
+ # Jupyter Notebook
84
+ .ipynb_checkpoints
85
+
86
+ # pyenv
87
+ .python-version
88
+
89
+ # celery beat schedule file
90
+ celerybeat-schedule
91
+
92
+ # SageMath parsed files
93
+ *.sage.py
94
+
95
+ # Environments
96
+ .env
97
+ .venv
98
+ env/
99
+ venv/
100
+ ENV/
101
+ env.bak/
102
+ venv.bak/
103
+
104
+ # Spyder project settings
105
+ .spyderproject
106
+ .spyproject
107
+
108
+ # Rope project settings
109
+ .ropeproject
110
+
111
+ # mkdocs documentation
112
+ /site
113
+
114
+ # mypy
115
+ .mypy_cache/
116
+
117
+ # Snapshot testing report output directory
118
+ tests/snapshot_tests/output
testbed/Textualize__textual/.pre-commit-config.yaml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # See https://pre-commit.com for more information
2
+ # See https://pre-commit.com/hooks.html for more hooks
3
+ repos:
4
+ - repo: https://github.com/pre-commit/pre-commit-hooks
5
+ rev: v4.3.0
6
+ hooks:
7
+ - id: trailing-whitespace
8
+ - id: end-of-file-fixer
9
+ - id: check-yaml
10
+ args: ['--unsafe']
11
+ - repo: https://github.com/psf/black
12
+ rev: 22.3.0
13
+ hooks:
14
+ - id: black
15
+ exclude: ^tests/
16
+ exclude: ^tests/snapshot_tests
testbed/Textualize__textual/CHANGELOG.md ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/).
7
+
8
+ ## [0.2.0] - Unreleased
9
+
10
+ ### Added
11
+
12
+ - CSS support
13
+ - Too numerous to mention
14
+
15
+ ## [0.1.15] - 2022-01-31
16
+
17
+ ### Added
18
+
19
+ - Added Windows Driver
20
+
21
+ ## [0.1.14] - 2022-01-09
22
+
23
+ ### Changed
24
+
25
+ - Updated Rich dependency to 11.X
26
+
27
+ ## [0.1.13] - 2022-01-01
28
+
29
+ ### Fixed
30
+
31
+ - Fixed spurious characters when exiting app
32
+ - Fixed increasing delay when exiting
33
+
34
+ ## [0.1.12] - 2021-09-20
35
+
36
+ ### Added
37
+
38
+ - Added geometry.Spacing
39
+
40
+ ### Fixed
41
+
42
+ - Fixed calculation of virtual size in scroll views
43
+
44
+ ## [0.1.11] - 2021-09-12
45
+
46
+ ### Changed
47
+
48
+ - Changed message handlers to use prefix handle\_
49
+ - Renamed messages to drop the Message suffix
50
+ - Events now bubble by default
51
+ - Refactor of layout
52
+
53
+ ### Added
54
+
55
+ - Added App.measure
56
+ - Added auto_width to Vertical Layout, WindowView, an ScrollView
57
+ - Added big_table.py example
58
+ - Added easing.py example
59
+
60
+ ## [0.1.10] - 2021-08-25
61
+
62
+ ### Added
63
+
64
+ - Added keyboard control of tree control
65
+ - Added Widget.gutter to calculate space between renderable and outside edge
66
+ - Added margin, padding, and border attributes to Widget
67
+
68
+ ### Changed
69
+
70
+ - Callbacks may be async or non-async.
71
+ - Event handler event argument is optional.
72
+ - Fixed exception in clock example https://github.com/willmcgugan/textual/issues/52
73
+ - Added Message.wait() which waits for a message to be processed
74
+ - Key events are now sent to widgets first, before processing bindings
75
+
76
+ ## [0.1.9] - 2021-08-06
77
+
78
+ ### Added
79
+
80
+ - Added hover over and mouse click to activate keys in footer
81
+ - Added verbosity argument to Widget.log
82
+
83
+ ### Changed
84
+
85
+ - Simplified events. Remove Startup event (use Mount)
86
+ - Changed geometry.Point to geometry.Offset and geometry.Dimensions to geometry.Size
87
+
88
+ ## [0.1.8] - 2021-07-17
89
+
90
+ ### Fixed
91
+
92
+ - Fixed exiting mouse mode
93
+ - Fixed slow animation
94
+
95
+ ### Added
96
+
97
+ - New log system
98
+
99
+ ## [0.1.7] - 2021-07-14
100
+
101
+ ### Changed
102
+
103
+ - Added functionality to calculator example.
104
+ - Scrollview now shows scrollbars automatically
105
+ - New handler system for messages that doesn't require inheritance
106
+ - Improved traceback handling
testbed/Textualize__textual/LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Will McGugan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
testbed/Textualize__textual/Makefile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ test:
2
+ pytest --cov-report term-missing --cov=textual tests/ -vv
3
+ unit-test:
4
+ pytest --cov-report term-missing --cov=textual tests/ -vv -m "not integration_test"
5
+ test-snapshot-update:
6
+ pytest --cov-report term-missing --cov=textual tests/ -vv --snapshot-update
7
+ typecheck:
8
+ mypy src/textual
9
+ format:
10
+ black src
11
+ format-check:
12
+ black --check src
13
+ docs-serve:
14
+ mkdocs serve
15
+ docs-build:
16
+ mkdocs build
17
+ docs-deploy:
18
+ mkdocs gh-deploy
testbed/Textualize__textual/README.md ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Textual
2
+
3
+ ![Textual splash image](./imgs/textual.png)
4
+
5
+ Textual is a Python framework for creating interactive applications that run in your terminal.
6
+
7
+ <details>
8
+ <summary> 🎬 Code browser </summary>
9
+ <hr>
10
+
11
+ This is the [code_browser.py](./examples/code_browser.py) example which clocks in at 61 lines (*including* docstrings and blank lines).
12
+
13
+ https://user-images.githubusercontent.com/554369/189394703-364b5caa-97e0-45db-907d-7b1620d6411f.mov
14
+
15
+ </details>
16
+
17
+
18
+ ## About
19
+
20
+ Textual adds interactivity to [Rich](https://github.com/Textualize/rich) with a Python API inspired by modern development development.
21
+
22
+ On modern terminal software (installed by default on most systems), Textual apps can use **16.7 million** colors with mouse support and smooth flicker-free animation. A powerful layout engine and re-usable components makes it possible to build apps that rival the desktop and web experience.
23
+
24
+ ## Compatibility
25
+
26
+ Textual runs on Linux, macOS, and Windows. Textual requires Python 3.7 or above.
27
+
28
+ ## Installing
29
+
30
+ Install Textual via pip:
31
+
32
+ ```
33
+ pip install textual[dev]
34
+ ```
35
+
36
+ The addition of `[dev]` installs Textual development tools.
37
+
38
+
39
+ ## Reference commands
40
+
41
+ The `textual` command has a few sub-commands to preview Textual styles.
42
+
43
+ <details>
44
+ <summary> 🎬 Easing reference </summary>
45
+ <hr>
46
+
47
+ This is the *easing* reference which demonstrates the easing parameter on animation, with both movement and opacity. You can run it with the following command:
48
+
49
+ ```bash
50
+ textual easing
51
+ ```
52
+
53
+ https://user-images.githubusercontent.com/554369/189485538-31e794ff-61d7-4faf-902a-6e90a9d76e5b.mov
54
+
55
+ </details>
56
+
57
+ <details>
58
+ <summary> 🎬 Borders reference </summary>
59
+ <hr>
60
+
61
+ This is the borders reference which demonstrates some of the borders styles in Textual. You can run it with the following command:
62
+
63
+ ```bash
64
+ textual borders
65
+ ```
66
+
67
+
68
+ https://user-images.githubusercontent.com/554369/189485735-cb2b4135-caee-46d7-a118-66cd7ed9eef5.mov
69
+
70
+
71
+
72
+ </details>
73
+
74
+ ## Examples
75
+
76
+ The Textual repository comes with a number of examples you can experiment with or use as a template for your own projects.
77
+
78
+ <details>
79
+ <summary> 📷 Calculator </summary>
80
+ <hr>
81
+
82
+ This is [calculator.py](./examples/calculator.py) which demonstrates Textual grid layouts.
83
+
84
+ ![calculator screenshot](./imgs/calculator.svg)
85
+ </details>
86
+
87
+ <details>
88
+ <summary> 📷 Code browser </summary>
89
+ <hr>
90
+
91
+ This is [code_browser.py](./examples/code_browser.py) which demonstrates the directory tree widget.
92
+
93
+ ![code browser screenshot](./imgs/codebrowser.svg)
94
+
95
+ </details>
96
+
97
+
98
+ <details>
99
+ <summary> 📷 Stopwatch </summary>
100
+ <hr>
101
+
102
+ This is the Stopwatch example from the tutorial.
103
+
104
+ ### Light theme
105
+
106
+ ![stopwatch light screenshot](./imgs/stopwatch_light.svg)
107
+
108
+ ### Dark theme
109
+
110
+ ![stopwatch dark screenshot](./imgs/stopwatch_dark.svg)
111
+
112
+ </details>
testbed/Textualize__textual/custom_theme/main.html ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {% extends "base.html" %}
2
+
3
+ {% block extrahead %}
4
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/fira_code.min.css" integrity="sha512-MbysAYimH1hH2xYzkkMHB6MqxBqfP0megxsCLknbYqHVwXTCg9IqHbk+ZP/vnhO8UEW6PaXAkKe2vQ+SWACxxA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
5
+ {% endblock %}
testbed/Textualize__textual/docs.md ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Documentation Workflow
2
+
3
+ * Ensure you're inside a *Python 3.10+* virtual environment
4
+ * Run the live-reload server using `mkdocs serve` from the project root
5
+ * Create new pages by adding new directories and Markdown files inside `docs/*`
6
+
7
+ ## Commands
8
+
9
+ - `mkdocs serve` - Start the live-reloading docs server.
10
+ - `mkdocs build` - Build the documentation site.
11
+ - `mkdocs -h` - Print help message and exit.
12
+
13
+ ## Project layout
14
+
15
+ mkdocs.yml # The configuration file.
16
+ docs/
17
+ index.md # The documentation homepage.
18
+ ... # Other markdown pages, images and other files.
testbed/Textualize__textual/docs/CNAME ADDED
@@ -0,0 +1 @@
 
 
1
+ textual.textualize.io
testbed/Textualize__textual/e2e_tests/sandbox_basic_test.py ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ import shlex
4
+ import sys
5
+ import subprocess
6
+ import threading
7
+ from pathlib import Path
8
+
9
+ target_script_name = "basic"
10
+ script_time_to_live = 2.0 # in seconds
11
+
12
+ if len(sys.argv) > 1:
13
+ target_script_name = sys.argv[1]
14
+ if len(sys.argv) > 2:
15
+ script_time_to_live = float(sys.argv[2])
16
+
17
+ e2e_root = Path(__file__).parent / "test_apps"
18
+
19
+ completed_process = None
20
+
21
+
22
+ def launch_sandbox_script(python_file_name: str) -> None:
23
+ global completed_process
24
+
25
+ command = f"{sys.executable} {shlex.quote(python_file_name)}.py"
26
+ print(f"Launching command '{command}'...")
27
+ try:
28
+ completed_process = subprocess.run(
29
+ command, shell=True, check=True, capture_output=True, cwd=str(e2e_root)
30
+ )
31
+ except subprocess.CalledProcessError as err:
32
+ print(f"Process error: {err.stderr}")
33
+ raise
34
+
35
+
36
+ thread = threading.Thread(
37
+ target=launch_sandbox_script, args=(target_script_name,), daemon=False
38
+ )
39
+ thread.start()
40
+
41
+ print(
42
+ f"Launching Python script in a sub-thread; we'll wait for it for {script_time_to_live} seconds..."
43
+ )
44
+ thread.join(timeout=script_time_to_live)
45
+ print("The wait is over.")
46
+
47
+ process_still_running = completed_process is None
48
+ process_was_able_to_run_without_errors = process_still_running
49
+
50
+ if process_was_able_to_run_without_errors:
51
+ print("Python script is still running :-)")
52
+ else:
53
+ print("Python script is no longer running :-/")
54
+
55
+ sys.exit(0 if process_was_able_to_run_without_errors else 1)
testbed/Textualize__textual/e2e_tests/test_apps/basic.css ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* CSS file for basic.py */
2
+
3
+
4
+
5
+ * {
6
+ transition: color 300ms linear, background 300ms linear;
7
+ }
8
+
9
+
10
+ *:hover {
11
+ /* tint: 30% red;
12
+ /* outline: heavy red; */
13
+ }
14
+
15
+ App > Screen {
16
+
17
+ background: $background;
18
+ color: $text;
19
+ layers: base sidebar;
20
+ layout: vertical;
21
+ overflow: hidden;
22
+ }
23
+
24
+ #tree-container {
25
+ overflow-y: auto;
26
+ height: 20;
27
+ margin: 1 2;
28
+ background: $surface;
29
+ padding: 1 2;
30
+ }
31
+
32
+ DirectoryTree {
33
+ padding: 0 1;
34
+ height: auto;
35
+
36
+ }
37
+
38
+
39
+
40
+
41
+ DataTable {
42
+ /*border:heavy red;*/
43
+ /* tint: 10% green; */
44
+ /* text-opacity: 50%; */
45
+ padding: 1;
46
+ margin: 1 2;
47
+ height: 24;
48
+ }
49
+
50
+ #sidebar {
51
+ background: $panel;
52
+ color: $text;
53
+ dock: left;
54
+ width: 30;
55
+ margin-bottom: 1;
56
+ offset-x: -100%;
57
+
58
+ transition: offset 500ms in_out_cubic;
59
+ layer: sidebar;
60
+ }
61
+
62
+ #sidebar.-active {
63
+ offset-x: 0;
64
+ }
65
+
66
+ #sidebar .title {
67
+ height: 1;
68
+ background: $primary-background-darken-1;
69
+ color: $text;
70
+ border-right: wide $background;
71
+ content-align: center middle;
72
+ }
73
+
74
+ #sidebar .user {
75
+ height: 8;
76
+ background: $panel-darken-1;
77
+ color: $text;
78
+ border-right: wide $background;
79
+ content-align: center middle;
80
+ }
81
+
82
+ #sidebar .content {
83
+ background: $panel-darken-2;
84
+ color: $text;
85
+ border-right: wide $background;
86
+ content-align: center middle;
87
+ }
88
+
89
+
90
+
91
+
92
+ Tweet {
93
+ height:12;
94
+ width: 100%;
95
+ margin: 0 2;
96
+
97
+ margin:0 2;
98
+ background: $panel;
99
+ color: $text;
100
+ layout: vertical;
101
+ /* border: outer $primary; */
102
+ padding: 1;
103
+ border: wide $panel;
104
+ overflow: auto;
105
+ /* scrollbar-gutter: stable; */
106
+ align-horizontal: center;
107
+ box-sizing: border-box;
108
+
109
+ }
110
+
111
+
112
+ .scrollable {
113
+ overflow-x: auto;
114
+ overflow-y: scroll;
115
+ margin: 1 2;
116
+ height: 24;
117
+ align-horizontal: center;
118
+ layout: vertical;
119
+ }
120
+
121
+ .code {
122
+ height: auto;
123
+
124
+ }
125
+
126
+
127
+ TweetHeader {
128
+ height:1;
129
+ background: $accent;
130
+ color: $text;
131
+ }
132
+
133
+ TweetBody {
134
+ width: 100%;
135
+ background: $panel;
136
+ color: $text;
137
+ height: auto;
138
+ padding: 0 1 0 0;
139
+ }
140
+
141
+ Tweet.scroll-horizontal TweetBody {
142
+ width: 350;
143
+ }
144
+
145
+ .button {
146
+ background: $accent;
147
+ color: $text;
148
+ width:20;
149
+ height: 3;
150
+ /* border-top: hidden $accent-darken-3; */
151
+ border: tall $accent-darken-2;
152
+ /* border-left: tall $accent-darken-1; */
153
+
154
+
155
+ /* padding: 1 0 0 0 ; */
156
+
157
+ transition: background 400ms in_out_cubic, color 400ms in_out_cubic;
158
+
159
+ }
160
+
161
+ .button:hover {
162
+ background: $accent-lighten-1;
163
+ color: $text;
164
+ width: 20;
165
+ height: 3;
166
+ border: tall $accent-darken-1;
167
+ /* border-left: tall $accent-darken-3; */
168
+
169
+
170
+
171
+
172
+ }
173
+
174
+ #footer {
175
+ color: $text;
176
+ background: $accent;
177
+ height: 1;
178
+
179
+ content-align: center middle;
180
+ dock:bottom;
181
+ }
182
+
183
+
184
+ #sidebar .content {
185
+ layout: vertical
186
+ }
187
+
188
+ OptionItem {
189
+ height: 3;
190
+ background: $panel;
191
+ border-right: wide $background;
192
+ border-left: blank;
193
+ content-align: center middle;
194
+ }
195
+
196
+ OptionItem:hover {
197
+ height: 3;
198
+ color: $text;
199
+ background: $primary-darken-1;
200
+ /* border-top: hkey $accent2-darken-3;
201
+ border-bottom: hkey $accent2-darken-3; */
202
+ text-style: bold;
203
+ border-left: outer $secondary-darken-2;
204
+ }
205
+
206
+ Error {
207
+ width: 100%;
208
+ height:3;
209
+ background: $error;
210
+ color: $text;
211
+ border-top: tall $error-darken-2;
212
+ border-bottom: tall $error-darken-2;
213
+
214
+ padding: 0;
215
+ text-style: bold;
216
+ align-horizontal: center;
217
+ }
218
+
219
+ Warning {
220
+ width: 100%;
221
+ height:3;
222
+ background: $warning;
223
+ color: $text;
224
+ border-top: tall $warning-darken-2;
225
+ border-bottom: tall $warning-darken-2;
226
+
227
+ text-style: bold;
228
+ align-horizontal: center;
229
+ }
230
+
231
+ Success {
232
+ width: 100%;
233
+
234
+ height:auto;
235
+ box-sizing: border-box;
236
+ background: $success;
237
+ color: $text;
238
+
239
+ border-top: hkey $success-darken-2;
240
+ border-bottom: hkey $success-darken-2;
241
+
242
+ text-style: bold ;
243
+
244
+ align-horizontal: center;
245
+ }
246
+
247
+
248
+ .horizontal {
249
+ layout: horizontal
250
+ }
testbed/Textualize__textual/e2e_tests/test_apps/basic.py ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from rich.console import RenderableType
2
+
3
+ from rich.syntax import Syntax
4
+ from rich.text import Text
5
+
6
+ from textual.app import App, ComposeResult
7
+ from textual.reactive import Reactive
8
+ from textual.widget import Widget
9
+ from textual.widgets import Static, DataTable, DirectoryTree, Header, Footer
10
+ from textual.containers import Container
11
+
12
+ CODE = '''
13
+ from __future__ import annotations
14
+
15
+ from typing import Iterable, TypeVar
16
+
17
+ T = TypeVar("T")
18
+
19
+
20
+ def loop_first(values: Iterable[T]) -> Iterable[tuple[bool, T]]:
21
+ """Iterate and generate a tuple with a flag for first value."""
22
+ iter_values = iter(values)
23
+ try:
24
+ value = next(iter_values)
25
+ except StopIteration:
26
+ return
27
+ yield True, value
28
+ for value in iter_values:
29
+ yield False, value
30
+
31
+
32
+ def loop_last(values: Iterable[T]) -> Iterable[tuple[bool, T]]:
33
+ """Iterate and generate a tuple with a flag for last value."""
34
+ iter_values = iter(values)
35
+ try:
36
+ previous_value = next(iter_values)
37
+ except StopIteration:
38
+ return
39
+ for value in iter_values:
40
+ yield False, previous_value
41
+ previous_value = value
42
+ yield True, previous_value
43
+
44
+
45
+ def loop_first_last(values: Iterable[T]) -> Iterable[tuple[bool, bool, T]]:
46
+ """Iterate and generate a tuple with a flag for first and last value."""
47
+ iter_values = iter(values)
48
+ try:
49
+ previous_value = next(iter_values)
50
+ except StopIteration:
51
+ return
52
+ first = True
53
+ for value in iter_values:
54
+ yield first, False, previous_value
55
+ first = False
56
+ previous_value = value
57
+ yield first, True, previous_value
58
+ '''
59
+
60
+
61
+ lorem_short = """Lorem ipsum dolor sit amet, consectetur adipiscing elit. In velit liber a a a, volutpat nec hendrerit at, faucibus in odio. Aliquam hendrerit nibh sed quam volutpat maximus. Nullam suscipit convallis lorem quis sodales. In tristique lobortis ante et dictum. Ut at finibus ipsum."""
62
+ lorem = (
63
+ lorem_short
64
+ + """ In urna dolor, placerat et mi facilisis, congue sollicitudin massa. Phasellus felis turpis, cursus eu lectus et, porttitor malesuada augue. Sed feugiat volutpat velit, sollicitudin fringilla velit bibendum faucibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In velit libero, volutpat nec hendrerit at, faucibus in odio. Aliquam hendrerit nibh sed quam volutpat maximus. Nullam suscipit convallis lorem quis sodales. In tristique lobortis ante et dictum. Ut at finibus ipsum. In urna dolor, placerat et mi facilisis, congue sollicitudin massa. Phasellus felis turpis, cursus eu lectus et, porttitor malesuada augue. Sed feugiat volutpat velit, sollicitudin fringilla velit bibendum faucibus. """
65
+ )
66
+
67
+ lorem_short_text = Text.from_markup(lorem_short)
68
+ lorem_long_text = Text.from_markup(lorem * 2)
69
+
70
+
71
+ class TweetHeader(Widget):
72
+ def render(self) -> RenderableType:
73
+ return Text("Lorem Impsum", justify="center")
74
+
75
+
76
+ class TweetBody(Widget):
77
+ short_lorem = Reactive(False)
78
+
79
+ def render(self) -> Text:
80
+ return lorem_short_text if self.short_lorem else lorem_long_text
81
+
82
+
83
+ class Tweet(Widget):
84
+ pass
85
+
86
+
87
+ class OptionItem(Widget):
88
+ def render(self) -> Text:
89
+ return Text("Option")
90
+
91
+
92
+ class Error(Widget):
93
+ def render(self) -> Text:
94
+ return Text("This is an error message", justify="center")
95
+
96
+
97
+ class Warning(Widget):
98
+ def render(self) -> Text:
99
+ return Text("This is a warning message", justify="center")
100
+
101
+
102
+ class Success(Widget):
103
+ def render(self) -> Text:
104
+ return Text("This is a success message", justify="center")
105
+
106
+
107
+ class BasicApp(App):
108
+ """A basic app demonstrating CSS"""
109
+
110
+ CSS_PATH = "basic.css"
111
+
112
+ def on_load(self):
113
+ """Bind keys here."""
114
+ self.bind("s", "toggle_class('#sidebar', '-active')", description="Sidebar")
115
+ self.bind("d", "toggle_dark", description="Dark mode")
116
+ self.bind("q", "quit", description="Quit")
117
+ self.bind("f", "query_test", description="Query test")
118
+
119
+ def compose(self):
120
+ yield Header()
121
+
122
+ table = DataTable()
123
+ self.scroll_to_target = Tweet(TweetBody())
124
+
125
+ yield Container(
126
+ Tweet(TweetBody()),
127
+ Widget(
128
+ Static(
129
+ Syntax(CODE, "python", line_numbers=True, indent_guides=True),
130
+ classes="code",
131
+ ),
132
+ classes="scrollable",
133
+ ),
134
+ table,
135
+ Widget(DirectoryTree("~/"), id="tree-container"),
136
+ Error(),
137
+ Tweet(TweetBody(), classes="scrollbar-size-custom"),
138
+ Warning(),
139
+ Tweet(TweetBody(), classes="scroll-horizontal"),
140
+ Success(),
141
+ Tweet(TweetBody(), classes="scroll-horizontal"),
142
+ Tweet(TweetBody(), classes="scroll-horizontal"),
143
+ Tweet(TweetBody(), classes="scroll-horizontal"),
144
+ Tweet(TweetBody(), classes="scroll-horizontal"),
145
+ Tweet(TweetBody(), classes="scroll-horizontal"),
146
+ )
147
+ yield Widget(
148
+ Widget(classes="title"),
149
+ Widget(classes="user"),
150
+ OptionItem(),
151
+ OptionItem(),
152
+ OptionItem(),
153
+ Widget(classes="content"),
154
+ id="sidebar",
155
+ )
156
+ yield Footer()
157
+
158
+ table.add_column("Foo", width=20)
159
+ table.add_column("Bar", width=20)
160
+ table.add_column("Baz", width=20)
161
+ table.add_column("Foo", width=20)
162
+ table.add_column("Bar", width=20)
163
+ table.add_column("Baz", width=20)
164
+ table.zebra_stripes = True
165
+ for n in range(100):
166
+ table.add_row(*[f"Cell ([b]{n}[/b], {col})" for col in range(6)])
167
+
168
+ def on_mount(self):
169
+ self.sub_title = "Widget demo"
170
+
171
+ async def on_key(self, event) -> None:
172
+ await self.dispatch_key(event)
173
+
174
+ def action_toggle_dark(self):
175
+ self.dark = not self.dark
176
+
177
+ def action_query_test(self):
178
+ query = self.query("Tweet")
179
+ self.log(query)
180
+ self.log(query.nodes)
181
+ self.log(query)
182
+ self.log(query.nodes)
183
+
184
+ query.set_styles("outline: outer red;")
185
+
186
+ query = query.exclude(".scroll-horizontal")
187
+ self.log(query)
188
+ self.log(query.nodes)
189
+
190
+ # query = query.filter(".rubbish")
191
+ # self.log(query)
192
+ # self.log(query.first())
193
+
194
+ async def key_q(self):
195
+ await self.shutdown()
196
+
197
+ def key_x(self):
198
+ self.panic(self.tree)
199
+
200
+ def key_escape(self):
201
+ self.app.bell()
202
+
203
+ def key_t(self):
204
+ # Pressing "t" toggles the content of the TweetBody widget, from a long "Lorem ipsum..." to a shorter one.
205
+ tweet_body = self.query("TweetBody").first()
206
+ tweet_body.short_lorem = not tweet_body.short_lorem
207
+
208
+ def key_v(self):
209
+ self.get_child(id="content").scroll_to_widget(self.scroll_to_target)
210
+
211
+ def key_space(self):
212
+ self.bell()
213
+
214
+
215
+ if __name__ == "__main__":
216
+ app = BasicApp()
217
+ app.run(quit_after=2)
218
+
219
+ # from textual.geometry import Region
220
+ # from textual.color import Color
221
+
222
+ # print(Region.intersection.cache_info())
223
+ # print(Region.overlaps.cache_info())
224
+ # print(Region.union.cache_info())
225
+ # print(Region.split_vertical.cache_info())
226
+ # print(Region.__contains__.cache_info())
227
+ # from textual.css.scalar import Scalar
228
+
229
+ # print(Scalar.resolve_dimension.cache_info())
230
+
231
+ # from rich.style import Style
232
+ # from rich.cells import cached_cell_len
233
+
234
+ # print(Style._add.cache_info())
235
+
236
+ # print(cached_cell_len.cache_info())
testbed/Textualize__textual/examples/README.md ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # Textual Examples
2
+
3
+ This directory contains example Textual applications.
4
+
5
+ To run them, navigate to the examples directory and enter `python` followed buy the name of the Python file.
6
+
7
+ ```
8
+ cd textual/examples
9
+ python pride.py
10
+ ```
testbed/Textualize__textual/imgs/calculator.svg ADDED
testbed/Textualize__textual/mkdocs.yml ADDED
@@ -0,0 +1,197 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ site_name: Textual
2
+ site_url: https://textual.textualize.io/
3
+ repo_url: https://github.com/textualize/textual/
4
+ edit_uri: edit/css/docs/
5
+
6
+ nav:
7
+ - Introduction:
8
+ - "index.md"
9
+ - "getting_started.md"
10
+ - "tutorial.md"
11
+ - Guide:
12
+ - "guide/index.md"
13
+ - "guide/devtools.md"
14
+ - "guide/app.md"
15
+ - "guide/styles.md"
16
+ - "guide/CSS.md"
17
+ - "guide/queries.md"
18
+ - "guide/layout.md"
19
+ - "guide/events.md"
20
+ - "guide/input.md"
21
+ - "guide/actions.md"
22
+ - "guide/reactivity.md"
23
+ - "guide/widgets.md"
24
+ - "guide/animation.md"
25
+ - "guide/screens.md"
26
+ - How to:
27
+ - "how-to/index.md"
28
+ - "how-to/animation.md"
29
+ - "how-to/mouse-and-keyboard.md"
30
+ - "how-to/scroll.md"
31
+ - Events:
32
+ - "events/index.md"
33
+ - "events/blur.md"
34
+ - "events/descendant_blur.md"
35
+ - "events/descendant_focus.md"
36
+ - "events/enter.md"
37
+ - "events/focus.md"
38
+ - "events/hide.md"
39
+ - "events/key.md"
40
+ - "events/leave.md"
41
+ - "events/load.md"
42
+ - "events/mount.md"
43
+ - "events/mouse_capture.md"
44
+ - "events/click.md"
45
+ - "events/mouse_down.md"
46
+ - "events/mouse_move.md"
47
+ - "events/mouse_release.md"
48
+ - "events/mouse_scroll_down.md"
49
+ - "events/mouse_scroll_up.md"
50
+ - "events/mouse_up.md"
51
+ - "events/paste.md"
52
+ - "events/resize.md"
53
+ - "events/screen_resume.md"
54
+ - "events/screen_suspend.md"
55
+ - "events/show.md"
56
+ - Styles:
57
+ - "styles/index.md"
58
+ - "styles/align.md"
59
+ - "styles/background.md"
60
+ - "styles/border.md"
61
+ - "styles/box_sizing.md"
62
+ - "styles/color.md"
63
+ - "styles/content_align.md"
64
+ - "styles/display.md"
65
+ - "styles/dock.md"
66
+ - "styles/grid.md"
67
+ - "styles/height.md"
68
+ - "styles/layer.md"
69
+ - "styles/layers.md"
70
+ - "styles/layout.md"
71
+ - "styles/margin.md"
72
+ - "styles/max_height.md"
73
+ - "styles/max_width.md"
74
+ - "styles/min_height.md"
75
+ - "styles/min_width.md"
76
+ - "styles/offset.md"
77
+ - "styles/opacity.md"
78
+ - "styles/outline.md"
79
+ - "styles/overflow.md"
80
+ - "styles/padding.md"
81
+ - "styles/scrollbar.md"
82
+ - "styles/scrollbar_gutter.md"
83
+ - "styles/scrollbar_size.md"
84
+ - "styles/text_align.md"
85
+ - "styles/text_style.md"
86
+ - "styles/text_opacity.md"
87
+ - "styles/tint.md"
88
+ - "styles/visibility.md"
89
+ - "styles/width.md"
90
+ - Widgets:
91
+ - "widgets/button.md"
92
+ - "widgets/data_table.md"
93
+ - "widgets/footer.md"
94
+ - "widgets/header.md"
95
+ - "widgets/index.md"
96
+ - "widgets/input.md"
97
+ - "widgets/static.md"
98
+ - "widgets/tree_control.md"
99
+ - Reference:
100
+ - "reference/app.md"
101
+ - "reference/button.md"
102
+ - "reference/color.md"
103
+ - "reference/containers.md"
104
+ - "reference/dom_node.md"
105
+ - "reference/events.md"
106
+ - "reference/footer.md"
107
+ - "reference/geometry.md"
108
+ - "reference/header.md"
109
+ - "reference/index.md"
110
+ - "reference/message_pump.md"
111
+ - "reference/message.md"
112
+ - "reference/query.md"
113
+ - "reference/reactive.md"
114
+ - "reference/screen.md"
115
+ - "reference/static.md"
116
+ - "reference/timer.md"
117
+ - "reference/widget.md"
118
+
119
+
120
+ markdown_extensions:
121
+ - attr_list
122
+ - pymdownx.emoji:
123
+ emoji_index: !!python/name:materialx.emoji.twemoji
124
+ emoji_generator: !!python/name:materialx.emoji.to_svg
125
+ - md_in_html
126
+ - admonition
127
+ - def_list
128
+ - meta
129
+
130
+ - toc:
131
+ permalink: true
132
+ baselevel: 1
133
+ - pymdownx.keys
134
+ - pymdownx.tasklist:
135
+ custom_checkbox: true
136
+ - pymdownx.highlight:
137
+ anchor_linenums: true
138
+ - pymdownx.inlinehilite
139
+ - pymdownx.superfences:
140
+ custom_fences:
141
+ - name: textual
142
+ class: textual
143
+ format: !!python/name:textual._doc.format_svg
144
+ - name: rich
145
+ class: rich
146
+ format: !!python/name:textual._doc.rich
147
+ - pymdownx.inlinehilite
148
+ - pymdownx.superfences
149
+ - pymdownx.snippets
150
+ - pymdownx.tabbed:
151
+ alternate_style: true
152
+ - pymdownx.snippets
153
+ - markdown.extensions.attr_list
154
+
155
+ theme:
156
+ name: material
157
+ custom_dir: custom_theme
158
+ features:
159
+ - navigation.tabs
160
+ - navigation.indexes
161
+ - navigation.tabs.sticky
162
+ - content.code.annotate
163
+ palette:
164
+ - media: "(prefers-color-scheme: light)"
165
+ scheme: default
166
+ accent: purple
167
+ toggle:
168
+ icon: material/weather-sunny
169
+ name: Switch to dark modeTask was destroyed but it is pending!
170
+ - media: "(prefers-color-scheme: dark)"
171
+ scheme: slate
172
+ primary: black
173
+ toggle:
174
+ icon: material/weather-night
175
+ name: Switch to light mode
176
+
177
+ plugins:
178
+
179
+ - search:
180
+ - autorefs:
181
+ - mkdocstrings:
182
+ default_handler: python
183
+ handlers:
184
+ python:
185
+ options:
186
+ show_source: false
187
+ filters:
188
+ - "!^_"
189
+ - "^__init__$"
190
+ - "!^can_replace$"
191
+
192
+ watch:
193
+ - src/textual
194
+
195
+
196
+ extra_css:
197
+ - stylesheets/custom.css
testbed/Textualize__textual/mypy.ini ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [mypy]
2
+
3
+ [mypy-pygments.*]
4
+ ignore_missing_imports = True
5
+
6
+ [mypy-IPython.*]
7
+ ignore_missing_imports = True
8
+
9
+ [mypy-commonmark.*]
10
+ ignore_missing_imports = True
11
+
12
+ [mypy-colorama.*]
13
+ ignore_missing_imports = True
14
+
15
+ [mypy-ipywidgets.*]
16
+ ignore_missing_imports = True
testbed/Textualize__textual/notes/README.md ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # Developer notes
2
+
3
+ These are notes made by the developer, and _not_ to be considered documentation.
testbed/Textualize__textual/notes/snapshot_testing.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Snapshot Testing
2
+
3
+
4
+ ## What is snapshot testing?
5
+
6
+ Some tests that run for Textual are snapshot tests.
7
+ When you first run a snapshot test, a screenshot of an app is taken and saved to disk.
8
+ Next time you run it, another screenshot is taken and compared with the original one.
9
+
10
+ If the screenshots don't match, it means something has changed.
11
+ It's up to you to tell the test system whether that change is expected or not.
12
+
13
+ This allows us to easily catch regressions in how Textual outputs to the terminal.
14
+
15
+ Snapshot tests run alongside normal unit tests.
16
+
17
+ ## How do I write a snapshot test?
18
+
19
+ 1. Inject the `snap_compare` fixture into your test.
20
+ 2. Pass in the path to the file which contains the Textual app.
21
+
22
+ ```python
23
+ def test_grid_layout_basic_overflow(snap_compare):
24
+ assert snap_compare("docs/examples/guide/layout/grid_layout2.py")
25
+ ```
26
+
27
+ `snap_compare` can take additional arguments such as `press`, which allows
28
+ you to simulate key presses etc.
29
+ See the signature of `snap_compare` for more info.
30
+
31
+ ## A snapshot test failed, what do I do?
32
+
33
+ When a snapshot test fails, a report will be created on your machine, and you
34
+ can use this report to visually compare the output from your test with the historical output for that test.
35
+
36
+ This report will be visible at the bottom of the terminal after the `pytest` session completes,
37
+ or, if running in CI, it will be available as an artifact attached to the GitHub Actions summary.
38
+
39
+ If you're happy that the new output of the app is correct, you can run `pytest` with the
40
+ `--snapshot-update` flag. This flag will update the snapshots for any test that is executed in the run,
41
+ so to update a snapshot for a single test, run only that test.
42
+
43
+ With your snapshot on disk updated to match the new output, running the test again should result in a pass.
testbed/Textualize__textual/poetry.lock ADDED
@@ -0,0 +1,1249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [[package]]
2
+ name = "aiohttp"
3
+ version = "3.8.3"
4
+ description = "Async http client/server framework (asyncio)"
5
+ category = "main"
6
+ optional = false
7
+ python-versions = ">=3.6"
8
+
9
+ [package.dependencies]
10
+ aiosignal = ">=1.1.2"
11
+ async-timeout = ">=4.0.0a3,<5.0"
12
+ asynctest = {version = "0.13.0", markers = "python_version < \"3.8\""}
13
+ attrs = ">=17.3.0"
14
+ charset-normalizer = ">=2.0,<3.0"
15
+ frozenlist = ">=1.1.1"
16
+ multidict = ">=4.5,<7.0"
17
+ typing-extensions = {version = ">=3.7.4", markers = "python_version < \"3.8\""}
18
+ yarl = ">=1.0,<2.0"
19
+
20
+ [package.extras]
21
+ speedups = ["aiodns", "brotli", "cchardet"]
22
+
23
+ [[package]]
24
+ name = "aiosignal"
25
+ version = "1.2.0"
26
+ description = "aiosignal: a list of registered asynchronous callbacks"
27
+ category = "main"
28
+ optional = false
29
+ python-versions = ">=3.6"
30
+
31
+ [package.dependencies]
32
+ frozenlist = ">=1.1.0"
33
+
34
+ [[package]]
35
+ name = "async-timeout"
36
+ version = "4.0.2"
37
+ description = "Timeout context manager for asyncio programs"
38
+ category = "main"
39
+ optional = false
40
+ python-versions = ">=3.6"
41
+
42
+ [package.dependencies]
43
+ typing-extensions = {version = ">=3.6.5", markers = "python_version < \"3.8\""}
44
+
45
+ [[package]]
46
+ name = "asynctest"
47
+ version = "0.13.0"
48
+ description = "Enhance the standard unittest package with features for testing asyncio libraries"
49
+ category = "main"
50
+ optional = false
51
+ python-versions = ">=3.5"
52
+
53
+ [[package]]
54
+ name = "attrs"
55
+ version = "22.1.0"
56
+ description = "Classes Without Boilerplate"
57
+ category = "main"
58
+ optional = false
59
+ python-versions = ">=3.5"
60
+
61
+ [package.extras]
62
+ dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "mypy (>=0.900,!=0.940)", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit", "cloudpickle"]
63
+ docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"]
64
+ tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "mypy (>=0.900,!=0.940)", "pytest-mypy-plugins", "zope.interface", "cloudpickle"]
65
+ tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "mypy (>=0.900,!=0.940)", "pytest-mypy-plugins", "cloudpickle"]
66
+
67
+ [[package]]
68
+ name = "black"
69
+ version = "22.8.0"
70
+ description = "The uncompromising code formatter."
71
+ category = "dev"
72
+ optional = false
73
+ python-versions = ">=3.6.2"
74
+
75
+ [package.dependencies]
76
+ click = ">=8.0.0"
77
+ mypy-extensions = ">=0.4.3"
78
+ pathspec = ">=0.9.0"
79
+ platformdirs = ">=2"
80
+ tomli = {version = ">=1.1.0", markers = "python_full_version < \"3.11.0a7\""}
81
+ typed-ast = {version = ">=1.4.2", markers = "python_version < \"3.8\" and implementation_name == \"cpython\""}
82
+ typing-extensions = {version = ">=3.10.0.0", markers = "python_version < \"3.10\""}
83
+
84
+ [package.extras]
85
+ colorama = ["colorama (>=0.4.3)"]
86
+ d = ["aiohttp (>=3.7.4)"]
87
+ jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"]
88
+ uvloop = ["uvloop (>=0.15.2)"]
89
+
90
+ [[package]]
91
+ name = "cached-property"
92
+ version = "1.5.2"
93
+ description = "A decorator for caching properties in classes."
94
+ category = "dev"
95
+ optional = false
96
+ python-versions = "*"
97
+
98
+ [[package]]
99
+ name = "certifi"
100
+ version = "2022.9.24"
101
+ description = "Python package for providing Mozilla's CA Bundle."
102
+ category = "dev"
103
+ optional = false
104
+ python-versions = ">=3.6"
105
+
106
+ [[package]]
107
+ name = "cfgv"
108
+ version = "3.3.1"
109
+ description = "Validate configuration and produce human readable error messages."
110
+ category = "dev"
111
+ optional = false
112
+ python-versions = ">=3.6.1"
113
+
114
+ [[package]]
115
+ name = "charset-normalizer"
116
+ version = "2.1.1"
117
+ description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."
118
+ category = "main"
119
+ optional = false
120
+ python-versions = ">=3.6.0"
121
+
122
+ [package.extras]
123
+ unicode_backport = ["unicodedata2"]
124
+
125
+ [[package]]
126
+ name = "click"
127
+ version = "8.1.2"
128
+ description = "Composable command line interface toolkit"
129
+ category = "main"
130
+ optional = false
131
+ python-versions = ">=3.7"
132
+
133
+ [package.dependencies]
134
+ colorama = {version = "*", markers = "platform_system == \"Windows\""}
135
+ importlib-metadata = {version = "*", markers = "python_version < \"3.8\""}
136
+
137
+ [[package]]
138
+ name = "colorama"
139
+ version = "0.4.5"
140
+ description = "Cross-platform colored terminal text."
141
+ category = "main"
142
+ optional = false
143
+ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
144
+
145
+ [[package]]
146
+ name = "colored"
147
+ version = "1.4.3"
148
+ description = "Simple library for color and formatting to terminal"
149
+ category = "dev"
150
+ optional = false
151
+ python-versions = "*"
152
+
153
+ [[package]]
154
+ name = "commonmark"
155
+ version = "0.9.1"
156
+ description = "Python parser for the CommonMark Markdown spec"
157
+ category = "main"
158
+ optional = false
159
+ python-versions = "*"
160
+
161
+ [package.extras]
162
+ test = ["flake8 (==3.7.8)", "hypothesis (==3.55.3)"]
163
+
164
+ [[package]]
165
+ name = "coverage"
166
+ version = "6.5.0"
167
+ description = "Code coverage measurement for Python"
168
+ category = "dev"
169
+ optional = false
170
+ python-versions = ">=3.7"
171
+
172
+ [package.extras]
173
+ toml = ["tomli"]
174
+
175
+ [[package]]
176
+ name = "distlib"
177
+ version = "0.3.6"
178
+ description = "Distribution utilities"
179
+ category = "dev"
180
+ optional = false
181
+ python-versions = "*"
182
+
183
+ [[package]]
184
+ name = "filelock"
185
+ version = "3.8.0"
186
+ description = "A platform independent file lock."
187
+ category = "dev"
188
+ optional = false
189
+ python-versions = ">=3.7"
190
+
191
+ [package.extras]
192
+ docs = ["furo (>=2022.6.21)", "sphinx (>=5.1.1)", "sphinx-autodoc-typehints (>=1.19.1)"]
193
+ testing = ["covdefaults (>=2.2)", "coverage (>=6.4.2)", "pytest (>=7.1.2)", "pytest-cov (>=3)", "pytest-timeout (>=2.1)"]
194
+
195
+ [[package]]
196
+ name = "frozenlist"
197
+ version = "1.3.1"
198
+ description = "A list-like structure which implements collections.abc.MutableSequence"
199
+ category = "main"
200
+ optional = false
201
+ python-versions = ">=3.7"
202
+
203
+ [[package]]
204
+ name = "ghp-import"
205
+ version = "2.1.0"
206
+ description = "Copy your docs directly to the gh-pages branch."
207
+ category = "dev"
208
+ optional = false
209
+ python-versions = "*"
210
+
211
+ [package.dependencies]
212
+ python-dateutil = ">=2.8.1"
213
+
214
+ [package.extras]
215
+ dev = ["twine", "markdown", "flake8", "wheel"]
216
+
217
+ [[package]]
218
+ name = "griffe"
219
+ version = "0.22.2"
220
+ description = "Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API."
221
+ category = "dev"
222
+ optional = false
223
+ python-versions = ">=3.7"
224
+
225
+ [package.dependencies]
226
+ cached-property = {version = "*", markers = "python_version < \"3.8\""}
227
+
228
+ [package.extras]
229
+ async = ["aiofiles (>=0.7,<1.0)"]
230
+
231
+ [[package]]
232
+ name = "identify"
233
+ version = "2.5.6"
234
+ description = "File identification library for Python"
235
+ category = "dev"
236
+ optional = false
237
+ python-versions = ">=3.7"
238
+
239
+ [package.extras]
240
+ license = ["ukkonen"]
241
+
242
+ [[package]]
243
+ name = "idna"
244
+ version = "3.4"
245
+ description = "Internationalized Domain Names in Applications (IDNA)"
246
+ category = "main"
247
+ optional = false
248
+ python-versions = ">=3.5"
249
+
250
+ [[package]]
251
+ name = "importlib-metadata"
252
+ version = "4.13.0"
253
+ description = "Read metadata from Python packages"
254
+ category = "main"
255
+ optional = false
256
+ python-versions = ">=3.7"
257
+
258
+ [package.dependencies]
259
+ typing-extensions = {version = ">=3.6.4", markers = "python_version < \"3.8\""}
260
+ zipp = ">=0.5"
261
+
262
+ [package.extras]
263
+ docs = ["sphinx (>=3.5)", "jaraco.packaging (>=9)", "rst.linker (>=1.9)", "furo", "jaraco.tidelift (>=1.4)"]
264
+ perf = ["ipython"]
265
+ testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "flake8 (<5)", "pytest-cov", "pytest-enabler (>=1.3)", "packaging", "pyfakefs", "flufl.flake8", "pytest-perf (>=0.9.2)", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)", "importlib-resources (>=1.3)"]
266
+
267
+ [[package]]
268
+ name = "iniconfig"
269
+ version = "1.1.1"
270
+ description = "iniconfig: brain-dead simple config-ini parsing"
271
+ category = "dev"
272
+ optional = false
273
+ python-versions = "*"
274
+
275
+ [[package]]
276
+ name = "jinja2"
277
+ version = "3.0.3"
278
+ description = "A very fast and expressive template engine."
279
+ category = "dev"
280
+ optional = false
281
+ python-versions = ">=3.6"
282
+
283
+ [package.dependencies]
284
+ MarkupSafe = ">=2.0"
285
+
286
+ [package.extras]
287
+ i18n = ["Babel (>=2.7)"]
288
+
289
+ [[package]]
290
+ name = "markdown"
291
+ version = "3.3.7"
292
+ description = "Python implementation of Markdown."
293
+ category = "dev"
294
+ optional = false
295
+ python-versions = ">=3.6"
296
+
297
+ [package.dependencies]
298
+ importlib-metadata = {version = ">=4.4", markers = "python_version < \"3.10\""}
299
+
300
+ [package.extras]
301
+ testing = ["coverage", "pyyaml"]
302
+
303
+ [[package]]
304
+ name = "markupsafe"
305
+ version = "2.1.1"
306
+ description = "Safely add untrusted strings to HTML/XML markup."
307
+ category = "dev"
308
+ optional = false
309
+ python-versions = ">=3.7"
310
+
311
+ [[package]]
312
+ name = "mergedeep"
313
+ version = "1.3.4"
314
+ description = "A deep merge function for 🐍."
315
+ category = "dev"
316
+ optional = false
317
+ python-versions = ">=3.6"
318
+
319
+ [[package]]
320
+ name = "mkdocs"
321
+ version = "1.4.0"
322
+ description = "Project documentation with Markdown."
323
+ category = "dev"
324
+ optional = false
325
+ python-versions = ">=3.7"
326
+
327
+ [package.dependencies]
328
+ click = ">=7.0"
329
+ ghp-import = ">=1.0"
330
+ importlib-metadata = {version = ">=4.3", markers = "python_version < \"3.10\""}
331
+ Jinja2 = ">=2.11.1"
332
+ Markdown = ">=3.2.1,<3.4"
333
+ mergedeep = ">=1.3.4"
334
+ packaging = ">=20.5"
335
+ PyYAML = ">=5.1"
336
+ pyyaml-env-tag = ">=0.1"
337
+ typing-extensions = {version = ">=3.10", markers = "python_version < \"3.8\""}
338
+ watchdog = ">=2.0"
339
+
340
+ [package.extras]
341
+ i18n = ["babel (>=2.9.0)"]
342
+
343
+ [[package]]
344
+ name = "mkdocs-autorefs"
345
+ version = "0.4.1"
346
+ description = "Automatically link across pages in MkDocs."
347
+ category = "dev"
348
+ optional = false
349
+ python-versions = ">=3.7"
350
+
351
+ [package.dependencies]
352
+ Markdown = ">=3.3"
353
+ mkdocs = ">=1.1"
354
+
355
+ [[package]]
356
+ name = "mkdocs-material"
357
+ version = "8.5.6"
358
+ description = "Documentation that simply works"
359
+ category = "dev"
360
+ optional = false
361
+ python-versions = ">=3.7"
362
+
363
+ [package.dependencies]
364
+ jinja2 = ">=3.0.2"
365
+ markdown = ">=3.2"
366
+ mkdocs = ">=1.4.0"
367
+ mkdocs-material-extensions = ">=1.0.3"
368
+ pygments = ">=2.12"
369
+ pymdown-extensions = ">=9.4"
370
+ requests = ">=2.26"
371
+
372
+ [[package]]
373
+ name = "mkdocs-material-extensions"
374
+ version = "1.0.3"
375
+ description = "Extension pack for Python Markdown."
376
+ category = "dev"
377
+ optional = false
378
+ python-versions = ">=3.6"
379
+
380
+ [[package]]
381
+ name = "mkdocstrings"
382
+ version = "0.19.0"
383
+ description = "Automatic documentation from sources, for MkDocs."
384
+ category = "dev"
385
+ optional = false
386
+ python-versions = ">=3.7"
387
+
388
+ [package.dependencies]
389
+ Jinja2 = ">=2.11.1"
390
+ Markdown = ">=3.3"
391
+ MarkupSafe = ">=1.1"
392
+ mkdocs = ">=1.2"
393
+ mkdocs-autorefs = ">=0.3.1"
394
+ mkdocstrings-python = {version = ">=0.5.2", optional = true, markers = "extra == \"python\""}
395
+ pymdown-extensions = ">=6.3"
396
+
397
+ [package.extras]
398
+ crystal = ["mkdocstrings-crystal (>=0.3.4)"]
399
+ python = ["mkdocstrings-python (>=0.5.2)"]
400
+ python-legacy = ["mkdocstrings-python-legacy (>=0.2.1)"]
401
+
402
+ [[package]]
403
+ name = "mkdocstrings-python"
404
+ version = "0.7.1"
405
+ description = "A Python handler for mkdocstrings."
406
+ category = "dev"
407
+ optional = false
408
+ python-versions = ">=3.7"
409
+
410
+ [package.dependencies]
411
+ griffe = ">=0.11.1"
412
+ mkdocstrings = ">=0.19"
413
+
414
+ [[package]]
415
+ name = "msgpack"
416
+ version = "1.0.4"
417
+ description = "MessagePack serializer"
418
+ category = "main"
419
+ optional = true
420
+ python-versions = "*"
421
+
422
+ [[package]]
423
+ name = "multidict"
424
+ version = "6.0.2"
425
+ description = "multidict implementation"
426
+ category = "main"
427
+ optional = false
428
+ python-versions = ">=3.7"
429
+
430
+ [[package]]
431
+ name = "mypy"
432
+ version = "0.982"
433
+ description = "Optional static typing for Python"
434
+ category = "dev"
435
+ optional = false
436
+ python-versions = ">=3.7"
437
+
438
+ [package.dependencies]
439
+ mypy-extensions = ">=0.4.3"
440
+ tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""}
441
+ typed-ast = {version = ">=1.4.0,<2", markers = "python_version < \"3.8\""}
442
+ typing-extensions = ">=3.10"
443
+
444
+ [package.extras]
445
+ dmypy = ["psutil (>=4.0)"]
446
+ python2 = ["typed-ast (>=1.4.0,<2)"]
447
+ reports = ["lxml"]
448
+
449
+ [[package]]
450
+ name = "mypy-extensions"
451
+ version = "0.4.3"
452
+ description = "Experimental type system extensions for programs checked with the mypy typechecker."
453
+ category = "dev"
454
+ optional = false
455
+ python-versions = "*"
456
+
457
+ [[package]]
458
+ name = "nanoid"
459
+ version = "2.0.0"
460
+ description = "A tiny, secure, URL-friendly, unique string ID generator for Python"
461
+ category = "main"
462
+ optional = false
463
+ python-versions = "*"
464
+
465
+ [[package]]
466
+ name = "nodeenv"
467
+ version = "1.7.0"
468
+ description = "Node.js virtual environment builder"
469
+ category = "dev"
470
+ optional = false
471
+ python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*"
472
+
473
+ [[package]]
474
+ name = "packaging"
475
+ version = "21.3"
476
+ description = "Core utilities for Python packages"
477
+ category = "dev"
478
+ optional = false
479
+ python-versions = ">=3.6"
480
+
481
+ [package.dependencies]
482
+ pyparsing = ">=2.0.2,<3.0.5 || >3.0.5"
483
+
484
+ [[package]]
485
+ name = "pathspec"
486
+ version = "0.10.1"
487
+ description = "Utility library for gitignore style pattern matching of file paths."
488
+ category = "dev"
489
+ optional = false
490
+ python-versions = ">=3.7"
491
+
492
+ [[package]]
493
+ name = "platformdirs"
494
+ version = "2.5.2"
495
+ description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
496
+ category = "dev"
497
+ optional = false
498
+ python-versions = ">=3.7"
499
+
500
+ [package.extras]
501
+ docs = ["furo (>=2021.7.5b38)", "proselint (>=0.10.2)", "sphinx-autodoc-typehints (>=1.12)", "sphinx (>=4)"]
502
+ test = ["appdirs (==1.4.4)", "pytest-cov (>=2.7)", "pytest-mock (>=3.6)", "pytest (>=6)"]
503
+
504
+ [[package]]
505
+ name = "pluggy"
506
+ version = "1.0.0"
507
+ description = "plugin and hook calling mechanisms for python"
508
+ category = "dev"
509
+ optional = false
510
+ python-versions = ">=3.6"
511
+
512
+ [package.dependencies]
513
+ importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""}
514
+
515
+ [package.extras]
516
+ dev = ["pre-commit", "tox"]
517
+ testing = ["pytest", "pytest-benchmark"]
518
+
519
+ [[package]]
520
+ name = "pre-commit"
521
+ version = "2.20.0"
522
+ description = "A framework for managing and maintaining multi-language pre-commit hooks."
523
+ category = "dev"
524
+ optional = false
525
+ python-versions = ">=3.7"
526
+
527
+ [package.dependencies]
528
+ cfgv = ">=2.0.0"
529
+ identify = ">=1.0.0"
530
+ importlib-metadata = {version = "*", markers = "python_version < \"3.8\""}
531
+ nodeenv = ">=0.11.1"
532
+ pyyaml = ">=5.1"
533
+ toml = "*"
534
+ virtualenv = ">=20.0.8"
535
+
536
+ [[package]]
537
+ name = "py"
538
+ version = "1.11.0"
539
+ description = "library with cross-python path, ini-parsing, io, code, log facilities"
540
+ category = "dev"
541
+ optional = false
542
+ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
543
+
544
+ [[package]]
545
+ name = "pygments"
546
+ version = "2.13.0"
547
+ description = "Pygments is a syntax highlighting package written in Python."
548
+ category = "main"
549
+ optional = false
550
+ python-versions = ">=3.6"
551
+
552
+ [package.extras]
553
+ plugins = ["importlib-metadata"]
554
+
555
+ [[package]]
556
+ name = "pymdown-extensions"
557
+ version = "9.6"
558
+ description = "Extension pack for Python Markdown."
559
+ category = "dev"
560
+ optional = false
561
+ python-versions = ">=3.7"
562
+
563
+ [package.dependencies]
564
+ markdown = ">=3.2"
565
+
566
+ [[package]]
567
+ name = "pyparsing"
568
+ version = "3.0.9"
569
+ description = "pyparsing module - Classes and methods to define and execute parsing grammars"
570
+ category = "dev"
571
+ optional = false
572
+ python-versions = ">=3.6.8"
573
+
574
+ [package.extras]
575
+ diagrams = ["railroad-diagrams", "jinja2"]
576
+
577
+ [[package]]
578
+ name = "pytest"
579
+ version = "7.1.3"
580
+ description = "pytest: simple powerful testing with Python"
581
+ category = "dev"
582
+ optional = false
583
+ python-versions = ">=3.7"
584
+
585
+ [package.dependencies]
586
+ attrs = ">=19.2.0"
587
+ colorama = {version = "*", markers = "sys_platform == \"win32\""}
588
+ importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""}
589
+ iniconfig = "*"
590
+ packaging = "*"
591
+ pluggy = ">=0.12,<2.0"
592
+ py = ">=1.8.2"
593
+ tomli = ">=1.0.0"
594
+
595
+ [package.extras]
596
+ testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "xmlschema"]
597
+
598
+ [[package]]
599
+ name = "pytest-aiohttp"
600
+ version = "1.0.4"
601
+ description = "Pytest plugin for aiohttp support"
602
+ category = "dev"
603
+ optional = false
604
+ python-versions = ">=3.7"
605
+
606
+ [package.dependencies]
607
+ aiohttp = ">=3.8.1"
608
+ pytest = ">=6.1.0"
609
+ pytest-asyncio = ">=0.17.2"
610
+
611
+ [package.extras]
612
+ testing = ["coverage (==6.2)", "mypy (==0.931)"]
613
+
614
+ [[package]]
615
+ name = "pytest-asyncio"
616
+ version = "0.19.0"
617
+ description = "Pytest support for asyncio"
618
+ category = "dev"
619
+ optional = false
620
+ python-versions = ">=3.7"
621
+
622
+ [package.dependencies]
623
+ pytest = ">=6.1.0"
624
+ typing-extensions = {version = ">=3.7.2", markers = "python_version < \"3.8\""}
625
+
626
+ [package.extras]
627
+ testing = ["coverage (>=6.2)", "hypothesis (>=5.7.1)", "flaky (>=3.5.0)", "mypy (>=0.931)", "pytest-trio (>=0.7.0)"]
628
+
629
+ [[package]]
630
+ name = "pytest-cov"
631
+ version = "2.12.1"
632
+ description = "Pytest plugin for measuring coverage."
633
+ category = "dev"
634
+ optional = false
635
+ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
636
+
637
+ [package.dependencies]
638
+ coverage = ">=5.2.1"
639
+ pytest = ">=4.6"
640
+ toml = "*"
641
+
642
+ [package.extras]
643
+ testing = ["fields", "hunter", "process-tests", "six", "pytest-xdist", "virtualenv"]
644
+
645
+ [[package]]
646
+ name = "python-dateutil"
647
+ version = "2.8.2"
648
+ description = "Extensions to the standard Python datetime module"
649
+ category = "dev"
650
+ optional = false
651
+ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
652
+
653
+ [package.dependencies]
654
+ six = ">=1.5"
655
+
656
+ [[package]]
657
+ name = "pyyaml"
658
+ version = "6.0"
659
+ description = "YAML parser and emitter for Python"
660
+ category = "dev"
661
+ optional = false
662
+ python-versions = ">=3.6"
663
+
664
+ [[package]]
665
+ name = "pyyaml-env-tag"
666
+ version = "0.1"
667
+ description = "A custom YAML tag for referencing environment variables in YAML files. "
668
+ category = "dev"
669
+ optional = false
670
+ python-versions = ">=3.6"
671
+
672
+ [package.dependencies]
673
+ pyyaml = "*"
674
+
675
+ [[package]]
676
+ name = "requests"
677
+ version = "2.28.1"
678
+ description = "Python HTTP for Humans."
679
+ category = "dev"
680
+ optional = false
681
+ python-versions = ">=3.7, <4"
682
+
683
+ [package.dependencies]
684
+ certifi = ">=2017.4.17"
685
+ charset-normalizer = ">=2,<3"
686
+ idna = ">=2.5,<4"
687
+ urllib3 = ">=1.21.1,<1.27"
688
+
689
+ [package.extras]
690
+ socks = ["PySocks (>=1.5.6,!=1.5.7)"]
691
+ use_chardet_on_py3 = ["chardet (>=3.0.2,<6)"]
692
+
693
+ [[package]]
694
+ name = "rich"
695
+ version = "12.6.0"
696
+ description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"
697
+ category = "main"
698
+ optional = false
699
+ python-versions = ">=3.6.3,<4.0.0"
700
+
701
+ [package.dependencies]
702
+ commonmark = ">=0.9.0,<0.10.0"
703
+ pygments = ">=2.6.0,<3.0.0"
704
+ typing-extensions = {version = ">=4.0.0,<5.0", markers = "python_version < \"3.9\""}
705
+
706
+ [package.extras]
707
+ jupyter = ["ipywidgets (>=7.5.1,<8.0.0)"]
708
+
709
+ [[package]]
710
+ name = "six"
711
+ version = "1.16.0"
712
+ description = "Python 2 and 3 compatibility utilities"
713
+ category = "dev"
714
+ optional = false
715
+ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
716
+
717
+ [[package]]
718
+ name = "syrupy"
719
+ version = "3.0.2"
720
+ description = "Pytest Snapshot Test Utility"
721
+ category = "dev"
722
+ optional = false
723
+ python-versions = ">=3.7,<4"
724
+
725
+ [package.dependencies]
726
+ colored = ">=1.3.92,<2.0.0"
727
+ pytest = ">=5.1.0,<8.0.0"
728
+
729
+ [[package]]
730
+ name = "time-machine"
731
+ version = "2.8.2"
732
+ description = "Travel through time in your tests."
733
+ category = "dev"
734
+ optional = false
735
+ python-versions = ">=3.7"
736
+
737
+ [package.dependencies]
738
+ python-dateutil = "*"
739
+
740
+ [[package]]
741
+ name = "toml"
742
+ version = "0.10.2"
743
+ description = "Python Library for Tom's Obvious, Minimal Language"
744
+ category = "dev"
745
+ optional = false
746
+ python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
747
+
748
+ [[package]]
749
+ name = "tomli"
750
+ version = "2.0.1"
751
+ description = "A lil' TOML parser"
752
+ category = "dev"
753
+ optional = false
754
+ python-versions = ">=3.7"
755
+
756
+ [[package]]
757
+ name = "typed-ast"
758
+ version = "1.5.4"
759
+ description = "a fork of Python 2 and 3 ast modules with type comment support"
760
+ category = "dev"
761
+ optional = false
762
+ python-versions = ">=3.6"
763
+
764
+ [[package]]
765
+ name = "typing-extensions"
766
+ version = "4.3.0"
767
+ description = "Backported and Experimental Type Hints for Python 3.7+"
768
+ category = "main"
769
+ optional = false
770
+ python-versions = ">=3.7"
771
+
772
+ [[package]]
773
+ name = "urllib3"
774
+ version = "1.26.12"
775
+ description = "HTTP library with thread-safe connection pooling, file post, and more."
776
+ category = "dev"
777
+ optional = false
778
+ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4"
779
+
780
+ [package.extras]
781
+ brotli = ["brotlicffi (>=0.8.0)", "brotli (>=1.0.9)", "brotlipy (>=0.6.0)"]
782
+ secure = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "certifi", "urllib3-secure-extra", "ipaddress"]
783
+ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"]
784
+
785
+ [[package]]
786
+ name = "virtualenv"
787
+ version = "20.16.5"
788
+ description = "Virtual Python Environment builder"
789
+ category = "dev"
790
+ optional = false
791
+ python-versions = ">=3.6"
792
+
793
+ [package.dependencies]
794
+ distlib = ">=0.3.5,<1"
795
+ filelock = ">=3.4.1,<4"
796
+ importlib-metadata = {version = ">=4.8.3", markers = "python_version < \"3.8\""}
797
+ platformdirs = ">=2.4,<3"
798
+
799
+ [package.extras]
800
+ docs = ["proselint (>=0.13)", "sphinx (>=5.1.1)", "sphinx-argparse (>=0.3.1)", "sphinx-rtd-theme (>=1)", "towncrier (>=21.9)"]
801
+ testing = ["coverage (>=6.2)", "coverage-enable-subprocess (>=1)", "flaky (>=3.7)", "packaging (>=21.3)", "pytest (>=7.0.1)", "pytest-env (>=0.6.2)", "pytest-freezegun (>=0.4.2)", "pytest-mock (>=3.6.1)", "pytest-randomly (>=3.10.3)", "pytest-timeout (>=2.1)"]
802
+
803
+ [[package]]
804
+ name = "watchdog"
805
+ version = "2.1.9"
806
+ description = "Filesystem events monitoring"
807
+ category = "dev"
808
+ optional = false
809
+ python-versions = ">=3.6"
810
+
811
+ [package.extras]
812
+ watchmedo = ["PyYAML (>=3.10)"]
813
+
814
+ [[package]]
815
+ name = "yarl"
816
+ version = "1.8.1"
817
+ description = "Yet another URL library"
818
+ category = "main"
819
+ optional = false
820
+ python-versions = ">=3.7"
821
+
822
+ [package.dependencies]
823
+ idna = ">=2.0"
824
+ multidict = ">=4.0"
825
+ typing-extensions = {version = ">=3.7.4", markers = "python_version < \"3.8\""}
826
+
827
+ [[package]]
828
+ name = "zipp"
829
+ version = "3.8.1"
830
+ description = "Backport of pathlib-compatible object wrapper for zip files"
831
+ category = "main"
832
+ optional = false
833
+ python-versions = ">=3.7"
834
+
835
+ [package.extras]
836
+ docs = ["sphinx", "jaraco.packaging (>=9)", "rst.linker (>=1.9)", "jaraco.tidelift (>=1.4)"]
837
+ testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.3)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)"]
838
+
839
+ [extras]
840
+ dev = ["aiohttp", "click", "msgpack"]
841
+
842
+ [metadata]
843
+ lock-version = "1.1"
844
+ python-versions = "^3.7"
845
+ content-hash = "84203bb5193474eb9204f4f808739cb25e61f02a38d0062ea2ea71d3703573c1"
846
+
847
+ [metadata.files]
848
+ aiohttp = []
849
+ aiosignal = [
850
+ {file = "aiosignal-1.2.0-py3-none-any.whl", hash = "sha256:26e62109036cd181df6e6ad646f91f0dcfd05fe16d0cb924138ff2ab75d64e3a"},
851
+ {file = "aiosignal-1.2.0.tar.gz", hash = "sha256:78ed67db6c7b7ced4f98e495e572106d5c432a93e1ddd1bf475e1dc05f5b7df2"},
852
+ ]
853
+ async-timeout = [
854
+ {file = "async-timeout-4.0.2.tar.gz", hash = "sha256:2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15"},
855
+ {file = "async_timeout-4.0.2-py3-none-any.whl", hash = "sha256:8ca1e4fcf50d07413d66d1a5e416e42cfdf5851c981d679a09851a6853383b3c"},
856
+ ]
857
+ asynctest = [
858
+ {file = "asynctest-0.13.0-py3-none-any.whl", hash = "sha256:5da6118a7e6d6b54d83a8f7197769d046922a44d2a99c21382f0a6e4fadae676"},
859
+ {file = "asynctest-0.13.0.tar.gz", hash = "sha256:c27862842d15d83e6a34eb0b2866c323880eb3a75e4485b079ea11748fd77fac"},
860
+ ]
861
+ attrs = []
862
+ black = []
863
+ cached-property = [
864
+ {file = "cached-property-1.5.2.tar.gz", hash = "sha256:9fa5755838eecbb2d234c3aa390bd80fbd3ac6b6869109bfc1b499f7bd89a130"},
865
+ {file = "cached_property-1.5.2-py2.py3-none-any.whl", hash = "sha256:df4f613cf7ad9a588cc381aaf4a512d26265ecebd5eb9e1ba12f1319eb85a6a0"},
866
+ ]
867
+ certifi = []
868
+ cfgv = [
869
+ {file = "cfgv-3.3.1-py2.py3-none-any.whl", hash = "sha256:c6a0883f3917a037485059700b9e75da2464e6c27051014ad85ba6aaa5884426"},
870
+ {file = "cfgv-3.3.1.tar.gz", hash = "sha256:f5a830efb9ce7a445376bb66ec94c638a9787422f96264c98edc6bdeed8ab736"},
871
+ ]
872
+ charset-normalizer = []
873
+ click = [
874
+ {file = "click-8.1.2-py3-none-any.whl", hash = "sha256:24e1a4a9ec5bf6299411369b208c1df2188d9eb8d916302fe6bf03faed227f1e"},
875
+ {file = "click-8.1.2.tar.gz", hash = "sha256:479707fe14d9ec9a0757618b7a100a0ae4c4e236fac5b7f80ca68028141a1a72"},
876
+ ]
877
+ colorama = [
878
+ {file = "colorama-0.4.5-py2.py3-none-any.whl", hash = "sha256:854bf444933e37f5824ae7bfc1e98d5bce2ebe4160d46b5edf346a89358e99da"},
879
+ {file = "colorama-0.4.5.tar.gz", hash = "sha256:e6c6b4334fc50988a639d9b98aa429a0b57da6e17b9a44f0451f930b6967b7a4"},
880
+ ]
881
+ colored = []
882
+ commonmark = [
883
+ {file = "commonmark-0.9.1-py2.py3-none-any.whl", hash = "sha256:da2f38c92590f83de410ba1a3cbceafbc74fee9def35f9251ba9a971d6d66fd9"},
884
+ {file = "commonmark-0.9.1.tar.gz", hash = "sha256:452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60"},
885
+ ]
886
+ coverage = []
887
+ distlib = []
888
+ filelock = []
889
+ frozenlist = []
890
+ ghp-import = [
891
+ {file = "ghp-import-2.1.0.tar.gz", hash = "sha256:9c535c4c61193c2df8871222567d7fd7e5014d835f97dc7b7439069e2413d343"},
892
+ {file = "ghp_import-2.1.0-py3-none-any.whl", hash = "sha256:8337dd7b50877f163d4c0289bc1f1c7f127550241988d568c1db512c4324a619"},
893
+ ]
894
+ griffe = []
895
+ identify = []
896
+ idna = []
897
+ importlib-metadata = []
898
+ iniconfig = [
899
+ {file = "iniconfig-1.1.1-py2.py3-none-any.whl", hash = "sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3"},
900
+ {file = "iniconfig-1.1.1.tar.gz", hash = "sha256:bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32"},
901
+ ]
902
+ jinja2 = [
903
+ {file = "Jinja2-3.0.3-py3-none-any.whl", hash = "sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8"},
904
+ {file = "Jinja2-3.0.3.tar.gz", hash = "sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7"},
905
+ ]
906
+ markdown = [
907
+ {file = "Markdown-3.3.7-py3-none-any.whl", hash = "sha256:f5da449a6e1c989a4cea2631aa8ee67caa5a2ef855d551c88f9e309f4634c621"},
908
+ {file = "Markdown-3.3.7.tar.gz", hash = "sha256:cbb516f16218e643d8e0a95b309f77eb118cb138d39a4f27851e6a63581db874"},
909
+ ]
910
+ markupsafe = [
911
+ {file = "MarkupSafe-2.1.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:86b1f75c4e7c2ac2ccdaec2b9022845dbb81880ca318bb7a0a01fbf7813e3812"},
912
+ {file = "MarkupSafe-2.1.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:f121a1420d4e173a5d96e47e9a0c0dcff965afdf1626d28de1460815f7c4ee7a"},
913
+ {file = "MarkupSafe-2.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a49907dd8420c5685cfa064a1335b6754b74541bbb3706c259c02ed65b644b3e"},
914
+ {file = "MarkupSafe-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:10c1bfff05d95783da83491be968e8fe789263689c02724e0c691933c52994f5"},
915
+ {file = "MarkupSafe-2.1.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b7bd98b796e2b6553da7225aeb61f447f80a1ca64f41d83612e6139ca5213aa4"},
916
+ {file = "MarkupSafe-2.1.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:b09bf97215625a311f669476f44b8b318b075847b49316d3e28c08e41a7a573f"},
917
+ {file = "MarkupSafe-2.1.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:694deca8d702d5db21ec83983ce0bb4b26a578e71fbdbd4fdcd387daa90e4d5e"},
918
+ {file = "MarkupSafe-2.1.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:efc1913fd2ca4f334418481c7e595c00aad186563bbc1ec76067848c7ca0a933"},
919
+ {file = "MarkupSafe-2.1.1-cp310-cp310-win32.whl", hash = "sha256:4a33dea2b688b3190ee12bd7cfa29d39c9ed176bda40bfa11099a3ce5d3a7ac6"},
920
+ {file = "MarkupSafe-2.1.1-cp310-cp310-win_amd64.whl", hash = "sha256:dda30ba7e87fbbb7eab1ec9f58678558fd9a6b8b853530e176eabd064da81417"},
921
+ {file = "MarkupSafe-2.1.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:671cd1187ed5e62818414afe79ed29da836dde67166a9fac6d435873c44fdd02"},
922
+ {file = "MarkupSafe-2.1.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3799351e2336dc91ea70b034983ee71cf2f9533cdff7c14c90ea126bfd95d65a"},
923
+ {file = "MarkupSafe-2.1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e72591e9ecd94d7feb70c1cbd7be7b3ebea3f548870aa91e2732960fa4d57a37"},
924
+ {file = "MarkupSafe-2.1.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6fbf47b5d3728c6aea2abb0589b5d30459e369baa772e0f37a0320185e87c980"},
925
+ {file = "MarkupSafe-2.1.1-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:d5ee4f386140395a2c818d149221149c54849dfcfcb9f1debfe07a8b8bd63f9a"},
926
+ {file = "MarkupSafe-2.1.1-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:bcb3ed405ed3222f9904899563d6fc492ff75cce56cba05e32eff40e6acbeaa3"},
927
+ {file = "MarkupSafe-2.1.1-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:e1c0b87e09fa55a220f058d1d49d3fb8df88fbfab58558f1198e08c1e1de842a"},
928
+ {file = "MarkupSafe-2.1.1-cp37-cp37m-win32.whl", hash = "sha256:8dc1c72a69aa7e082593c4a203dcf94ddb74bb5c8a731e4e1eb68d031e8498ff"},
929
+ {file = "MarkupSafe-2.1.1-cp37-cp37m-win_amd64.whl", hash = "sha256:97a68e6ada378df82bc9f16b800ab77cbf4b2fada0081794318520138c088e4a"},
930
+ {file = "MarkupSafe-2.1.1-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:e8c843bbcda3a2f1e3c2ab25913c80a3c5376cd00c6e8c4a86a89a28c8dc5452"},
931
+ {file = "MarkupSafe-2.1.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0212a68688482dc52b2d45013df70d169f542b7394fc744c02a57374a4207003"},
932
+ {file = "MarkupSafe-2.1.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8e576a51ad59e4bfaac456023a78f6b5e6e7651dcd383bcc3e18d06f9b55d6d1"},
933
+ {file = "MarkupSafe-2.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4b9fe39a2ccc108a4accc2676e77da025ce383c108593d65cc909add5c3bd601"},
934
+ {file = "MarkupSafe-2.1.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:96e37a3dc86e80bf81758c152fe66dbf60ed5eca3d26305edf01892257049925"},
935
+ {file = "MarkupSafe-2.1.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:6d0072fea50feec76a4c418096652f2c3238eaa014b2f94aeb1d56a66b41403f"},
936
+ {file = "MarkupSafe-2.1.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:089cf3dbf0cd6c100f02945abeb18484bd1ee57a079aefd52cffd17fba910b88"},
937
+ {file = "MarkupSafe-2.1.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:6a074d34ee7a5ce3effbc526b7083ec9731bb3cbf921bbe1d3005d4d2bdb3a63"},
938
+ {file = "MarkupSafe-2.1.1-cp38-cp38-win32.whl", hash = "sha256:421be9fbf0ffe9ffd7a378aafebbf6f4602d564d34be190fc19a193232fd12b1"},
939
+ {file = "MarkupSafe-2.1.1-cp38-cp38-win_amd64.whl", hash = "sha256:fc7b548b17d238737688817ab67deebb30e8073c95749d55538ed473130ec0c7"},
940
+ {file = "MarkupSafe-2.1.1-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:e04e26803c9c3851c931eac40c695602c6295b8d432cbe78609649ad9bd2da8a"},
941
+ {file = "MarkupSafe-2.1.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:b87db4360013327109564f0e591bd2a3b318547bcef31b468a92ee504d07ae4f"},
942
+ {file = "MarkupSafe-2.1.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:99a2a507ed3ac881b975a2976d59f38c19386d128e7a9a18b7df6fff1fd4c1d6"},
943
+ {file = "MarkupSafe-2.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:56442863ed2b06d19c37f94d999035e15ee982988920e12a5b4ba29b62ad1f77"},
944
+ {file = "MarkupSafe-2.1.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3ce11ee3f23f79dbd06fb3d63e2f6af7b12db1d46932fe7bd8afa259a5996603"},
945
+ {file = "MarkupSafe-2.1.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:33b74d289bd2f5e527beadcaa3f401e0df0a89927c1559c8566c066fa4248ab7"},
946
+ {file = "MarkupSafe-2.1.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:43093fb83d8343aac0b1baa75516da6092f58f41200907ef92448ecab8825135"},
947
+ {file = "MarkupSafe-2.1.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:8e3dcf21f367459434c18e71b2a9532d96547aef8a871872a5bd69a715c15f96"},
948
+ {file = "MarkupSafe-2.1.1-cp39-cp39-win32.whl", hash = "sha256:d4306c36ca495956b6d568d276ac11fdd9c30a36f1b6eb928070dc5360b22e1c"},
949
+ {file = "MarkupSafe-2.1.1-cp39-cp39-win_amd64.whl", hash = "sha256:46d00d6cfecdde84d40e572d63735ef81423ad31184100411e6e3388d405e247"},
950
+ {file = "MarkupSafe-2.1.1.tar.gz", hash = "sha256:7f91197cc9e48f989d12e4e6fbc46495c446636dfc81b9ccf50bb0ec74b91d4b"},
951
+ ]
952
+ mergedeep = [
953
+ {file = "mergedeep-1.3.4-py3-none-any.whl", hash = "sha256:70775750742b25c0d8f36c55aed03d24c3384d17c951b3175d898bd778ef0307"},
954
+ {file = "mergedeep-1.3.4.tar.gz", hash = "sha256:0096d52e9dad9939c3d975a774666af186eda617e6ca84df4c94dec30004f2a8"},
955
+ ]
956
+ mkdocs = []
957
+ mkdocs-autorefs = [
958
+ {file = "mkdocs-autorefs-0.4.1.tar.gz", hash = "sha256:70748a7bd025f9ecd6d6feeba8ba63f8e891a1af55f48e366d6d6e78493aba84"},
959
+ {file = "mkdocs_autorefs-0.4.1-py3-none-any.whl", hash = "sha256:a2248a9501b29dc0cc8ba4c09f4f47ff121945f6ce33d760f145d6f89d313f5b"},
960
+ ]
961
+ mkdocs-material = []
962
+ mkdocs-material-extensions = [
963
+ {file = "mkdocs-material-extensions-1.0.3.tar.gz", hash = "sha256:bfd24dfdef7b41c312ede42648f9eb83476ea168ec163b613f9abd12bbfddba2"},
964
+ {file = "mkdocs_material_extensions-1.0.3-py3-none-any.whl", hash = "sha256:a82b70e533ce060b2a5d9eb2bc2e1be201cf61f901f93704b4acf6e3d5983a44"},
965
+ ]
966
+ mkdocstrings = [
967
+ {file = "mkdocstrings-0.19.0-py3-none-any.whl", hash = "sha256:3217d510d385c961f69385a670b2677e68e07b5fea4a504d86bf54c006c87c7d"},
968
+ {file = "mkdocstrings-0.19.0.tar.gz", hash = "sha256:efa34a67bad11229d532d89f6836a8a215937548623b64f3698a1df62e01cc3e"},
969
+ ]
970
+ mkdocstrings-python = [
971
+ {file = "mkdocstrings-python-0.7.1.tar.gz", hash = "sha256:c334b382dca202dfa37071c182418a6df5818356a95d54362a2b24822ca3af71"},
972
+ {file = "mkdocstrings_python-0.7.1-py3-none-any.whl", hash = "sha256:a22060bfa374697678e9af4e62b020d990dad2711c98f7a9fac5c0345bef93c7"},
973
+ ]
974
+ msgpack = [
975
+ {file = "msgpack-1.0.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:4ab251d229d10498e9a2f3b1e68ef64cb393394ec477e3370c457f9430ce9250"},
976
+ {file = "msgpack-1.0.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:112b0f93202d7c0fef0b7810d465fde23c746a2d482e1e2de2aafd2ce1492c88"},
977
+ {file = "msgpack-1.0.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:002b5c72b6cd9b4bafd790f364b8480e859b4712e91f43014fe01e4f957b8467"},
978
+ {file = "msgpack-1.0.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:35bc0faa494b0f1d851fd29129b2575b2e26d41d177caacd4206d81502d4c6a6"},
979
+ {file = "msgpack-1.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4733359808c56d5d7756628736061c432ded018e7a1dff2d35a02439043321aa"},
980
+ {file = "msgpack-1.0.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eb514ad14edf07a1dbe63761fd30f89ae79b42625731e1ccf5e1f1092950eaa6"},
981
+ {file = "msgpack-1.0.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:c23080fdeec4716aede32b4e0ef7e213c7b1093eede9ee010949f2a418ced6ba"},
982
+ {file = "msgpack-1.0.4-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:49565b0e3d7896d9ea71d9095df15b7f75a035c49be733051c34762ca95bbf7e"},
983
+ {file = "msgpack-1.0.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:aca0f1644d6b5a73eb3e74d4d64d5d8c6c3d577e753a04c9e9c87d07692c58db"},
984
+ {file = "msgpack-1.0.4-cp310-cp310-win32.whl", hash = "sha256:0dfe3947db5fb9ce52aaea6ca28112a170db9eae75adf9339a1aec434dc954ef"},
985
+ {file = "msgpack-1.0.4-cp310-cp310-win_amd64.whl", hash = "sha256:4dea20515f660aa6b7e964433b1808d098dcfcabbebeaaad240d11f909298075"},
986
+ {file = "msgpack-1.0.4-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:e83f80a7fec1a62cf4e6c9a660e39c7f878f603737a0cdac8c13131d11d97f52"},
987
+ {file = "msgpack-1.0.4-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3c11a48cf5e59026ad7cb0dc29e29a01b5a66a3e333dc11c04f7e991fc5510a9"},
988
+ {file = "msgpack-1.0.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1276e8f34e139aeff1c77a3cefb295598b504ac5314d32c8c3d54d24fadb94c9"},
989
+ {file = "msgpack-1.0.4-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6c9566f2c39ccced0a38d37c26cc3570983b97833c365a6044edef3574a00c08"},
990
+ {file = "msgpack-1.0.4-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:fcb8a47f43acc113e24e910399376f7277cf8508b27e5b88499f053de6b115a8"},
991
+ {file = "msgpack-1.0.4-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:76ee788122de3a68a02ed6f3a16bbcd97bc7c2e39bd4d94be2f1821e7c4a64e6"},
992
+ {file = "msgpack-1.0.4-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:0a68d3ac0104e2d3510de90a1091720157c319ceeb90d74f7b5295a6bee51bae"},
993
+ {file = "msgpack-1.0.4-cp36-cp36m-win32.whl", hash = "sha256:85f279d88d8e833ec015650fd15ae5eddce0791e1e8a59165318f371158efec6"},
994
+ {file = "msgpack-1.0.4-cp36-cp36m-win_amd64.whl", hash = "sha256:c1683841cd4fa45ac427c18854c3ec3cd9b681694caf5bff04edb9387602d661"},
995
+ {file = "msgpack-1.0.4-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:a75dfb03f8b06f4ab093dafe3ddcc2d633259e6c3f74bb1b01996f5d8aa5868c"},
996
+ {file = "msgpack-1.0.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9667bdfdf523c40d2511f0e98a6c9d3603be6b371ae9a238b7ef2dc4e7a427b0"},
997
+ {file = "msgpack-1.0.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:11184bc7e56fd74c00ead4f9cc9a3091d62ecb96e97653add7a879a14b003227"},
998
+ {file = "msgpack-1.0.4-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ac5bd7901487c4a1dd51a8c58f2632b15d838d07ceedaa5e4c080f7190925bff"},
999
+ {file = "msgpack-1.0.4-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:1e91d641d2bfe91ba4c52039adc5bccf27c335356055825c7f88742c8bb900dd"},
1000
+ {file = "msgpack-1.0.4-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:2a2df1b55a78eb5f5b7d2a4bb221cd8363913830145fad05374a80bf0877cb1e"},
1001
+ {file = "msgpack-1.0.4-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:545e3cf0cf74f3e48b470f68ed19551ae6f9722814ea969305794645da091236"},
1002
+ {file = "msgpack-1.0.4-cp37-cp37m-win32.whl", hash = "sha256:2cc5ca2712ac0003bcb625c96368fd08a0f86bbc1a5578802512d87bc592fe44"},
1003
+ {file = "msgpack-1.0.4-cp37-cp37m-win_amd64.whl", hash = "sha256:eba96145051ccec0ec86611fe9cf693ce55f2a3ce89c06ed307de0e085730ec1"},
1004
+ {file = "msgpack-1.0.4-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:7760f85956c415578c17edb39eed99f9181a48375b0d4a94076d84148cf67b2d"},
1005
+ {file = "msgpack-1.0.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:449e57cc1ff18d3b444eb554e44613cffcccb32805d16726a5494038c3b93dab"},
1006
+ {file = "msgpack-1.0.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:d603de2b8d2ea3f3bcb2efe286849aa7a81531abc52d8454da12f46235092bcb"},
1007
+ {file = "msgpack-1.0.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:48f5d88c99f64c456413d74a975bd605a9b0526293218a3b77220a2c15458ba9"},
1008
+ {file = "msgpack-1.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6916c78f33602ecf0509cc40379271ba0f9ab572b066bd4bdafd7434dee4bc6e"},
1009
+ {file = "msgpack-1.0.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:81fc7ba725464651190b196f3cd848e8553d4d510114a954681fd0b9c479d7e1"},
1010
+ {file = "msgpack-1.0.4-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:d5b5b962221fa2c5d3a7f8133f9abffc114fe218eb4365e40f17732ade576c8e"},
1011
+ {file = "msgpack-1.0.4-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:77ccd2af37f3db0ea59fb280fa2165bf1b096510ba9fe0cc2bf8fa92a22fdb43"},
1012
+ {file = "msgpack-1.0.4-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:b17be2478b622939e39b816e0aa8242611cc8d3583d1cd8ec31b249f04623243"},
1013
+ {file = "msgpack-1.0.4-cp38-cp38-win32.whl", hash = "sha256:2bb8cdf50dd623392fa75525cce44a65a12a00c98e1e37bf0fb08ddce2ff60d2"},
1014
+ {file = "msgpack-1.0.4-cp38-cp38-win_amd64.whl", hash = "sha256:26b8feaca40a90cbe031b03d82b2898bf560027160d3eae1423f4a67654ec5d6"},
1015
+ {file = "msgpack-1.0.4-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:462497af5fd4e0edbb1559c352ad84f6c577ffbbb708566a0abaaa84acd9f3ae"},
1016
+ {file = "msgpack-1.0.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:2999623886c5c02deefe156e8f869c3b0aaeba14bfc50aa2486a0415178fce55"},
1017
+ {file = "msgpack-1.0.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f0029245c51fd9473dc1aede1160b0a29f4a912e6b1dd353fa6d317085b219da"},
1018
+ {file = "msgpack-1.0.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ed6f7b854a823ea44cf94919ba3f727e230da29feb4a99711433f25800cf747f"},
1019
+ {file = "msgpack-1.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0df96d6eaf45ceca04b3f3b4b111b86b33785683d682c655063ef8057d61fd92"},
1020
+ {file = "msgpack-1.0.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6a4192b1ab40f8dca3f2877b70e63799d95c62c068c84dc028b40a6cb03ccd0f"},
1021
+ {file = "msgpack-1.0.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:0e3590f9fb9f7fbc36df366267870e77269c03172d086fa76bb4eba8b2b46624"},
1022
+ {file = "msgpack-1.0.4-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:1576bd97527a93c44fa856770197dec00d223b0b9f36ef03f65bac60197cedf8"},
1023
+ {file = "msgpack-1.0.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:63e29d6e8c9ca22b21846234913c3466b7e4ee6e422f205a2988083de3b08cae"},
1024
+ {file = "msgpack-1.0.4-cp39-cp39-win32.whl", hash = "sha256:fb62ea4b62bfcb0b380d5680f9a4b3f9a2d166d9394e9bbd9666c0ee09a3645c"},
1025
+ {file = "msgpack-1.0.4-cp39-cp39-win_amd64.whl", hash = "sha256:4d5834a2a48965a349da1c5a79760d94a1a0172fbb5ab6b5b33cbf8447e109ce"},
1026
+ {file = "msgpack-1.0.4.tar.gz", hash = "sha256:f5d869c18f030202eb412f08b28d2afeea553d6613aee89e200d7aca7ef01f5f"},
1027
+ ]
1028
+ multidict = [
1029
+ {file = "multidict-6.0.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:0b9e95a740109c6047602f4db4da9949e6c5945cefbad34a1299775ddc9a62e2"},
1030
+ {file = "multidict-6.0.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:ac0e27844758d7177989ce406acc6a83c16ed4524ebc363c1f748cba184d89d3"},
1031
+ {file = "multidict-6.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:041b81a5f6b38244b34dc18c7b6aba91f9cdaf854d9a39e5ff0b58e2b5773b9c"},
1032
+ {file = "multidict-6.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5fdda29a3c7e76a064f2477c9aab1ba96fd94e02e386f1e665bca1807fc5386f"},
1033
+ {file = "multidict-6.0.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3368bf2398b0e0fcbf46d85795adc4c259299fec50c1416d0f77c0a843a3eed9"},
1034
+ {file = "multidict-6.0.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f4f052ee022928d34fe1f4d2bc743f32609fb79ed9c49a1710a5ad6b2198db20"},
1035
+ {file = "multidict-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:225383a6603c086e6cef0f2f05564acb4f4d5f019a4e3e983f572b8530f70c88"},
1036
+ {file = "multidict-6.0.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:50bd442726e288e884f7be9071016c15a8742eb689a593a0cac49ea093eef0a7"},
1037
+ {file = "multidict-6.0.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:47e6a7e923e9cada7c139531feac59448f1f47727a79076c0b1ee80274cd8eee"},
1038
+ {file = "multidict-6.0.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:0556a1d4ea2d949efe5fd76a09b4a82e3a4a30700553a6725535098d8d9fb672"},
1039
+ {file = "multidict-6.0.2-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:626fe10ac87851f4cffecee161fc6f8f9853f0f6f1035b59337a51d29ff3b4f9"},
1040
+ {file = "multidict-6.0.2-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:8064b7c6f0af936a741ea1efd18690bacfbae4078c0c385d7c3f611d11f0cf87"},
1041
+ {file = "multidict-6.0.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:2d36e929d7f6a16d4eb11b250719c39560dd70545356365b494249e2186bc389"},
1042
+ {file = "multidict-6.0.2-cp310-cp310-win32.whl", hash = "sha256:fcb91630817aa8b9bc4a74023e4198480587269c272c58b3279875ed7235c293"},
1043
+ {file = "multidict-6.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:8cbf0132f3de7cc6c6ce00147cc78e6439ea736cee6bca4f068bcf892b0fd658"},
1044
+ {file = "multidict-6.0.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:05f6949d6169878a03e607a21e3b862eaf8e356590e8bdae4227eedadacf6e51"},
1045
+ {file = "multidict-6.0.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e2c2e459f7050aeb7c1b1276763364884595d47000c1cddb51764c0d8976e608"},
1046
+ {file = "multidict-6.0.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d0509e469d48940147e1235d994cd849a8f8195e0bca65f8f5439c56e17872a3"},
1047
+ {file = "multidict-6.0.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:514fe2b8d750d6cdb4712346a2c5084a80220821a3e91f3f71eec11cf8d28fd4"},
1048
+ {file = "multidict-6.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:19adcfc2a7197cdc3987044e3f415168fc5dc1f720c932eb1ef4f71a2067e08b"},
1049
+ {file = "multidict-6.0.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b9d153e7f1f9ba0b23ad1568b3b9e17301e23b042c23870f9ee0522dc5cc79e8"},
1050
+ {file = "multidict-6.0.2-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:aef9cc3d9c7d63d924adac329c33835e0243b5052a6dfcbf7732a921c6e918ba"},
1051
+ {file = "multidict-6.0.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:4571f1beddff25f3e925eea34268422622963cd8dc395bb8778eb28418248e43"},
1052
+ {file = "multidict-6.0.2-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:d48b8ee1d4068561ce8033d2c344cf5232cb29ee1a0206a7b828c79cbc5982b8"},
1053
+ {file = "multidict-6.0.2-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:45183c96ddf61bf96d2684d9fbaf6f3564d86b34cb125761f9a0ef9e36c1d55b"},
1054
+ {file = "multidict-6.0.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:75bdf08716edde767b09e76829db8c1e5ca9d8bb0a8d4bd94ae1eafe3dac5e15"},
1055
+ {file = "multidict-6.0.2-cp37-cp37m-win32.whl", hash = "sha256:a45e1135cb07086833ce969555df39149680e5471c04dfd6a915abd2fc3f6dbc"},
1056
+ {file = "multidict-6.0.2-cp37-cp37m-win_amd64.whl", hash = "sha256:6f3cdef8a247d1eafa649085812f8a310e728bdf3900ff6c434eafb2d443b23a"},
1057
+ {file = "multidict-6.0.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:0327292e745a880459ef71be14e709aaea2f783f3537588fb4ed09b6c01bca60"},
1058
+ {file = "multidict-6.0.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:e875b6086e325bab7e680e4316d667fc0e5e174bb5611eb16b3ea121c8951b86"},
1059
+ {file = "multidict-6.0.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:feea820722e69451743a3d56ad74948b68bf456984d63c1a92e8347b7b88452d"},
1060
+ {file = "multidict-6.0.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9cc57c68cb9139c7cd6fc39f211b02198e69fb90ce4bc4a094cf5fe0d20fd8b0"},
1061
+ {file = "multidict-6.0.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:497988d6b6ec6ed6f87030ec03280b696ca47dbf0648045e4e1d28b80346560d"},
1062
+ {file = "multidict-6.0.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:89171b2c769e03a953d5969b2f272efa931426355b6c0cb508022976a17fd376"},
1063
+ {file = "multidict-6.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:684133b1e1fe91eda8fa7447f137c9490a064c6b7f392aa857bba83a28cfb693"},
1064
+ {file = "multidict-6.0.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fd9fc9c4849a07f3635ccffa895d57abce554b467d611a5009ba4f39b78a8849"},
1065
+ {file = "multidict-6.0.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:e07c8e79d6e6fd37b42f3250dba122053fddb319e84b55dd3a8d6446e1a7ee49"},
1066
+ {file = "multidict-6.0.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:4070613ea2227da2bfb2c35a6041e4371b0af6b0be57f424fe2318b42a748516"},
1067
+ {file = "multidict-6.0.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:47fbeedbf94bed6547d3aa632075d804867a352d86688c04e606971595460227"},
1068
+ {file = "multidict-6.0.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:5774d9218d77befa7b70d836004a768fb9aa4fdb53c97498f4d8d3f67bb9cfa9"},
1069
+ {file = "multidict-6.0.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:2957489cba47c2539a8eb7ab32ff49101439ccf78eab724c828c1a54ff3ff98d"},
1070
+ {file = "multidict-6.0.2-cp38-cp38-win32.whl", hash = "sha256:e5b20e9599ba74391ca0cfbd7b328fcc20976823ba19bc573983a25b32e92b57"},
1071
+ {file = "multidict-6.0.2-cp38-cp38-win_amd64.whl", hash = "sha256:8004dca28e15b86d1b1372515f32eb6f814bdf6f00952699bdeb541691091f96"},
1072
+ {file = "multidict-6.0.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:2e4a0785b84fb59e43c18a015ffc575ba93f7d1dbd272b4cdad9f5134b8a006c"},
1073
+ {file = "multidict-6.0.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:6701bf8a5d03a43375909ac91b6980aea74b0f5402fbe9428fc3f6edf5d9677e"},
1074
+ {file = "multidict-6.0.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a007b1638e148c3cfb6bf0bdc4f82776cef0ac487191d093cdc316905e504071"},
1075
+ {file = "multidict-6.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:07a017cfa00c9890011628eab2503bee5872f27144936a52eaab449be5eaf032"},
1076
+ {file = "multidict-6.0.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c207fff63adcdf5a485969131dc70e4b194327666b7e8a87a97fbc4fd80a53b2"},
1077
+ {file = "multidict-6.0.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:373ba9d1d061c76462d74e7de1c0c8e267e9791ee8cfefcf6b0b2495762c370c"},
1078
+ {file = "multidict-6.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bfba7c6d5d7c9099ba21f84662b037a0ffd4a5e6b26ac07d19e423e6fdf965a9"},
1079
+ {file = "multidict-6.0.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:19d9bad105dfb34eb539c97b132057a4e709919ec4dd883ece5838bcbf262b80"},
1080
+ {file = "multidict-6.0.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:de989b195c3d636ba000ee4281cd03bb1234635b124bf4cd89eeee9ca8fcb09d"},
1081
+ {file = "multidict-6.0.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:7c40b7bbece294ae3a87c1bc2abff0ff9beef41d14188cda94ada7bcea99b0fb"},
1082
+ {file = "multidict-6.0.2-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:d16cce709ebfadc91278a1c005e3c17dd5f71f5098bfae1035149785ea6e9c68"},
1083
+ {file = "multidict-6.0.2-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:a2c34a93e1d2aa35fbf1485e5010337c72c6791407d03aa5f4eed920343dd360"},
1084
+ {file = "multidict-6.0.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:feba80698173761cddd814fa22e88b0661e98cb810f9f986c54aa34d281e4937"},
1085
+ {file = "multidict-6.0.2-cp39-cp39-win32.whl", hash = "sha256:23b616fdc3c74c9fe01d76ce0d1ce872d2d396d8fa8e4899398ad64fb5aa214a"},
1086
+ {file = "multidict-6.0.2-cp39-cp39-win_amd64.whl", hash = "sha256:4bae31803d708f6f15fd98be6a6ac0b6958fcf68fda3c77a048a4f9073704aae"},
1087
+ {file = "multidict-6.0.2.tar.gz", hash = "sha256:5ff3bd75f38e4c43f1f470f2df7a4d430b821c4ce22be384e1459cb57d6bb013"},
1088
+ ]
1089
+ mypy = []
1090
+ mypy-extensions = [
1091
+ {file = "mypy_extensions-0.4.3-py2.py3-none-any.whl", hash = "sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d"},
1092
+ {file = "mypy_extensions-0.4.3.tar.gz", hash = "sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8"},
1093
+ ]
1094
+ nanoid = []
1095
+ nodeenv = [
1096
+ {file = "nodeenv-1.7.0-py2.py3-none-any.whl", hash = "sha256:27083a7b96a25f2f5e1d8cb4b6317ee8aeda3bdd121394e5ac54e498028a042e"},
1097
+ {file = "nodeenv-1.7.0.tar.gz", hash = "sha256:e0e7f7dfb85fc5394c6fe1e8fa98131a2473e04311a45afb6508f7cf1836fa2b"},
1098
+ ]
1099
+ packaging = [
1100
+ {file = "packaging-21.3-py3-none-any.whl", hash = "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522"},
1101
+ {file = "packaging-21.3.tar.gz", hash = "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb"},
1102
+ ]
1103
+ pathspec = []
1104
+ platformdirs = [
1105
+ {file = "platformdirs-2.5.2-py3-none-any.whl", hash = "sha256:027d8e83a2d7de06bbac4e5ef7e023c02b863d7ea5d079477e722bb41ab25788"},
1106
+ {file = "platformdirs-2.5.2.tar.gz", hash = "sha256:58c8abb07dcb441e6ee4b11d8df0ac856038f944ab98b7be6b27b2a3c7feef19"},
1107
+ ]
1108
+ pluggy = [
1109
+ {file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"},
1110
+ {file = "pluggy-1.0.0.tar.gz", hash = "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"},
1111
+ ]
1112
+ pre-commit = []
1113
+ py = [
1114
+ {file = "py-1.11.0-py2.py3-none-any.whl", hash = "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378"},
1115
+ {file = "py-1.11.0.tar.gz", hash = "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719"},
1116
+ ]
1117
+ pygments = []
1118
+ pymdown-extensions = []
1119
+ pyparsing = [
1120
+ {file = "pyparsing-3.0.9-py3-none-any.whl", hash = "sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc"},
1121
+ {file = "pyparsing-3.0.9.tar.gz", hash = "sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb"},
1122
+ ]
1123
+ pytest = []
1124
+ pytest-aiohttp = [
1125
+ {file = "pytest-aiohttp-1.0.4.tar.gz", hash = "sha256:39ff3a0d15484c01d1436cbedad575c6eafbf0f57cdf76fb94994c97b5b8c5a4"},
1126
+ {file = "pytest_aiohttp-1.0.4-py3-none-any.whl", hash = "sha256:1d2dc3a304c2be1fd496c0c2fb6b31ab60cd9fc33984f761f951f8ea1eb4ca95"},
1127
+ ]
1128
+ pytest-asyncio = []
1129
+ pytest-cov = [
1130
+ {file = "pytest-cov-2.12.1.tar.gz", hash = "sha256:261ceeb8c227b726249b376b8526b600f38667ee314f910353fa318caa01f4d7"},
1131
+ {file = "pytest_cov-2.12.1-py2.py3-none-any.whl", hash = "sha256:261bb9e47e65bd099c89c3edf92972865210c36813f80ede5277dceb77a4a62a"},
1132
+ ]
1133
+ python-dateutil = [
1134
+ {file = "python-dateutil-2.8.2.tar.gz", hash = "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"},
1135
+ {file = "python_dateutil-2.8.2-py2.py3-none-any.whl", hash = "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9"},
1136
+ ]
1137
+ pyyaml = [
1138
+ {file = "PyYAML-6.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d4db7c7aef085872ef65a8fd7d6d09a14ae91f691dec3e87ee5ee0539d516f53"},
1139
+ {file = "PyYAML-6.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9df7ed3b3d2e0ecfe09e14741b857df43adb5a3ddadc919a2d94fbdf78fea53c"},
1140
+ {file = "PyYAML-6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:77f396e6ef4c73fdc33a9157446466f1cff553d979bd00ecb64385760c6babdc"},
1141
+ {file = "PyYAML-6.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a80a78046a72361de73f8f395f1f1e49f956c6be882eed58505a15f3e430962b"},
1142
+ {file = "PyYAML-6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f84fbc98b019fef2ee9a1cb3ce93e3187a6df0b2538a651bfb890254ba9f90b5"},
1143
+ {file = "PyYAML-6.0-cp310-cp310-win32.whl", hash = "sha256:2cd5df3de48857ed0544b34e2d40e9fac445930039f3cfe4bcc592a1f836d513"},
1144
+ {file = "PyYAML-6.0-cp310-cp310-win_amd64.whl", hash = "sha256:daf496c58a8c52083df09b80c860005194014c3698698d1a57cbcfa182142a3a"},
1145
+ {file = "PyYAML-6.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:897b80890765f037df3403d22bab41627ca8811ae55e9a722fd0392850ec4d86"},
1146
+ {file = "PyYAML-6.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:50602afada6d6cbfad699b0c7bb50d5ccffa7e46a3d738092afddc1f9758427f"},
1147
+ {file = "PyYAML-6.0-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:48c346915c114f5fdb3ead70312bd042a953a8ce5c7106d5bfb1a5254e47da92"},
1148
+ {file = "PyYAML-6.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:98c4d36e99714e55cfbaaee6dd5badbc9a1ec339ebfc3b1f52e293aee6bb71a4"},
1149
+ {file = "PyYAML-6.0-cp36-cp36m-win32.whl", hash = "sha256:0283c35a6a9fbf047493e3a0ce8d79ef5030852c51e9d911a27badfde0605293"},
1150
+ {file = "PyYAML-6.0-cp36-cp36m-win_amd64.whl", hash = "sha256:07751360502caac1c067a8132d150cf3d61339af5691fe9e87803040dbc5db57"},
1151
+ {file = "PyYAML-6.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:819b3830a1543db06c4d4b865e70ded25be52a2e0631ccd2f6a47a2822f2fd7c"},
1152
+ {file = "PyYAML-6.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:473f9edb243cb1935ab5a084eb238d842fb8f404ed2193a915d1784b5a6b5fc0"},
1153
+ {file = "PyYAML-6.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0ce82d761c532fe4ec3f87fc45688bdd3a4c1dc5e0b4a19814b9009a29baefd4"},
1154
+ {file = "PyYAML-6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:231710d57adfd809ef5d34183b8ed1eeae3f76459c18fb4a0b373ad56bedcdd9"},
1155
+ {file = "PyYAML-6.0-cp37-cp37m-win32.whl", hash = "sha256:c5687b8d43cf58545ade1fe3e055f70eac7a5a1a0bf42824308d868289a95737"},
1156
+ {file = "PyYAML-6.0-cp37-cp37m-win_amd64.whl", hash = "sha256:d15a181d1ecd0d4270dc32edb46f7cb7733c7c508857278d3d378d14d606db2d"},
1157
+ {file = "PyYAML-6.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0b4624f379dab24d3725ffde76559cff63d9ec94e1736b556dacdfebe5ab6d4b"},
1158
+ {file = "PyYAML-6.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:213c60cd50106436cc818accf5baa1aba61c0189ff610f64f4a3e8c6726218ba"},
1159
+ {file = "PyYAML-6.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9fa600030013c4de8165339db93d182b9431076eb98eb40ee068700c9c813e34"},
1160
+ {file = "PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:277a0ef2981ca40581a47093e9e2d13b3f1fbbeffae064c1d21bfceba2030287"},
1161
+ {file = "PyYAML-6.0-cp38-cp38-win32.whl", hash = "sha256:d4eccecf9adf6fbcc6861a38015c2a64f38b9d94838ac1810a9023a0609e1b78"},
1162
+ {file = "PyYAML-6.0-cp38-cp38-win_amd64.whl", hash = "sha256:1e4747bc279b4f613a09eb64bba2ba602d8a6664c6ce6396a4d0cd413a50ce07"},
1163
+ {file = "PyYAML-6.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:055d937d65826939cb044fc8c9b08889e8c743fdc6a32b33e2390f66013e449b"},
1164
+ {file = "PyYAML-6.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:e61ceaab6f49fb8bdfaa0f92c4b57bcfbea54c09277b1b4f7ac376bfb7a7c174"},
1165
+ {file = "PyYAML-6.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d67d839ede4ed1b28a4e8909735fc992a923cdb84e618544973d7dfc71540803"},
1166
+ {file = "PyYAML-6.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cba8c411ef271aa037d7357a2bc8f9ee8b58b9965831d9e51baf703280dc73d3"},
1167
+ {file = "PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:40527857252b61eacd1d9af500c3337ba8deb8fc298940291486c465c8b46ec0"},
1168
+ {file = "PyYAML-6.0-cp39-cp39-win32.whl", hash = "sha256:b5b9eccad747aabaaffbc6064800670f0c297e52c12754eb1d976c57e4f74dcb"},
1169
+ {file = "PyYAML-6.0-cp39-cp39-win_amd64.whl", hash = "sha256:b3d267842bf12586ba6c734f89d1f5b871df0273157918b0ccefa29deb05c21c"},
1170
+ {file = "PyYAML-6.0.tar.gz", hash = "sha256:68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2"},
1171
+ ]
1172
+ pyyaml-env-tag = [
1173
+ {file = "pyyaml_env_tag-0.1-py3-none-any.whl", hash = "sha256:af31106dec8a4d68c60207c1886031cbf839b68aa7abccdb19868200532c2069"},
1174
+ {file = "pyyaml_env_tag-0.1.tar.gz", hash = "sha256:70092675bda14fdec33b31ba77e7543de9ddc88f2e5b99160396572d11525bdb"},
1175
+ ]
1176
+ requests = []
1177
+ rich = []
1178
+ six = [
1179
+ {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"},
1180
+ {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"},
1181
+ ]
1182
+ syrupy = []
1183
+ time-machine = []
1184
+ toml = [
1185
+ {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"},
1186
+ {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"},
1187
+ ]
1188
+ tomli = [
1189
+ {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"},
1190
+ {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},
1191
+ ]
1192
+ typed-ast = [
1193
+ {file = "typed_ast-1.5.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:669dd0c4167f6f2cd9f57041e03c3c2ebf9063d0757dc89f79ba1daa2bfca9d4"},
1194
+ {file = "typed_ast-1.5.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:211260621ab1cd7324e0798d6be953d00b74e0428382991adfddb352252f1d62"},
1195
+ {file = "typed_ast-1.5.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:267e3f78697a6c00c689c03db4876dd1efdfea2f251a5ad6555e82a26847b4ac"},
1196
+ {file = "typed_ast-1.5.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:c542eeda69212fa10a7ada75e668876fdec5f856cd3d06829e6aa64ad17c8dfe"},
1197
+ {file = "typed_ast-1.5.4-cp310-cp310-win_amd64.whl", hash = "sha256:a9916d2bb8865f973824fb47436fa45e1ebf2efd920f2b9f99342cb7fab93f72"},
1198
+ {file = "typed_ast-1.5.4-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:79b1e0869db7c830ba6a981d58711c88b6677506e648496b1f64ac7d15633aec"},
1199
+ {file = "typed_ast-1.5.4-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a94d55d142c9265f4ea46fab70977a1944ecae359ae867397757d836ea5a3f47"},
1200
+ {file = "typed_ast-1.5.4-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:183afdf0ec5b1b211724dfef3d2cad2d767cbefac291f24d69b00546c1837fb6"},
1201
+ {file = "typed_ast-1.5.4-cp36-cp36m-win_amd64.whl", hash = "sha256:639c5f0b21776605dd6c9dbe592d5228f021404dafd377e2b7ac046b0349b1a1"},
1202
+ {file = "typed_ast-1.5.4-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:cf4afcfac006ece570e32d6fa90ab74a17245b83dfd6655a6f68568098345ff6"},
1203
+ {file = "typed_ast-1.5.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ed855bbe3eb3715fca349c80174cfcfd699c2f9de574d40527b8429acae23a66"},
1204
+ {file = "typed_ast-1.5.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:6778e1b2f81dfc7bc58e4b259363b83d2e509a65198e85d5700dfae4c6c8ff1c"},
1205
+ {file = "typed_ast-1.5.4-cp37-cp37m-win_amd64.whl", hash = "sha256:0261195c2062caf107831e92a76764c81227dae162c4f75192c0d489faf751a2"},
1206
+ {file = "typed_ast-1.5.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:2efae9db7a8c05ad5547d522e7dbe62c83d838d3906a3716d1478b6c1d61388d"},
1207
+ {file = "typed_ast-1.5.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:7d5d014b7daa8b0bf2eaef684295acae12b036d79f54178b92a2b6a56f92278f"},
1208
+ {file = "typed_ast-1.5.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:370788a63915e82fd6f212865a596a0fefcbb7d408bbbb13dea723d971ed8bdc"},
1209
+ {file = "typed_ast-1.5.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:4e964b4ff86550a7a7d56345c7864b18f403f5bd7380edf44a3c1fb4ee7ac6c6"},
1210
+ {file = "typed_ast-1.5.4-cp38-cp38-win_amd64.whl", hash = "sha256:683407d92dc953c8a7347119596f0b0e6c55eb98ebebd9b23437501b28dcbb8e"},
1211
+ {file = "typed_ast-1.5.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:4879da6c9b73443f97e731b617184a596ac1235fe91f98d279a7af36c796da35"},
1212
+ {file = "typed_ast-1.5.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:3e123d878ba170397916557d31c8f589951e353cc95fb7f24f6bb69adc1a8a97"},
1213
+ {file = "typed_ast-1.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ebd9d7f80ccf7a82ac5f88c521115cc55d84e35bf8b446fcd7836eb6b98929a3"},
1214
+ {file = "typed_ast-1.5.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:98f80dee3c03455e92796b58b98ff6ca0b2a6f652120c263efdba4d6c5e58f72"},
1215
+ {file = "typed_ast-1.5.4-cp39-cp39-win_amd64.whl", hash = "sha256:0fdbcf2fef0ca421a3f5912555804296f0b0960f0418c440f5d6d3abb549f3e1"},
1216
+ {file = "typed_ast-1.5.4.tar.gz", hash = "sha256:39e21ceb7388e4bb37f4c679d72707ed46c2fbf2a5609b8b8ebc4b067d977df2"},
1217
+ ]
1218
+ typing-extensions = []
1219
+ urllib3 = []
1220
+ virtualenv = []
1221
+ watchdog = [
1222
+ {file = "watchdog-2.1.9-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:a735a990a1095f75ca4f36ea2ef2752c99e6ee997c46b0de507ba40a09bf7330"},
1223
+ {file = "watchdog-2.1.9-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:6b17d302850c8d412784d9246cfe8d7e3af6bcd45f958abb2d08a6f8bedf695d"},
1224
+ {file = "watchdog-2.1.9-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ee3e38a6cc050a8830089f79cbec8a3878ec2fe5160cdb2dc8ccb6def8552658"},
1225
+ {file = "watchdog-2.1.9-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:64a27aed691408a6abd83394b38503e8176f69031ca25d64131d8d640a307591"},
1226
+ {file = "watchdog-2.1.9-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:195fc70c6e41237362ba720e9aaf394f8178bfc7fa68207f112d108edef1af33"},
1227
+ {file = "watchdog-2.1.9-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:bfc4d351e6348d6ec51df007432e6fe80adb53fd41183716017026af03427846"},
1228
+ {file = "watchdog-2.1.9-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:8250546a98388cbc00c3ee3cc5cf96799b5a595270dfcfa855491a64b86ef8c3"},
1229
+ {file = "watchdog-2.1.9-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:117ffc6ec261639a0209a3252546b12800670d4bf5f84fbd355957a0595fe654"},
1230
+ {file = "watchdog-2.1.9-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:97f9752208f5154e9e7b76acc8c4f5a58801b338de2af14e7e181ee3b28a5d39"},
1231
+ {file = "watchdog-2.1.9-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:247dcf1df956daa24828bfea5a138d0e7a7c98b1a47cf1fa5b0c3c16241fcbb7"},
1232
+ {file = "watchdog-2.1.9-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:226b3c6c468ce72051a4c15a4cc2ef317c32590d82ba0b330403cafd98a62cfd"},
1233
+ {file = "watchdog-2.1.9-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:d9820fe47c20c13e3c9dd544d3706a2a26c02b2b43c993b62fcd8011bcc0adb3"},
1234
+ {file = "watchdog-2.1.9-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:70af927aa1613ded6a68089a9262a009fbdf819f46d09c1a908d4b36e1ba2b2d"},
1235
+ {file = "watchdog-2.1.9-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:ed80a1628cee19f5cfc6bb74e173f1b4189eb532e705e2a13e3250312a62e0c9"},
1236
+ {file = "watchdog-2.1.9-py3-none-manylinux2014_aarch64.whl", hash = "sha256:9f05a5f7c12452f6a27203f76779ae3f46fa30f1dd833037ea8cbc2887c60213"},
1237
+ {file = "watchdog-2.1.9-py3-none-manylinux2014_armv7l.whl", hash = "sha256:255bb5758f7e89b1a13c05a5bceccec2219f8995a3a4c4d6968fe1de6a3b2892"},
1238
+ {file = "watchdog-2.1.9-py3-none-manylinux2014_i686.whl", hash = "sha256:d3dda00aca282b26194bdd0adec21e4c21e916956d972369359ba63ade616153"},
1239
+ {file = "watchdog-2.1.9-py3-none-manylinux2014_ppc64.whl", hash = "sha256:186f6c55abc5e03872ae14c2f294a153ec7292f807af99f57611acc8caa75306"},
1240
+ {file = "watchdog-2.1.9-py3-none-manylinux2014_ppc64le.whl", hash = "sha256:083171652584e1b8829581f965b9b7723ca5f9a2cd7e20271edf264cfd7c1412"},
1241
+ {file = "watchdog-2.1.9-py3-none-manylinux2014_s390x.whl", hash = "sha256:b530ae007a5f5d50b7fbba96634c7ee21abec70dc3e7f0233339c81943848dc1"},
1242
+ {file = "watchdog-2.1.9-py3-none-manylinux2014_x86_64.whl", hash = "sha256:4f4e1c4aa54fb86316a62a87b3378c025e228178d55481d30d857c6c438897d6"},
1243
+ {file = "watchdog-2.1.9-py3-none-win32.whl", hash = "sha256:5952135968519e2447a01875a6f5fc8c03190b24d14ee52b0f4b1682259520b1"},
1244
+ {file = "watchdog-2.1.9-py3-none-win_amd64.whl", hash = "sha256:7a833211f49143c3d336729b0020ffd1274078e94b0ae42e22f596999f50279c"},
1245
+ {file = "watchdog-2.1.9-py3-none-win_ia64.whl", hash = "sha256:ad576a565260d8f99d97f2e64b0f97a48228317095908568a9d5c786c829d428"},
1246
+ {file = "watchdog-2.1.9.tar.gz", hash = "sha256:43ce20ebb36a51f21fa376f76d1d4692452b2527ccd601950d69ed36b9e21609"},
1247
+ ]
1248
+ yarl = []
1249
+ zipp = []
testbed/Textualize__textual/pyproject.toml ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [tool.poetry]
2
+ name = "textual"
3
+ version = "0.2.0b5"
4
+ homepage = "https://github.com/Textualize/textual"
5
+ description = "Modern Text User Interface framework"
6
+ authors = ["Will McGugan <will@textualize.io>"]
7
+ license = "MIT"
8
+ readme = "README.md"
9
+ classifiers = [
10
+ "Development Status :: 1 - Planning",
11
+ "Environment :: Console",
12
+ "Intended Audience :: Developers",
13
+ "Operating System :: MacOS",
14
+ "Operating System :: POSIX :: Linux",
15
+ "Programming Language :: Python :: 3.7",
16
+ "Programming Language :: Python :: 3.8",
17
+ "Programming Language :: Python :: 3.9",
18
+ "Programming Language :: Python :: 3.10",
19
+ "Typing :: Typed",
20
+ ]
21
+ include = [
22
+ "src/textual/py.typed"
23
+ ]
24
+
25
+ [tool.poetry.scripts]
26
+ textual = "textual.cli.cli:run"
27
+
28
+ [tool.poetry.dependencies]
29
+ python = "^3.7"
30
+ rich = "^12.6.0"
31
+ #rich = {path="../rich", develop=true}
32
+ importlib-metadata = "^4.11.3"
33
+ typing-extensions = { version = "^4.0.0", python = "<3.10" }
34
+
35
+ # Dependencies below are required for devtools only
36
+ aiohttp = { version = "^3.8.1", optional = true }
37
+ click = {version = "8.1.2", optional = true}
38
+ msgpack = { version = "^1.0.3", optional = true }
39
+ nanoid = "^2.0.0"
40
+
41
+ [tool.poetry.extras]
42
+ dev = ["aiohttp", "click", "msgpack"]
43
+
44
+ [tool.poetry.dev-dependencies]
45
+ pytest = "^7.1.3"
46
+ black = "^22.3.0"
47
+ mypy = "^0.982"
48
+ pytest-cov = "^2.12.1"
49
+ mkdocs = "^1.3.0"
50
+ mkdocstrings = {extras = ["python"], version = "^0.19.0"}
51
+ mkdocs-material = "^8.2.15"
52
+ pre-commit = "^2.13.0"
53
+ pytest-aiohttp = "^1.0.4"
54
+ time-machine = "^2.6.0"
55
+ Jinja2 = "<3.1.0"
56
+ syrupy = "^3.0.0"
57
+
58
+ [tool.black]
59
+ includes = "src"
60
+
61
+ [tool.pytest.ini_options]
62
+ asyncio_mode = "auto"
63
+ testpaths = ["tests"]
64
+ addopts = "--strict-markers"
65
+ markers = [
66
+ "integration_test: marks tests as slow integration tests (deselect with '-m \"not integration_test\"')",
67
+ ]
68
+
69
+ [build-system]
70
+ requires = ["poetry-core>=1.0.0"]
71
+ build-backend = "poetry.core.masonry.api"
testbed/Textualize__textual/reference/README.md ADDED
@@ -0,0 +1 @@
 
 
1
+ Contains private docs, mainly for the developers reference
testbed/Textualize__textual/reference/_color_system.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _Note: This is kind of a living document, which might not form part of the user-facing documentation._
2
+
3
+ # Textual Color System
4
+
5
+ Textual's color system is a palette of colors for building TUIs, and a set of guidelines for how they should be used. Based loosely on Google's Material color system, the Textual color system ensures that elements in the TUI look aesthetically pleasing while maximizing legibility
6
+
7
+ ## The colors
8
+
9
+ There are 10 base colors specified in the Textual Color System. Although it is unlikely that all will need to be specified, since some may be derived from others, and some defaults may not need to be changed.
10
+
11
+ A dark mode is automatically derived from the base colors. See Dark Mode below.
12
+
13
+ ### Shades
14
+
15
+ Each color has 6 additional shades (3 darker and 3 lighter), giving a total of 7 shades per color. These are calculated automatically from the base colors.
16
+
17
+ ### Primary and Secondary
18
+
19
+ The _primary_ and _secondary_ colors are used as a background for large areas of the interface, such as headers and sidebars. The secondary color is optional, and if not supplied will be set to be the same as primary. If supplied, the secondary color should be compliment the primary, and together can be considered the _branding colors_ as they have the greatest influence over the look of the TUI.
20
+
21
+ ### Background and Surface
22
+
23
+ The _surface_ colors is the base color which goes behind text. The _background_ color is typically the negative space where there is no content.
24
+
25
+ These two colors tend to be very similar, with just enough difference in lightness to tell them apart. They should be chosen for good contrast with the text.
26
+
27
+ In light mode the default background is #efefef (a bright grey) and the surface is #f5f5f5 (off white). In dark mode the default background is 100% black, and the default surface is #121212 (very dark grey).
28
+
29
+ Note that, although both background and surface support the full range of shades, it may not be possible to darken or lighten them further. i.e. you can't get any lighter than 100% white or darken than 100% black.
30
+
31
+ ### Panel
32
+
33
+ The _panel_ color is typically used as a background to emphasize text on the default surface, or as a UI element that is above the regular UI, such as a menu.
34
+
35
+ The default panel color is derived from the surface color by blending it towards either white or black text (depending on mode).
36
+
37
+ Unlike background and surface, the panel color is automatically selected so that it can always be lightened or darkened by the full range.
38
+
39
+ ### Accent
40
+
41
+ The _accent_ color should be a contrasting color use in UI elements that should stand out, such as selections, status bars, and underlines.
42
+
43
+ ### Warning, Error, and Success
44
+
45
+ The _warning_, _error_, and _success_ colors have semantic meaning. While they could be any color, by convention warning should be amber / orange, error should be red, and success should be green.
46
+
47
+ ### System
48
+
49
+ The system color is used for system controls such as scrollbars. The default is for the system color to be the same as accent, but it is recommended that a different color is chosen to differentiate app controls from those rendered by the Textual system.
50
+
51
+ ## Text
52
+
53
+ For every color and shade there is an automatically calculated text color, which is either white or black, chosen to produce the greatest contrast.
54
+
55
+ The default text color as a slight alpha component, so that it not pure black or pure white, but a slight tint of the background showing through. Additionally, there are two text shades with increasingly greater alpha for reduced intensity text.
56
+
57
+ ## Dark Mode
58
+
59
+ A dark mode is automatically generated from the theme. The dark variations of the primary and secondary colors are generated by blending with the background color. This ensures that the branding remains intact, while still providing dark backgrounds.
60
+
61
+ The dark variations of the background and surface color defaults are selected. The other colors remain the same as light mode. The overall effect is that the majority of the interface is dark, with small portions highlighted by color.
62
+
63
+ ## Naming
64
+
65
+ The color system produces a number of constants which are exposed in the CSS via variables.
66
+
67
+ The name of the color will return one of the standard set of colors, for example `primary` or `panel`.
68
+
69
+ For one of the shade variations, you can append `-darken-1`, `-darken-2`, `-darken-3` for increasingly darker colors, and `-lighten-1`, `lighten-2`, `lighten-3` for increasingly light colors.
70
+
71
+ For the contrasting text color, prefix the name with `text-`, for instance `text-primary` or `text-panel`. Note that if the text is to be on top of a darkened or lightened color, it must also be included in the name. i.e. if the background is `primary-darken-2`, then the corresponding text color should be `text-primary-darken-2`.
72
+
73
+ The additional two levels of faded text may be requested by appending `-fade-1` or `-fade-2` for decreasing levels of text alpha.
testbed/Textualize__textual/reference/_devtools.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Devtools
2
+
3
+ ## Installation
4
+
5
+ Using the Textual Devtools requires installation of the `dev` extra dependency.
6
+
7
+ https://python-poetry.org/docs/pyproject/#extras
8
+
9
+ ## Running
10
+
11
+ TODO: Note how we run the devtools themselves and how we run our Textual apps
12
+ such that they can connect. Don't forget Windows instructions :)
13
+ We might also add a link to the documentation from the exception that gets
14
+ raised when the "dev" extra dependencies aren't installed.
testbed/Textualize__textual/reference/box.monopic ADDED
Binary file (1.85 kB). View file
 
testbed/Textualize__textual/sandbox/darren/basic.css ADDED
@@ -0,0 +1,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* CSS file for basic.py */
2
+
3
+
4
+
5
+ * {
6
+ transition: color 300ms linear, background 300ms linear;
7
+ }
8
+
9
+
10
+ *:hover {
11
+ /* tint: 30% red;
12
+ /* outline: heavy red; */
13
+ }
14
+
15
+ App > Screen {
16
+
17
+ background: $surface;
18
+ color: $text;
19
+ layers: base sidebar;
20
+
21
+ color: $text;
22
+ background: $background;
23
+ layout: vertical;
24
+
25
+ overflow: hidden;
26
+
27
+ }
28
+
29
+ #tree-container {
30
+ overflow-y: auto;
31
+ height: 20;
32
+ margin: 1 2;
33
+ background: $panel;
34
+ padding: 1 2;
35
+ }
36
+
37
+ DirectoryTree {
38
+ padding: 0 1;
39
+ height: auto;
40
+
41
+ }
42
+
43
+
44
+
45
+
46
+ DataTable {
47
+ /*border:heavy red;*/
48
+ /* tint: 10% green; */
49
+ /* opacity: 50%; */
50
+ padding: 1;
51
+ margin: 1 2;
52
+ height: 24;
53
+ }
54
+
55
+ #sidebar {
56
+ color: $text;
57
+ background: $panel;
58
+ dock: left;
59
+ width: 30;
60
+ margin-bottom: 1;
61
+ offset-x: -100%;
62
+ transition: offset 500ms in_out_cubic 2s;
63
+ layer: sidebar;
64
+ }
65
+
66
+ #sidebar.-active {
67
+ offset-x: 0;
68
+ }
69
+
70
+ #sidebar .title {
71
+ height: 1;
72
+ background: $primary-background-darken-1;
73
+ color: $text-muted;
74
+ border-right: wide $background;
75
+ content-align: center middle;
76
+ }
77
+
78
+ #sidebar .user {
79
+ height: 8;
80
+ background: $panel-darken-1;
81
+ color: $text-muted;
82
+ border-right: wide $background;
83
+ content-align: center middle;
84
+ }
85
+
86
+ #sidebar .content {
87
+ background: $panel-darken-2;
88
+ color: $text;
89
+ border-right: wide $background;
90
+ content-align: center middle;
91
+ }
92
+
93
+
94
+
95
+
96
+ Tweet {
97
+ height:12;
98
+ width: 100%;
99
+
100
+
101
+ background: $panel;
102
+ color: $text;
103
+ layout: vertical;
104
+ /* border: outer $primary; */
105
+ padding: 1;
106
+ border: wide $panel;
107
+ overflow: auto;
108
+ /* scrollbar-gutter: stable; */
109
+ align-horizontal: center;
110
+ box-sizing: border-box;
111
+ }
112
+
113
+
114
+ .scrollable {
115
+ overflow-x: auto;
116
+ overflow-y: scroll;
117
+ margin: 1 2;
118
+ height: 24;
119
+ align-horizontal: center;
120
+ layout: vertical;
121
+ }
122
+
123
+ .code {
124
+ height: auto;
125
+
126
+ }
127
+
128
+
129
+ TweetHeader {
130
+ height:1;
131
+ background: $accent;
132
+ color: $text
133
+ }
134
+
135
+ TweetBody {
136
+ width: 100%;
137
+ background: $panel;
138
+ color: $text;
139
+ height: auto;
140
+ padding: 0 1 0 0;
141
+ }
142
+
143
+ Tweet.scroll-horizontal TweetBody {
144
+ width: 350;
145
+ }
146
+
147
+ .button {
148
+ background: $accent;
149
+ color: $text;
150
+ width:20;
151
+ height: 3;
152
+ /* border-top: hidden $accent-darken-3; */
153
+ border: tall $accent-darken-2;
154
+ /* border-left: tall $accent-darken-1; */
155
+
156
+
157
+ /* padding: 1 0 0 0 ; */
158
+
159
+ transition: background 400ms in_out_cubic, color 400ms in_out_cubic;
160
+
161
+ }
162
+
163
+ .button:hover {
164
+ background: $accent-lighten-1;
165
+ color: $text-disabled;
166
+ width: 20;
167
+ height: 3;
168
+ border: tall $accent-darken-1;
169
+ /* border-left: tall $accent-darken-3; */
170
+
171
+
172
+
173
+
174
+ }
175
+
176
+ #footer {
177
+ color: $text;
178
+ background: $accent;
179
+ height: 1;
180
+
181
+ content-align: center middle;
182
+ dock:bottom;
183
+ }
184
+
185
+
186
+ #sidebar .content {
187
+ layout: vertical
188
+ }
189
+
190
+ OptionItem {
191
+ height: 3;
192
+ background: $panel;
193
+ border-right: wide $background;
194
+ border-left: blank;
195
+ content-align: center middle;
196
+ }
197
+
198
+ OptionItem:hover {
199
+ height: 3;
200
+ color: $text;
201
+ background: $primary-darken-1;
202
+ /* border-top: hkey $accent2-darken-3;
203
+ border-bottom: hkey $accent2-darken-3; */
204
+ text-style: bold;
205
+ border-left: outer $secondary-darken-2;
206
+ }
207
+
208
+ Error {
209
+ width: 100%;
210
+ height:3;
211
+ background: $error;
212
+ color: $text;
213
+ border-top: tall $error-darken-2;
214
+ border-bottom: tall $error-darken-2;
215
+
216
+ padding: 0;
217
+ text-style: bold;
218
+ align-horizontal: center;
219
+ }
220
+
221
+ Warning {
222
+ width: 100%;
223
+ height:3;
224
+ background: $warning;
225
+ color: $text-muted;
226
+ border-top: tall $warning-darken-2;
227
+ border-bottom: tall $warning-darken-2;
228
+
229
+ text-style: bold;
230
+ align-horizontal: center;
231
+ }
232
+
233
+ Success {
234
+ width: 100%;
235
+
236
+ height:auto;
237
+ box-sizing: border-box;
238
+ background: $success;
239
+ color: $text-muted;
240
+
241
+ border-top: hkey $success-darken-2;
242
+ border-bottom: hkey $success-darken-2;
243
+
244
+ text-style: bold ;
245
+
246
+ align-horizontal: center;
247
+ }
248
+
249
+
250
+ .horizontal {
251
+ layout: horizontal
252
+ }
testbed/Textualize__textual/sandbox/darren/basic.py ADDED
@@ -0,0 +1,235 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from rich.console import RenderableType
2
+
3
+ from rich.syntax import Syntax
4
+ from rich.text import Text
5
+
6
+ from textual.app import App, ComposeResult
7
+ from textual.reactive import Reactive
8
+ from textual.widget import Widget
9
+ from textual.widgets import Static, DataTable, DirectoryTree, Header, Footer
10
+ from textual.containers import Container
11
+
12
+ CODE = '''
13
+ from __future__ import annotations
14
+
15
+ from typing import Iterable, TypeVar
16
+
17
+ T = TypeVar("T")
18
+
19
+
20
+ def loop_first(values: Iterable[T]) -> Iterable[tuple[bool, T]]:
21
+ """Iterate and generate a tuple with a flag for first value."""
22
+ iter_values = iter(values)
23
+ try:
24
+ value = next(iter_values)
25
+ except StopIteration:
26
+ return
27
+ yield True, value
28
+ for value in iter_values:
29
+ yield False, value
30
+
31
+
32
+ def loop_last(values: Iterable[T]) -> Iterable[tuple[bool, T]]:
33
+ """Iterate and generate a tuple with a flag for last value."""
34
+ iter_values = iter(values)
35
+ try:
36
+ previous_value = next(iter_values)
37
+ except StopIteration:
38
+ return
39
+ for value in iter_values:
40
+ yield False, previous_value
41
+ previous_value = value
42
+ yield True, previous_value
43
+
44
+
45
+ def loop_first_last(values: Iterable[T]) -> Iterable[tuple[bool, bool, T]]:
46
+ """Iterate and generate a tuple with a flag for first and last value."""
47
+ iter_values = iter(values)
48
+ try:
49
+ previous_value = next(iter_values)
50
+ except StopIteration:
51
+ return
52
+ first = True
53
+ for value in iter_values:
54
+ yield first, False, previous_value
55
+ first = False
56
+ previous_value = value
57
+ yield first, True, previous_value
58
+ '''
59
+
60
+
61
+ lorem_short = """Lorem ipsum dolor sit amet, consectetur adipiscing elit. In velit liber a a a, volutpat nec hendrerit at, faucibus in odio. Aliquam hendrerit nibh sed quam volutpat maximus. Nullam suscipit convallis lorem quis sodales. In tristique lobortis ante et dictum. Ut at finibus ipsum."""
62
+ lorem = (
63
+ lorem_short
64
+ + """ In urna dolor, placerat et mi facilisis, congue sollicitudin massa. Phasellus felis turpis, cursus eu lectus et, porttitor malesuada augue. Sed feugiat volutpat velit, sollicitudin fringilla velit bibendum faucibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In velit libero, volutpat nec hendrerit at, faucibus in odio. Aliquam hendrerit nibh sed quam volutpat maximus. Nullam suscipit convallis lorem quis sodales. In tristique lobortis ante et dictum. Ut at finibus ipsum. In urna dolor, placerat et mi facilisis, congue sollicitudin massa. Phasellus felis turpis, cursus eu lectus et, porttitor malesuada augue. Sed feugiat volutpat velit, sollicitudin fringilla velit bibendum faucibus. """
65
+ )
66
+
67
+ lorem_short_text = Text.from_markup(lorem_short)
68
+ lorem_long_text = Text.from_markup(lorem * 2)
69
+
70
+
71
+ class TweetHeader(Widget):
72
+ def render(self) -> RenderableType:
73
+ return Text("Lorem Impsum", justify="center")
74
+
75
+
76
+ class TweetBody(Widget):
77
+ short_lorem = Reactive(False)
78
+
79
+ def render(self) -> Text:
80
+ return lorem_short_text if self.short_lorem else lorem_long_text
81
+
82
+
83
+ class Tweet(Widget):
84
+ pass
85
+
86
+
87
+ class OptionItem(Widget):
88
+ def render(self) -> Text:
89
+ return Text("Option")
90
+
91
+
92
+ class Error(Widget):
93
+ def render(self) -> Text:
94
+ return Text("This is an error message", justify="center")
95
+
96
+
97
+ class Warning(Widget):
98
+ def render(self) -> Text:
99
+ return Text("This is a warning message", justify="center")
100
+
101
+
102
+ class Success(Widget):
103
+ def render(self) -> Text:
104
+ return Text("This is a success message", justify="center")
105
+
106
+
107
+ class BasicApp(App, css_path="basic.css"):
108
+ """A basic app demonstrating CSS"""
109
+
110
+ def on_load(self):
111
+ """Bind keys here."""
112
+ self.bind("s", "toggle_class('#sidebar', '-active')", description="Sidebar")
113
+ self.bind("d", "toggle_dark", description="Dark mode")
114
+ self.bind("q", "quit", description="Quit")
115
+ self.bind("f", "query_test", description="Query test")
116
+
117
+ def compose(self):
118
+ yield Header()
119
+
120
+ table = DataTable()
121
+ self.scroll_to_target = Tweet(TweetBody())
122
+
123
+ yield Container(
124
+ Tweet(TweetBody()),
125
+ Widget(
126
+ Static(
127
+ Syntax(CODE, "python", line_numbers=True, indent_guides=True),
128
+ classes="code",
129
+ ),
130
+ classes="scrollable",
131
+ ),
132
+ table,
133
+ Widget(DirectoryTree("~/code/textual"), id="tree-container"),
134
+ Error(),
135
+ Tweet(TweetBody(), classes="scrollbar-size-custom"),
136
+ Warning(),
137
+ Tweet(TweetBody(), classes="scroll-horizontal"),
138
+ Success(),
139
+ Tweet(TweetBody(), classes="scroll-horizontal"),
140
+ Tweet(TweetBody(), classes="scroll-horizontal"),
141
+ Tweet(TweetBody(), classes="scroll-horizontal"),
142
+ Tweet(TweetBody(), classes="scroll-horizontal"),
143
+ Tweet(TweetBody(), classes="scroll-horizontal"),
144
+ )
145
+ yield Widget(
146
+ Widget(classes="title"),
147
+ Widget(classes="user"),
148
+ OptionItem(),
149
+ OptionItem(),
150
+ OptionItem(),
151
+ Widget(classes="content"),
152
+ id="sidebar",
153
+ )
154
+ yield Footer()
155
+
156
+ table.add_column("Foo", width=20)
157
+ table.add_column("Bar", width=20)
158
+ table.add_column("Baz", width=20)
159
+ table.add_column("Foo", width=20)
160
+ table.add_column("Bar", width=20)
161
+ table.add_column("Baz", width=20)
162
+ table.zebra_stripes = True
163
+ for n in range(100):
164
+ table.add_row(*[f"Cell ([b]{n}[/b], {col})" for col in range(6)])
165
+
166
+ def on_mount(self):
167
+ self.sub_title = "Widget demo"
168
+
169
+ async def on_key(self, event) -> None:
170
+ await self.dispatch_key(event)
171
+
172
+ def action_toggle_dark(self):
173
+ self.dark = not self.dark
174
+
175
+ def action_query_test(self):
176
+ query = self.query("Tweet")
177
+ self.log(query)
178
+ self.log(query.nodes)
179
+ self.log(query)
180
+ self.log(query.nodes)
181
+
182
+ query.set_styles("outline: outer red;")
183
+
184
+ query = query.exclude(".scroll-horizontal")
185
+ self.log(query)
186
+ self.log(query.nodes)
187
+
188
+ # query = query.filter(".rubbish")
189
+ # self.log(query)
190
+ # self.log(query.first())
191
+
192
+ async def key_q(self):
193
+ await self.shutdown()
194
+
195
+ def key_x(self):
196
+ self.panic(self.tree)
197
+
198
+ def key_escape(self):
199
+ self.app.bell()
200
+
201
+ def key_t(self):
202
+ # Pressing "t" toggles the content of the TweetBody widget, from a long "Lorem ipsum..." to a shorter one.
203
+ tweet_body = self.query("TweetBody").first()
204
+ tweet_body.short_lorem = not tweet_body.short_lorem
205
+
206
+ def key_v(self):
207
+ self.get_child(id="content").scroll_to_widget(self.scroll_to_target)
208
+
209
+ def key_space(self):
210
+ self.bell()
211
+
212
+
213
+ app = BasicApp()
214
+
215
+ if __name__ == "__main__":
216
+ app.run()
217
+
218
+ # from textual.geometry import Region
219
+ # from textual.color import Color
220
+
221
+ # print(Region.intersection.cache_info())
222
+ # print(Region.overlaps.cache_info())
223
+ # print(Region.union.cache_info())
224
+ # print(Region.split_vertical.cache_info())
225
+ # print(Region.__contains__.cache_info())
226
+ # from textual.css.scalar import Scalar
227
+
228
+ # print(Scalar.resolve_dimension.cache_info())
229
+
230
+ # from rich.style import Style
231
+ # from rich.cells import cached_cell_len
232
+
233
+ # print(Style._add.cache_info())
234
+
235
+ # print(cached_cell_len.cache_info())
testbed/Textualize__textual/sandbox/darren/buttons.css ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ Button {
2
+ padding-left: 1;
3
+ padding-right: 1;
4
+ margin: 3;
5
+ text-opacity: 30%;
6
+ }
testbed/Textualize__textual/sandbox/darren/buttons.py ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from textual import events
2
+ from textual.app import App, ComposeResult
3
+ from textual.containers import Vertical
4
+ from textual.widgets import Button
5
+
6
+
7
+ class ButtonsApp(App[str]):
8
+ def compose(self) -> ComposeResult:
9
+ yield Vertical(
10
+ Button("default", id="foo"),
11
+ Button.success("success", id="bar"),
12
+ Button.warning("warning", id="baz"),
13
+ Button.error("error", id="baz"),
14
+ )
15
+
16
+ def on_button_pressed(self, event: Button.Pressed) -> None:
17
+ self.app.bell()
18
+
19
+ async def on_key(self, event: events.Key) -> None:
20
+ await self.dispatch_key(event)
21
+
22
+ def key_d(self):
23
+ self.dark = not self.dark
24
+
25
+
26
+ app = ButtonsApp(
27
+ log_path="textual.log",
28
+ css_path="buttons.css",
29
+ watch_css=True,
30
+ )
31
+
32
+ if __name__ == "__main__":
33
+ result = app.run()
34
+ print(repr(result))
testbed/Textualize__textual/sandbox/darren/file_search.py ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from pathlib import Path
4
+ from typing import Iterable
5
+
6
+ from rich.console import RenderableType
7
+ from rich.table import Table
8
+ from rich.text import Text
9
+
10
+ from textual.app import App
11
+ from textual.geometry import Size
12
+ from textual.reactive import Reactive
13
+ from textual.widget import Widget
14
+ from textual.widgets._input import Input
15
+
16
+
17
+ def get_files() -> list[Path]:
18
+ files = list(Path.cwd().iterdir())
19
+ return files
20
+
21
+
22
+ class FileTable(Widget):
23
+ filter = Reactive("", layout=True)
24
+
25
+ def __init__(self, *args, files: Iterable[Path] | None = None, **kwargs):
26
+ super().__init__(*args, **kwargs)
27
+ self.files = files if files is not None else []
28
+
29
+ @property
30
+ def filtered_files(self) -> list[Path]:
31
+ return [
32
+ file
33
+ for file in self.files
34
+ if self.filter == "" or (self.filter and self.filter in file.name)
35
+ ]
36
+
37
+ def get_content_height(self, container: Size, viewport: Size, width: int) -> int:
38
+ return len(self.filtered_files)
39
+
40
+ def render(self) -> RenderableType:
41
+ grid = Table.grid()
42
+ grid.add_column()
43
+ for file in self.filtered_files:
44
+ file_text = Text(f" {file.name}")
45
+ if self.filter:
46
+ file_text.highlight_regex(self.filter, "black on yellow")
47
+ grid.add_row(file_text)
48
+ return grid
49
+
50
+
51
+ class FileSearchApp(App):
52
+ dark = True
53
+
54
+ def on_mount(self) -> None:
55
+ self.file_table = FileTable(id="file_table", files=list(Path.cwd().iterdir()))
56
+ self.search_bar = Input(placeholder="Search for files...")
57
+ # self.search_bar.focus()
58
+ self.mount(search_bar=self.search_bar)
59
+ self.mount(file_table_wrapper=Widget(self.file_table))
60
+
61
+ def on_input_changed(self, event: Input.Changed) -> None:
62
+ self.file_table.filter = event.value
63
+
64
+
65
+ app = FileSearchApp(css_path="file_search.scss", watch_css=True)
66
+
67
+ if __name__ == "__main__":
68
+ result = app.run()
testbed/Textualize__textual/sandbox/darren/file_search.scss ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Screen {
2
+
3
+ }
4
+
5
+ #file_table_wrapper {
6
+ scrollbar-color: $accent-darken-1;
7
+ }
8
+
9
+ #file_table {
10
+ height: auto;
11
+ }
12
+
13
+ #search_bar {
14
+ height: 1;
15
+ }
testbed/Textualize__textual/sandbox/darren/just_a_box.css ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Screen {
2
+ align: center middle;
3
+ background: darkslategrey;
4
+ overflow: auto auto;
5
+ }
6
+
7
+ #box1 {
8
+ background: darkmagenta;
9
+ width: auto;
10
+ opacity: 0.5;
11
+ padding: 4 8;
12
+ }
testbed/Textualize__textual/sandbox/darren/just_a_box.py ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from textual.app import App, ComposeResult
4
+ from textual.binding import Binding
5
+ from textual.widgets import Static, Footer, Header
6
+
7
+
8
+ class JustABox(App):
9
+ BINDINGS = [
10
+ Binding(key="t", action="text_fade_out", description="text-opacity fade out"),
11
+ Binding(key="o,f,w", action="widget_fade_out", description="opacity fade out"),
12
+ ]
13
+
14
+ def compose(self) -> ComposeResult:
15
+ yield Header()
16
+ yield Static("Hello, world!", id="box1")
17
+ yield Footer()
18
+
19
+ def action_text_fade_out(self) -> None:
20
+ box = self.query_one("#box1")
21
+ self.animator.animate(box.styles, "text_opacity", value=0.0, duration=1)
22
+
23
+ def action_widget_fade_out(self) -> None:
24
+ box = self.query_one("#box1")
25
+ self.animator.animate(box.styles, "opacity", value=0.0, duration=1)
26
+
27
+ def key_d(self):
28
+ print(self.screen.styles.get_rules())
29
+ print(self.screen.styles.css)
30
+
31
+
32
+ app = JustABox(watch_css=True, css_path="../darren/just_a_box.css")
33
+
34
+ if __name__ == "__main__":
35
+ app.run()
testbed/Textualize__textual/sandbox/darren/tabs.py ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from dataclasses import dataclass
2
+
3
+ from rich.console import RenderableType
4
+ from rich.padding import Padding
5
+ from rich.rule import Rule
6
+ from rich.style import Style
7
+
8
+ from textual import events
9
+ from textual.app import App
10
+ from textual.widget import Widget
11
+ from textual.widgets.tabs import Tabs, Tab
12
+
13
+
14
+ class Hr(Widget):
15
+ def render(self) -> RenderableType:
16
+ return Rule()
17
+
18
+
19
+ class Info(Widget):
20
+ def __init__(self, text: str) -> None:
21
+ super().__init__()
22
+ self.text = text
23
+
24
+ def render(self) -> RenderableType:
25
+ return Padding(f"{self.text}", pad=(0, 1))
26
+
27
+
28
+ @dataclass
29
+ class WidgetDescription:
30
+ description: str
31
+ widget: Widget
32
+
33
+
34
+ class BasicApp(App):
35
+ """Sandbox application used for testing/development by Textual developers"""
36
+
37
+ def __init__(self, *args, **kwargs):
38
+ super().__init__(*args, **kwargs)
39
+ self.keys_to_tabs = {
40
+ "1": Tab("January", name="one"),
41
+ "2": Tab("に月", name="two"),
42
+ "3": Tab("March", name="three"),
43
+ "4": Tab("April", name="four"),
44
+ "5": Tab("May", name="five"),
45
+ "6": Tab("And a really long tab!", name="six"),
46
+ }
47
+ tabs = list(self.keys_to_tabs.values())
48
+ self.examples = [
49
+ WidgetDescription(
50
+ "Customise the spacing between tabs, e.g. tab_padding=1",
51
+ Tabs(
52
+ tabs,
53
+ tab_padding=1,
54
+ ),
55
+ ),
56
+ WidgetDescription(
57
+ "Change the opacity of inactive tab text, e.g. inactive_text_opacity=.2",
58
+ Tabs(
59
+ tabs,
60
+ active_tab="two",
61
+ active_bar_style="#1493FF",
62
+ inactive_text_opacity=0.2,
63
+ tab_padding=2,
64
+ ),
65
+ ),
66
+ WidgetDescription(
67
+ "Change the color of the inactive portions of the underline, e.g. inactive_bar_style='blue'",
68
+ Tabs(
69
+ tabs,
70
+ active_tab="four",
71
+ inactive_bar_style="blue",
72
+ ),
73
+ ),
74
+ WidgetDescription(
75
+ "Change the color of the active portion of the underline, e.g. active_bar_style='red'",
76
+ Tabs(
77
+ tabs,
78
+ active_tab="five",
79
+ active_bar_style="red",
80
+ inactive_text_opacity=1,
81
+ ),
82
+ ),
83
+ WidgetDescription(
84
+ "Change the styling of active and inactive labels (active_tab_style, inactive_tab_style)",
85
+ Tabs(
86
+ tabs,
87
+ active_tab="one",
88
+ active_bar_style="#DA812D",
89
+ active_tab_style="bold #FFCB4D on #021720",
90
+ inactive_tab_style="italic #887AEF on #021720",
91
+ inactive_bar_style="#695CC8",
92
+ inactive_text_opacity=0.6,
93
+ ),
94
+ ),
95
+ WidgetDescription(
96
+ "Change the animation duration and function (animation_duration=1, animation_function='out_quad')",
97
+ Tabs(
98
+ tabs,
99
+ active_tab="one",
100
+ active_bar_style="#887AEF",
101
+ inactive_text_opacity=0.2,
102
+ animation_duration=1,
103
+ animation_function="out_quad",
104
+ ),
105
+ ),
106
+ WidgetDescription(
107
+ "Choose which tab to start on by name, e.g. active_tab='three'",
108
+ Tabs(
109
+ tabs,
110
+ active_tab="three",
111
+ active_bar_style="#FFCB4D",
112
+ tab_padding=3,
113
+ ),
114
+ ),
115
+ ]
116
+
117
+ def on_load(self):
118
+ """Bind keys here."""
119
+ self.bind("tab", "toggle_class('#sidebar', '-active')")
120
+ self.bind("a", "toggle_class('#header', '-visible')")
121
+ self.bind("c", "toggle_class('#content', '-content-visible')")
122
+ self.bind("d", "toggle_class('#footer', 'dim')")
123
+
124
+ def on_key(self, event: events.Key) -> None:
125
+ for example in self.examples:
126
+ tab = self.keys_to_tabs.get(event.key)
127
+ if tab:
128
+ example.widget._active_tab_name = tab.name
129
+
130
+ def on_mount(self):
131
+ """Build layout here."""
132
+ self.mount(
133
+ info=Info(
134
+ "\n"
135
+ "• The examples below show customisation options for the [bold #1493FF]Tabs[/] widget.\n"
136
+ "• Press keys 1-6 on your keyboard to switch tabs, or click on a tab.",
137
+ )
138
+ )
139
+ for example in self.examples:
140
+ info = Info(example.description)
141
+ self.mount(Hr())
142
+ self.mount(info)
143
+ self.mount(example.widget)
144
+
145
+
146
+ app = BasicApp(css_path="tabs.scss", watch_css=True, log_path="textual.log")
147
+ app.run()
testbed/Textualize__textual/sandbox/darren/tabs.scss ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ $background: #021720;
2
+
3
+ App > View {
4
+ background: $background;
5
+ }
6
+
7
+ #info {
8
+ height: 4;
9
+ }
testbed/Textualize__textual/sandbox/darren/text_align.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ from textual.app import App, ComposeResult
4
+ from textual.widgets import Static
5
+
6
+ TEXT = (
7
+ "I must not fear. Fear is the mind-killer. Fear is the little-death that "
8
+ "brings total obliteration. I will face my fear. I will permit it to pass over "
9
+ "me and through me. And when it has gone past, I will turn the inner eye to "
10
+ "see its path. Where the fear has gone there will be nothing. Only I will "
11
+ "remain. "
12
+ )
13
+
14
+
15
+ class TextAlign(App):
16
+ def compose(self) -> ComposeResult:
17
+ left = Static("[b]Left aligned[/]\n" + TEXT, id="one")
18
+ yield left
19
+
20
+ right = Static("[b]Center aligned[/]\n" + TEXT, id="two")
21
+ yield right
22
+
23
+ center = Static("[b]Right aligned[/]\n" + TEXT, id="three")
24
+ yield center
25
+
26
+ full = Static("[b]Fully justified[/]\n" + TEXT, id="four")
27
+ yield full
28
+
29
+
30
+ app = TextAlign(css_path="text_align.scss", watch_css=True)
31
+
32
+ if __name__ == "__main__":
33
+ app.run()
testbed/Textualize__textual/sandbox/darren/text_align.scss ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #one {
2
+ text-align: left;
3
+ background: lightblue;
4
+
5
+ }
6
+
7
+ #two {
8
+ text-align: center;
9
+ background: indianred;
10
+ }
11
+
12
+ #three {
13
+ text-align: right;
14
+ background: palegreen;
15
+ }
16
+
17
+ #four {
18
+ text-align: justify;
19
+ background: palevioletred;
20
+ }
21
+
22
+ Static {
23
+ padding: 1;
24
+ }
testbed/Textualize__textual/sandbox/will/add_remove.py ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import random
2
+
3
+ from textual.containers import Horizontal, Vertical
4
+ from textual.app import App, ComposeResult
5
+ from textual.widgets import Button, Static
6
+
7
+
8
+ class Thing(Static):
9
+ def on_show(self) -> None:
10
+ self.scroll_visible()
11
+
12
+
13
+ class AddRemoveApp(App):
14
+ DEFAULT_CSS = """
15
+ #buttons {
16
+ dock: top;
17
+ height: auto;
18
+ }
19
+ #buttons Button {
20
+ width: 1fr;
21
+ }
22
+ #items {
23
+ height: 100%;
24
+ overflow-y: scroll;
25
+ }
26
+ Thing {
27
+ height: 5;
28
+ background: $panel;
29
+ border: tall $primary;
30
+ margin: 1 1;
31
+ content-align: center middle;
32
+ }
33
+ """
34
+
35
+ def on_mount(self) -> None:
36
+ self.count = 0
37
+
38
+ def compose(self) -> ComposeResult:
39
+ yield Vertical(
40
+ Horizontal(
41
+ Button("Add", variant="success", id="add"),
42
+ Button("Remove", variant="error", id="remove"),
43
+ Button("Remove random", variant="warning", id="remove_random"),
44
+ id="buttons",
45
+ ),
46
+ Vertical(id="items"),
47
+ )
48
+
49
+ def on_button_pressed(self, event: Button.Pressed) -> None:
50
+ if event.button.id == "add":
51
+ self.count += 1
52
+ self.query("#items").first().mount(
53
+ Thing(f"Thing {self.count}", id=f"thing{self.count}")
54
+ )
55
+ elif event.button.id == "remove":
56
+ things = self.query("#items Thing")
57
+ if things:
58
+ things.last().remove()
59
+
60
+ elif event.button.id == "remove_random":
61
+ things = self.query("#items Thing")
62
+ if things:
63
+ random.choice(things).remove()
64
+
65
+ self.app.bell()
66
+
67
+
68
+ app = AddRemoveApp()
69
+
70
+ if __name__ == "__main__":
71
+ app.run()
testbed/Textualize__textual/sandbox/will/align.css ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Screen {
2
+ align: center middle;
3
+ }
4
+
5
+ Label {
6
+
7
+ width: 20;
8
+ height: 5;
9
+ background: blue;
10
+ color: white;
11
+ border: tall white;
12
+ margin: 1;
13
+ content-align: center middle;
14
+ }
testbed/Textualize__textual/sandbox/will/align.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from textual.app import App, ComposeResult
2
+ from textual.widgets import Static
3
+
4
+
5
+ class Label(Static):
6
+ pass
7
+
8
+
9
+ class AlignApp(App):
10
+ CSS_PATH = "align.css"
11
+
12
+ def compose(self) -> ComposeResult:
13
+ yield Label("Hello")
14
+ yield Label("World!")
15
+
16
+
17
+ if __name__ == "__main__":
18
+ app = AlignApp()
19
+ app.run()
testbed/Textualize__textual/sandbox/will/basic.css ADDED
@@ -0,0 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* CSS file for basic.py */
2
+
3
+
4
+
5
+ * {
6
+ transition: color 300ms linear, background 300ms linear;
7
+ }
8
+
9
+ Tweet.tall {
10
+ height: 24;
11
+ }
12
+
13
+ *:hover {
14
+ /* tint: 30% red;
15
+ /* outline: heavy red; */
16
+ }
17
+
18
+ App > Screen {
19
+
20
+ color: $text;
21
+ layers: base sidebar;
22
+ layout: vertical;
23
+ overflow: hidden;
24
+
25
+ }
26
+
27
+ #tree-container {
28
+ background: $panel;
29
+ overflow-y: auto;
30
+ height: 20;
31
+ margin: 1 2;
32
+
33
+ padding: 1 2;
34
+ }
35
+
36
+ DirectoryTree {
37
+ padding: 0 1;
38
+ height: auto;
39
+
40
+ }
41
+
42
+
43
+ #table-container {
44
+ background: $panel;
45
+ height: auto;
46
+ margin: 1 2;
47
+ }
48
+
49
+ DataTable {
50
+ /*border:heavy red;*/
51
+ /* tint: 10% green; */
52
+ /* text-opacity: 50%; */
53
+
54
+
55
+ margin: 1 2;
56
+ height: 24;
57
+ }
58
+
59
+ #sidebar {
60
+ background: $panel;
61
+ color: $text;
62
+ dock: left;
63
+ width: 30;
64
+ margin-bottom: 1;
65
+ offset-x: -100%;
66
+
67
+ transition: offset 500ms in_out_cubic;
68
+ layer: sidebar;
69
+ }
70
+
71
+ #sidebar.-active {
72
+ offset-x: 0;
73
+ }
74
+
75
+ #sidebar .title {
76
+ height: 1;
77
+ background: $primary-background-darken-1;
78
+ color: $text;
79
+ border-right: wide $background;
80
+ content-align: center middle;
81
+ }
82
+
83
+ #sidebar .user {
84
+ height: 8;
85
+ background: $panel-darken-1;
86
+ color: $text;
87
+ border-right: wide $background;
88
+ content-align: center middle;
89
+ }
90
+
91
+ #sidebar .content {
92
+ background: $panel-darken-2;
93
+ color: $text;
94
+ border-right: wide $background;
95
+ content-align: center middle;
96
+ }
97
+
98
+
99
+
100
+
101
+ Tweet {
102
+ height:12;
103
+ width: 100%;
104
+ margin: 0 2;
105
+
106
+ margin:0 2;
107
+ background: $panel;
108
+ color: $text;
109
+ layout: vertical;
110
+ /* border: outer $primary; */
111
+ padding: 1;
112
+ border: wide $panel;
113
+
114
+ /* scrollbar-gutter: stable; */
115
+
116
+ box-sizing: border-box;
117
+
118
+ }
119
+
120
+
121
+ .scrollable {
122
+ overflow-x: auto;
123
+ overflow-y: scroll;
124
+ padding: 0 2;
125
+ margin: 1 2;
126
+ height: 24;
127
+
128
+ layout: vertical;
129
+ }
130
+
131
+ .code {
132
+ height: auto;
133
+ }
134
+
135
+
136
+ TweetHeader {
137
+ height:1;
138
+ background: $accent;
139
+ color: $text;
140
+ }
141
+
142
+ TweetBody {
143
+ width: 100%;
144
+ background: $panel;
145
+ color: $text;
146
+ height: auto;
147
+ padding: 0 1 0 0;
148
+ }
149
+
150
+ Tweet.scroll-horizontal {
151
+
152
+ overflow-x: auto;
153
+ }
154
+
155
+ Tweet.scroll-horizontal TweetBody {
156
+ width: 350;
157
+
158
+ }
159
+
160
+ .button {
161
+ background: $accent;
162
+ color: $text;
163
+ width:20;
164
+ height: 3;
165
+ /* border-top: hidden $accent-darken-3; */
166
+ border: tall $accent-darken-2;
167
+ /* border-left: tall $accent-darken-1; */
168
+
169
+
170
+ /* padding: 1 0 0 0 ; */
171
+
172
+ transition: background 400ms in_out_cubic, color 400ms in_out_cubic;
173
+
174
+ }
175
+
176
+ .button:hover {
177
+ background: $accent-lighten-1;
178
+ color: $text;
179
+ width: 20;
180
+ height: 3;
181
+ border: tall $accent-darken-1;
182
+ /* border-left: tall $accent-darken-3; */
183
+
184
+
185
+
186
+
187
+ }
188
+
189
+ #footer {
190
+ color: $text;
191
+ background: $accent;
192
+ height: 1;
193
+
194
+ content-align: center middle;
195
+ dock:bottom;
196
+ }
197
+
198
+
199
+ #sidebar .content {
200
+ layout: vertical;
201
+ }
202
+
203
+ OptionItem {
204
+ height: 3;
205
+ background: $panel;
206
+ border-right: wide $background;
207
+ border-left: blank;
208
+ content-align: center middle;
209
+ }
210
+
211
+ OptionItem:hover {
212
+ height: 3;
213
+ color: $text;
214
+ background: $primary-darken-1;
215
+ /* border-top: hkey $accent2-darken-3;
216
+ border-bottom: hkey $accent2-darken-3; */
217
+ text-style: bold;
218
+ border-left: outer $secondary-darken-2;
219
+ }
220
+
221
+ Error {
222
+ width: 100%;
223
+ height:3;
224
+ background: $error;
225
+ color: $text;
226
+ border-top: tall $error-darken-2;
227
+ border-bottom: tall $error-darken-2;
228
+
229
+ padding: 0;
230
+ text-style: bold;
231
+ content-align: center middle;
232
+ }
233
+
234
+ Warning {
235
+ width: 100%;
236
+ height:3;
237
+ background: $warning;
238
+ color: $text;
239
+ border-top: tall $warning-darken-2;
240
+ border-bottom: tall $warning-darken-2;
241
+
242
+ text-style: bold;
243
+ content-align: center middle;
244
+ }
245
+
246
+ Success {
247
+ width: 100%;
248
+
249
+ height:auto;
250
+ box-sizing: border-box;
251
+ background: $success;
252
+ color: $text;
253
+
254
+ border-top: hkey $success-darken-2;
255
+ border-bottom: hkey $success-darken-2;
256
+
257
+ text-style: bold ;
258
+
259
+ content-align: center middle;
260
+ }
261
+
262
+
263
+ .horizontal {
264
+ layout: horizontal
265
+ }
testbed/Textualize__textual/sandbox/will/basic.py ADDED
@@ -0,0 +1,243 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from rich.console import RenderableType
2
+
3
+ from rich.syntax import Syntax
4
+ from rich.text import Text
5
+
6
+ from textual.app import App, ComposeResult
7
+ from textual.reactive import Reactive
8
+ from textual.widget import Widget
9
+ from textual.widgets import Static, DataTable, DirectoryTree, Header, Footer
10
+ from textual.containers import Container, Vertical
11
+
12
+ CODE = '''
13
+ from __future__ import annotations
14
+
15
+ from typing import Iterable, TypeVar
16
+
17
+ T = TypeVar("T")
18
+
19
+
20
+ def loop_first(values: Iterable[T]) -> Iterable[tuple[bool, T]]:
21
+ """Iterate and generate a tuple with a flag for first value."""
22
+ iter_values = iter(values)
23
+ try:
24
+ value = next(iter_values)
25
+ except StopIteration:
26
+ return
27
+ yield True, value
28
+ for value in iter_values:
29
+ yield False, value
30
+
31
+
32
+ def loop_last(values: Iterable[T]) -> Iterable[tuple[bool, T]]:
33
+ """Iterate and generate a tuple with a flag for last value."""
34
+ iter_values = iter(values)
35
+ try:
36
+ previous_value = next(iter_values)
37
+ except StopIteration:
38
+ return
39
+ for value in iter_values:
40
+ yield False, previous_value
41
+ previous_value = value
42
+ yield True, previous_value
43
+
44
+
45
+ def loop_first_last(values: Iterable[T]) -> Iterable[tuple[bool, bool, T]]:
46
+ """Iterate and generate a tuple with a flag for first and last value."""
47
+ iter_values = iter(values)
48
+ try:
49
+ previous_value = next(iter_values)
50
+ except StopIteration:
51
+ return
52
+ first = True
53
+ for value in iter_values:
54
+ yield first, False, previous_value
55
+ first = False
56
+ previous_value = value
57
+ yield first, True, previous_value
58
+ '''
59
+
60
+
61
+ lorem_short = """Lorem ipsum dolor sit amet, consectetur adipiscing elit. In velit liber a a a, volutpat nec hendrerit at, faucibus in odio. Aliquam hendrerit nibh sed quam volutpat maximus. Nullam suscipit convallis lorem quis sodales. In tristique lobortis ante et dictum. Ut at finibus ipsum."""
62
+ lorem = (
63
+ lorem_short
64
+ + """ In urna dolor, placerat et mi facilisis, congue sollicitudin massa. Phasellus felis turpis, cursus eu lectus et, porttitor malesuada augue. Sed feugiat volutpat velit, sollicitudin fringilla velit bibendum faucibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. In velit libero, volutpat nec hendrerit at, faucibus in odio. Aliquam hendrerit nibh sed quam volutpat maximus. Nullam suscipit convallis lorem quis sodales. In tristique lobortis ante et dictum. Ut at finibus ipsum. In urna dolor, placerat et mi facilisis, congue sollicitudin massa. Phasellus felis turpis, cursus eu lectus et, porttitor malesuada augue. Sed feugiat volutpat velit, sollicitudin fringilla velit bibendum faucibus. """
65
+ )
66
+
67
+ lorem_short_text = Text.from_markup(lorem_short)
68
+ lorem_long_text = Text.from_markup(lorem * 2)
69
+
70
+
71
+ class TweetHeader(Static):
72
+ def render(self) -> RenderableType:
73
+ return Text("Lorem Impsum", justify="center")
74
+
75
+
76
+ class TweetBody(Static):
77
+ short_lorem = Reactive(False)
78
+
79
+ def render(self) -> Text:
80
+ return lorem_short_text if self.short_lorem else lorem_long_text
81
+
82
+
83
+ class Tweet(Vertical):
84
+ pass
85
+
86
+
87
+ class OptionItem(Static):
88
+ def render(self) -> Text:
89
+ return Text("Option")
90
+
91
+
92
+ class Error(Static):
93
+ def render(self) -> Text:
94
+ return Text("This is an error message", justify="center")
95
+
96
+
97
+ class Warning(Static):
98
+ def render(self) -> Text:
99
+ return Text("This is a warning message", justify="center")
100
+
101
+
102
+ class Success(Static):
103
+ def render(self) -> Text:
104
+ return Text("This is a success message", justify="center")
105
+
106
+
107
+ class BasicApp(App):
108
+ """A basic app demonstrating CSS"""
109
+
110
+ CSS_PATH = "basic.css"
111
+
112
+ def on_load(self):
113
+ """Bind keys here."""
114
+ self.bind("s", "toggle_class('#sidebar', '-active')", description="Sidebar")
115
+ self.bind("d", "toggle_dark", description="Dark mode")
116
+ self.bind("q", "quit", description="Quit")
117
+ self.bind("f", "query_test", description="Query test")
118
+
119
+ def compose(self):
120
+ yield Header()
121
+
122
+ table = DataTable()
123
+ self.scroll_to_target = Tweet(TweetBody())
124
+
125
+ yield Vertical(
126
+ Tweet(TweetBody()),
127
+ Tweet(
128
+ Static(
129
+ Syntax(
130
+ CODE,
131
+ "python",
132
+ theme="ansi_dark",
133
+ line_numbers=True,
134
+ indent_guides=True,
135
+ ),
136
+ classes="code",
137
+ ),
138
+ classes="tall",
139
+ ),
140
+ Container(table, id="table-container"),
141
+ Container(DirectoryTree("~/"), id="tree-container"),
142
+ Error(),
143
+ Tweet(TweetBody(), classes="scrollbar-size-custom"),
144
+ Warning(),
145
+ Tweet(TweetBody(), classes="scroll-horizontal"),
146
+ Success(),
147
+ Tweet(TweetBody(), classes="scroll-horizontal"),
148
+ Tweet(TweetBody(), classes="scroll-horizontal"),
149
+ Tweet(TweetBody(), classes="scroll-horizontal"),
150
+ Tweet(TweetBody(), classes="scroll-horizontal"),
151
+ Tweet(TweetBody(), classes="scroll-horizontal"),
152
+ )
153
+ yield Widget(
154
+ Static("Title", classes="title"),
155
+ Static("Content", classes="user"),
156
+ OptionItem(),
157
+ OptionItem(),
158
+ OptionItem(),
159
+ Static(classes="content"),
160
+ id="sidebar",
161
+ )
162
+ yield Footer()
163
+
164
+ table.add_column("Foo", width=20)
165
+ table.add_column("Bar", width=20)
166
+ table.add_column("Baz", width=20)
167
+ table.add_column("Foo", width=20)
168
+ table.add_column("Bar", width=20)
169
+ table.add_column("Baz", width=20)
170
+ table.zebra_stripes = True
171
+ for n in range(100):
172
+ table.add_row(*[f"Cell ([b]{n}[/b], {col})" for col in range(6)])
173
+
174
+ def on_mount(self):
175
+ self.sub_title = "Widget demo"
176
+
177
+ async def on_key(self, event) -> None:
178
+ await self.dispatch_key(event)
179
+
180
+ def action_toggle_dark(self):
181
+ self.dark = not self.dark
182
+
183
+ def action_query_test(self):
184
+ query = self.query("Tweet")
185
+ self.log(query)
186
+ self.log(query.nodes)
187
+ self.log(query)
188
+ self.log(query.nodes)
189
+
190
+ query.set_styles("outline: outer red;")
191
+
192
+ query = query.exclude(".scroll-horizontal")
193
+ self.log(query)
194
+ self.log(query.nodes)
195
+
196
+ # query = query.filter(".rubbish")
197
+ # self.log(query)
198
+ # self.log(query.first())
199
+
200
+ async def key_q(self):
201
+ await self.shutdown()
202
+
203
+ def key_x(self):
204
+ self.panic(self.tree)
205
+
206
+ def key_escape(self):
207
+ self.app.bell()
208
+
209
+ def key_t(self):
210
+ # Pressing "t" toggles the content of the TweetBody widget, from a long "Lorem ipsum..." to a shorter one.
211
+ tweet_body = self.query("TweetBody").first()
212
+ tweet_body.short_lorem = not tweet_body.short_lorem
213
+
214
+ def key_v(self):
215
+ self.get_child(id="content").scroll_to_widget(self.scroll_to_target)
216
+
217
+ def key_space(self):
218
+ self.bell()
219
+
220
+
221
+ app = BasicApp()
222
+
223
+ if __name__ == "__main__":
224
+ app.run()
225
+
226
+ # from textual.geometry import Region
227
+ # from textual.color import Color
228
+
229
+ # print(Region.intersection.cache_info())
230
+ # print(Region.overlaps.cache_info())
231
+ # print(Region.union.cache_info())
232
+ # print(Region.split_vertical.cache_info())
233
+ # print(Region.__contains__.cache_info())
234
+ # from textual.css.scalar import Scalar
235
+
236
+ # print(Scalar.resolve_dimension.cache_info())
237
+
238
+ # from rich.style import Style
239
+ # from rich.cells import cached_cell_len
240
+
241
+ # print(Style._add.cache_info())
242
+
243
+ # print(cached_cell_len.cache_info())
testbed/Textualize__textual/sandbox/will/bindings.py ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from textual.app import App, ComposeResult
2
+ from textual.widgets import Footer, Static
3
+
4
+
5
+ class Focusable(Static, can_focus=True):
6
+ DEFAULT_CSS = """
7
+ Focusable {
8
+ background: blue 20%;
9
+ height: 1fr;
10
+ padding: 1;
11
+ }
12
+ Focusable:hover {
13
+ outline: solid white;
14
+ }
15
+ Focusable:focus {
16
+ background: red 20%;
17
+ }
18
+
19
+ """
20
+
21
+
22
+ class Focusable1(Focusable):
23
+
24
+ BINDINGS = [
25
+ ("a", "app.bell", "Ding"),
26
+ ]
27
+
28
+ def render(self) -> str:
29
+ return repr(self)
30
+
31
+
32
+ class Focusable2(Focusable):
33
+ CSS = ""
34
+ BINDINGS = [
35
+ ("b", "app.bell", "Beep"),
36
+ ("f1", "app.quit", "QUIT"),
37
+ ]
38
+
39
+ def render(self) -> str:
40
+ return repr(self)
41
+
42
+
43
+ class BindingApp(App):
44
+ BINDINGS = [("f1", "app.bell", "Bell")]
45
+
46
+ def compose(self) -> ComposeResult:
47
+ yield Focusable1()
48
+ yield Focusable2()
49
+ yield Footer()
50
+
51
+
52
+ app = BindingApp()
53
+ if __name__ == "__main__":
54
+ app.run()
testbed/Textualize__textual/sandbox/will/box.css ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Screen {
2
+ background: white;
3
+ color:black;
4
+ }
5
+
6
+ #box1 {
7
+ width: 10;
8
+ height: 5;
9
+ background: red 40%;
10
+ box-sizing: content-box;
11
+ }
12
+
13
+
14
+ #box2 {
15
+ width: 10;
16
+ height: 5;
17
+ padding: 1;
18
+ background:blue 40%;
19
+ box-sizing: content-box;
20
+ }
21
+
22
+ #box3 {
23
+ width: 10;
24
+ height: 5;
25
+ background:green 40%;
26
+ border: heavy;
27
+ box-sizing: content-box;
28
+ }
testbed/Textualize__textual/sandbox/will/box.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from textual.app import App
2
+ from textual.widgets import Static
3
+
4
+ class BoxApp(App):
5
+
6
+ def compose(self):
7
+ yield Static("0123456789", id="box1")
8
+ yield Static("0123456789", id="box2")
9
+ yield Static("0123456789", id="box3")
10
+
11
+
12
+ app = BoxApp(css_path="box.css")
13
+ app.run()
testbed/Textualize__textual/sandbox/will/buttons.css ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Button {
3
+ margin: 1;
4
+ width: 100%;
5
+ }
6
+
7
+ Vertical {
8
+ height: auto;
9
+ }
10
+
11
+ Horizontal {
12
+ height: auto;
13
+ }
14
+
15
+ Horizontal Button {
16
+ width: 20;
17
+
18
+ margin: 1 2 ;
19
+ }
20
+
21
+ #scroll {
22
+ height: 10;
23
+
24
+ }
testbed/Textualize__textual/sandbox/will/calculator.css ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Screen {
2
+ overflow: auto;
3
+ }
4
+
5
+ #calculator {
6
+ layout: grid;
7
+ grid-size: 4;
8
+ grid-gutter: 1 2;
9
+ grid-columns: 1fr;
10
+ grid-rows: 2fr 1fr 1fr 1fr 1fr 1fr;
11
+ margin: 1 2;
12
+ min-height:25;
13
+ min-width: 26;
14
+ }
15
+
16
+ Button {
17
+ width: 100%;
18
+ height: 100%;
19
+ }
20
+
21
+ #numbers {
22
+ column-span: 4;
23
+ content-align: right middle;
24
+ padding: 0 1;
25
+ height: 100%;
26
+ background: $primary-lighten-2;
27
+ color: $text;
28
+ }
29
+
30
+ #number-0 {
31
+ column-span: 2;
32
+ }
testbed/Textualize__textual/sandbox/will/calculator.py ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from decimal import Decimal
2
+
3
+ from textual.app import App, ComposeResult
4
+ from textual import events
5
+ from textual.containers import Container
6
+ from textual.reactive import Reactive
7
+ from textual.widgets import Button, Static
8
+
9
+
10
+ class CalculatorApp(App):
11
+ """A working 'desktop' calculator."""
12
+
13
+ numbers = Reactive.var("0")
14
+ show_ac = Reactive.var(True)
15
+ left = Reactive.var(Decimal("0"))
16
+ right = Reactive.var(Decimal("0"))
17
+ value = Reactive.var("")
18
+ operator = Reactive.var("plus")
19
+
20
+ KEY_MAP = {
21
+ "+": "plus",
22
+ "-": "minus",
23
+ ".": "point",
24
+ "*": "multiply",
25
+ "/": "divide",
26
+ "_": "plus-minus",
27
+ "%": "percent",
28
+ "=": "equals",
29
+ }
30
+
31
+ def watch_numbers(self, value: str) -> None:
32
+ """Called when numbers is updated."""
33
+ # Update the Numbers widget
34
+ self.query_one("#numbers", Static).update(value)
35
+
36
+ def compute_show_ac(self) -> bool:
37
+ """Compute switch to show AC or C button"""
38
+ return self.value in ("", "0") and self.numbers == "0"
39
+
40
+ def watch_show_ac(self, show_ac: bool) -> None:
41
+ """Called when show_ac changes."""
42
+ self.query_one("#c").display = not show_ac
43
+ self.query_one("#ac").display = show_ac
44
+
45
+ def compose(self) -> ComposeResult:
46
+ """Add our buttons."""
47
+ yield Container(
48
+ Static(id="numbers"),
49
+ Button("AC", id="ac", variant="primary"),
50
+ Button("C", id="c", variant="primary"),
51
+ Button("+/-", id="plus-minus", variant="primary"),
52
+ Button("%", id="percent", variant="primary"),
53
+ Button("÷", id="divide", variant="warning"),
54
+ Button("7", id="number-7"),
55
+ Button("8", id="number-8"),
56
+ Button("9", id="number-9"),
57
+ Button("×", id="multiply", variant="warning"),
58
+ Button("4", id="number-4"),
59
+ Button("5", id="number-5"),
60
+ Button("6", id="number-6"),
61
+ Button("-", id="minus", variant="warning"),
62
+ Button("1", id="number-1"),
63
+ Button("2", id="number-2"),
64
+ Button("3", id="number-3"),
65
+ Button("+", id="plus", variant="warning"),
66
+ Button("0", id="number-0"),
67
+ Button(".", id="point"),
68
+ Button("=", id="equals", variant="warning"),
69
+ id="calculator",
70
+ )
71
+
72
+ def on_key(self, event: events.Key) -> None:
73
+ """Called when the user presses a key."""
74
+
75
+ print(f"KEY {event} was pressed!")
76
+
77
+ def press(button_id: str) -> None:
78
+ self.query_one(f"#{button_id}", Button).press()
79
+ self.set_focus(None)
80
+
81
+ key = event.key
82
+ if key.isdecimal():
83
+ press(f"number-{key}")
84
+ elif key == "c":
85
+ press("c")
86
+ press("ac")
87
+ elif key in self.KEY_MAP:
88
+ press(self.KEY_MAP[key])
89
+
90
+ def on_button_pressed(self, event: Button.Pressed) -> None:
91
+ """Called when a button is pressed."""
92
+
93
+ button_id = event.button.id
94
+ assert button_id is not None
95
+
96
+ self.bell() # Terminal bell
97
+
98
+ def do_math() -> None:
99
+ """Does the math: LEFT OPERATOR RIGHT"""
100
+ try:
101
+ if self.operator == "plus":
102
+ self.left += self.right
103
+ elif self.operator == "minus":
104
+ self.left -= self.right
105
+ elif self.operator == "divide":
106
+ self.left /= self.right
107
+ elif self.operator == "multiply":
108
+ self.left *= self.right
109
+ self.numbers = str(self.left)
110
+ self.value = ""
111
+ except Exception:
112
+ self.numbers = "Error"
113
+
114
+ if button_id.startswith("number-"):
115
+ number = button_id.partition("-")[-1]
116
+ self.numbers = self.value = self.value.lstrip("0") + number
117
+ elif button_id == "plus-minus":
118
+ self.numbers = self.value = str(Decimal(self.value or "0") * -1)
119
+ elif button_id == "percent":
120
+ self.numbers = self.value = str(Decimal(self.value or "0") / Decimal(100))
121
+ elif button_id == "point":
122
+ if "." not in self.value:
123
+ self.numbers = self.value = (self.value or "0") + "."
124
+ elif button_id == "ac":
125
+ self.value = ""
126
+ self.left = self.right = Decimal(0)
127
+ self.operator = "plus"
128
+ self.numbers = "0"
129
+ elif button_id == "c":
130
+ self.value = ""
131
+ self.numbers = "0"
132
+ elif button_id in ("plus", "minus", "divide", "multiply"):
133
+ self.right = Decimal(self.value or "0")
134
+ do_math()
135
+ self.operator = button_id
136
+ elif button_id == "equals":
137
+ if self.value:
138
+ self.right = Decimal(self.value)
139
+ do_math()
140
+
141
+
142
+ app = CalculatorApp(css_path="calculator.css")
143
+ if __name__ == "__main__":
144
+ app.run()
testbed/Textualize__textual/sandbox/will/center.py ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from textual.app import App
2
+ from textual.widgets import Static
3
+
4
+
5
+ class CenterApp(App):
6
+ DEFAULT_CSS = """
7
+
8
+ CenterApp Screen {
9
+ layout: center;
10
+ overflow: auto auto;
11
+ }
12
+
13
+ CenterApp Static {
14
+ border: wide $primary;
15
+ background: $panel;
16
+ width: 50;
17
+ height: 20;
18
+ margin: 1 2;
19
+ content-align: center middle;
20
+ }
21
+
22
+ """
23
+
24
+ def compose(self):
25
+ yield Static("Hello World!")
26
+
27
+
28
+ app = CenterApp()
testbed/Textualize__textual/sandbox/will/center2.py ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from textual.app import App
2
+ from textual.containers import Vertical, Center
3
+ from textual.widgets import Static
4
+
5
+
6
+ class CenterApp(App):
7
+ DEFAULT_CSS = """
8
+
9
+ #sidebar {
10
+ dock: left;
11
+ width: 32;
12
+ height: 100%;
13
+ border-right: vkey $primary;
14
+ }
15
+
16
+ #bottombar {
17
+ dock: bottom;
18
+ height: 12;
19
+ width: 100%;
20
+ border-top: hkey $primary;
21
+ }
22
+
23
+ #hello {
24
+ border: wide $primary;
25
+ width: 40;
26
+ height: 16;
27
+ margin: 2 4;
28
+ }
29
+
30
+ #sidebar.hidden {
31
+ width: 0;
32
+ }
33
+
34
+ Static {
35
+ background: $panel;
36
+ color: $text;
37
+ content-align: center middle;
38
+ }
39
+
40
+ """
41
+
42
+ def on_mount(self) -> None:
43
+ self.bind("t", "toggle_class('#sidebar', 'hidden')")
44
+
45
+ def compose(self):
46
+ yield Static("Sidebar", id="sidebar")
47
+ yield Vertical(
48
+ Static("Bottom bar", id="bottombar"),
49
+ Center(
50
+ Static("Hello World!", id="hello"),
51
+ ),
52
+ )
53
+
54
+
55
+ app = CenterApp()