piespector 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- piespector-0.3.1/LICENSE +21 -0
- piespector-0.3.1/PKG-INFO +59 -0
- piespector-0.3.1/README.md +29 -0
- piespector-0.3.1/pyproject.toml +53 -0
- piespector-0.3.1/setup.cfg +4 -0
- piespector-0.3.1/src/piespector/__init__.py +5 -0
- piespector-0.3.1/src/piespector/__main__.py +28 -0
- piespector-0.3.1/src/piespector/app.py +692 -0
- piespector-0.3.1/src/piespector/auth_provider.py +334 -0
- piespector-0.3.1/src/piespector/commands.py +971 -0
- piespector-0.3.1/src/piespector/domain/__init__.py +1 -0
- piespector-0.3.1/src/piespector/domain/editor.py +134 -0
- piespector-0.3.1/src/piespector/domain/history.py +55 -0
- piespector-0.3.1/src/piespector/domain/http.py +3 -0
- piespector-0.3.1/src/piespector/domain/modes.py +122 -0
- piespector-0.3.1/src/piespector/domain/requests.py +311 -0
- piespector-0.3.1/src/piespector/domain/workspace.py +29 -0
- piespector-0.3.1/src/piespector/formatting.py +21 -0
- piespector-0.3.1/src/piespector/history.py +156 -0
- piespector-0.3.1/src/piespector/http_client.py +168 -0
- piespector-0.3.1/src/piespector/interactions/__init__.py +2 -0
- piespector-0.3.1/src/piespector/interactions/controller.py +239 -0
- piespector-0.3.1/src/piespector/interactions/keys.py +101 -0
- piespector-0.3.1/src/piespector/persistence.py +67 -0
- piespector-0.3.1/src/piespector/placeholders.py +86 -0
- piespector-0.3.1/src/piespector/request_builder.py +645 -0
- piespector-0.3.1/src/piespector/request_executor.py +126 -0
- piespector-0.3.1/src/piespector/screen_refresh.py +459 -0
- piespector-0.3.1/src/piespector/screens/__init__.py +1 -0
- piespector-0.3.1/src/piespector/screens/base.py +48 -0
- piespector-0.3.1/src/piespector/screens/env/__init__.py +1 -0
- piespector-0.3.1/src/piespector/screens/env/controller.py +151 -0
- piespector-0.3.1/src/piespector/screens/env/render.py +208 -0
- piespector-0.3.1/src/piespector/screens/env/screen.py +117 -0
- piespector-0.3.1/src/piespector/screens/help/__init__.py +1 -0
- piespector-0.3.1/src/piespector/screens/help/render.py +55 -0
- piespector-0.3.1/src/piespector/screens/history/__init__.py +1 -0
- piespector-0.3.1/src/piespector/screens/history/controller.py +114 -0
- piespector-0.3.1/src/piespector/screens/history/render.py +483 -0
- piespector-0.3.1/src/piespector/screens/history/screen.py +37 -0
- piespector-0.3.1/src/piespector/screens/home/__init__.py +1 -0
- piespector-0.3.1/src/piespector/screens/home/controller.py +73 -0
- piespector-0.3.1/src/piespector/screens/home/controllers/__init__.py +2 -0
- piespector-0.3.1/src/piespector/screens/home/controllers/auth.py +194 -0
- piespector-0.3.1/src/piespector/screens/home/controllers/base.py +55 -0
- piespector-0.3.1/src/piespector/screens/home/controllers/body.py +244 -0
- piespector-0.3.1/src/piespector/screens/home/controllers/headers.py +191 -0
- piespector-0.3.1/src/piespector/screens/home/controllers/navigation.py +212 -0
- piespector-0.3.1/src/piespector/screens/home/controllers/params.py +129 -0
- piespector-0.3.1/src/piespector/screens/home/controllers/request.py +181 -0
- piespector-0.3.1/src/piespector/screens/home/controllers/response.py +89 -0
- piespector-0.3.1/src/piespector/screens/home/jump_titles.py +120 -0
- piespector-0.3.1/src/piespector/screens/home/layout.py +50 -0
- piespector-0.3.1/src/piespector/screens/home/messages.py +131 -0
- piespector-0.3.1/src/piespector/screens/home/render.py +1100 -0
- piespector-0.3.1/src/piespector/screens/home/request/__init__.py +1 -0
- piespector-0.3.1/src/piespector/screens/home/request/dropdown.py +12 -0
- piespector-0.3.1/src/piespector/screens/home/request/header_editor.py +137 -0
- piespector-0.3.1/src/piespector/screens/home/request/method_selection.py +52 -0
- piespector-0.3.1/src/piespector/screens/home/request/query_editor.py +109 -0
- piespector-0.3.1/src/piespector/screens/home/request/request_auth.py +160 -0
- piespector-0.3.1/src/piespector/screens/home/request/request_body.py +312 -0
- piespector-0.3.1/src/piespector/screens/home/request/request_editor.py +95 -0
- piespector-0.3.1/src/piespector/screens/home/request/request_metadata.py +47 -0
- piespector-0.3.1/src/piespector/screens/home/request/request_options.py +46 -0
- piespector-0.3.1/src/piespector/screens/home/request/url_bar.py +229 -0
- piespector-0.3.1/src/piespector/screens/home/response_panel.py +178 -0
- piespector-0.3.1/src/piespector/screens/home/screen.py +585 -0
- piespector-0.3.1/src/piespector/screens/home/selection.py +142 -0
- piespector-0.3.1/src/piespector/screens/home/sidebar.py +113 -0
- piespector-0.3.1/src/piespector/search.py +315 -0
- piespector-0.3.1/src/piespector/state.py +218 -0
- piespector-0.3.1/src/piespector/state_core.py +85 -0
- piespector-0.3.1/src/piespector/state_env.py +399 -0
- piespector-0.3.1/src/piespector/state_history.py +151 -0
- piespector-0.3.1/src/piespector/state_home.py +1256 -0
- piespector-0.3.1/src/piespector/state_workspace.py +1414 -0
- piespector-0.3.1/src/piespector/storage/__init__.py +69 -0
- piespector-0.3.1/src/piespector/storage/paths.py +166 -0
- piespector-0.3.1/src/piespector/storage/serializer.py +1019 -0
- piespector-0.3.1/src/piespector/ui/__init__.py +35 -0
- piespector-0.3.1/src/piespector/ui/command_line_content.py +164 -0
- piespector-0.3.1/src/piespector/ui/command_palette.py +231 -0
- piespector-0.3.1/src/piespector/ui/css.py +624 -0
- piespector-0.3.1/src/piespector/ui/footer.py +87 -0
- piespector-0.3.1/src/piespector/ui/help_content.py +158 -0
- piespector-0.3.1/src/piespector/ui/help_panel.py +104 -0
- piespector-0.3.1/src/piespector/ui/input.py +11 -0
- piespector-0.3.1/src/piespector/ui/jump_overlay.py +101 -0
- piespector-0.3.1/src/piespector/ui/jumper.py +44 -0
- piespector-0.3.1/src/piespector/ui/overlays.py +528 -0
- piespector-0.3.1/src/piespector/ui/rendering_helpers.py +143 -0
- piespector-0.3.1/src/piespector/ui/select.py +4 -0
- piespector-0.3.1/src/piespector/ui/selection.py +54 -0
- piespector-0.3.1/src/piespector/ui/session_state.py +116 -0
- piespector-0.3.1/src/piespector/ui/status_content.py +156 -0
- piespector-0.3.1/src/piespector/ui/status_hints.py +240 -0
- piespector-0.3.1/src/piespector/widget/__init__.py +0 -0
- piespector-0.3.1/src/piespector/widget/select/__init__.py +15 -0
- piespector-0.3.1/src/piespector/widget/select/events.py +42 -0
- piespector-0.3.1/src/piespector/widget/select/logic.py +25 -0
- piespector-0.3.1/src/piespector/widget/select/models.py +34 -0
- piespector-0.3.1/src/piespector/widget/select/state.py +27 -0
- piespector-0.3.1/src/piespector/widget/select/styles.tcss +46 -0
- piespector-0.3.1/src/piespector/widget/select/sync.py +80 -0
- piespector-0.3.1/src/piespector/widget/select/widget.py +117 -0
- piespector-0.3.1/src/piespector/widget/tree/__init__.py +10 -0
- piespector-0.3.1/src/piespector/widget/tree/state.py +23 -0
- piespector-0.3.1/src/piespector/widget/tree/sync.py +37 -0
- piespector-0.3.1/src/piespector/widget/tree/widget.py +56 -0
- piespector-0.3.1/src/piespector.egg-info/PKG-INFO +59 -0
- piespector-0.3.1/src/piespector.egg-info/SOURCES.txt +125 -0
- piespector-0.3.1/src/piespector.egg-info/dependency_links.txt +1 -0
- piespector-0.3.1/src/piespector.egg-info/entry_points.txt +2 -0
- piespector-0.3.1/src/piespector.egg-info/requires.txt +1 -0
- piespector-0.3.1/src/piespector.egg-info/top_level.txt +1 -0
- piespector-0.3.1/tests/test_app.py +551 -0
- piespector-0.3.1/tests/test_app_ui.py +2908 -0
- piespector-0.3.1/tests/test_auth.py +211 -0
- piespector-0.3.1/tests/test_body.py +156 -0
- piespector-0.3.1/tests/test_commands.py +271 -0
- piespector-0.3.1/tests/test_http_client_misc.py +180 -0
- piespector-0.3.1/tests/test_main.py +40 -0
- piespector-0.3.1/tests/test_rendering_misc.py +802 -0
- piespector-0.3.1/tests/test_state_workspace.py +183 -0
- piespector-0.3.1/tests/test_storage.py +538 -0
- piespector-0.3.1/tests/test_utils.py +296 -0
piespector-0.3.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Oleksii Pedko
|
|
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.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: piespector
|
|
3
|
+
Version: 0.3.1
|
|
4
|
+
Summary: A terminal-first API client for organized request workflows, history, and replay.
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Homepage, https://www.piespector.com
|
|
7
|
+
Project-URL: Documentation, https://www.piespector.com
|
|
8
|
+
Project-URL: Installation, https://www.piespector.com/getting-started/installation/
|
|
9
|
+
Project-URL: Repository, https://github.com/xeype/piespector
|
|
10
|
+
Project-URL: Issues, https://github.com/xeype/piespector/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/xeype/piespector/blob/main/CHANGELOG.md
|
|
12
|
+
Keywords: api,http,rest,terminal,textual,tui
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Operating System :: MacOS
|
|
17
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
18
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
24
|
+
Classifier: Topic :: Utilities
|
|
25
|
+
Requires-Python: >=3.10
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
License-File: LICENSE
|
|
28
|
+
Requires-Dist: textual[syntax]>=0.58.1
|
|
29
|
+
Dynamic: license-file
|
|
30
|
+
|
|
31
|
+
# piespector
|
|
32
|
+
|
|
33
|
+
[](https://www.piespector.com)
|
|
34
|
+
[](https://www.piespector.com/getting-started/installation/)
|
|
35
|
+
[](./LICENSE)
|
|
36
|
+
[](https://www.python.org/downloads/)
|
|
37
|
+
|
|
38
|
+
`piespector` is a terminal-first API client.
|
|
39
|
+
|
|
40
|
+
Organize HTTP requests into collections and folders, manage named env sets, replay history, and work from a keyboard-driven TUI.
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+
|
|
44
|
+
## Installation
|
|
45
|
+
|
|
46
|
+
Install the published app with `uv` or `pipx`:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
uv tool install piespector
|
|
50
|
+
pipx install piespector
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
`piespector` installs a global `piespector` command and stores app data in the platform user data directory, so you can launch it from any working directory.
|
|
54
|
+
|
|
55
|
+
Or install [from source](https://www.piespector.com/getting-started/installation/#install-from-source).
|
|
56
|
+
|
|
57
|
+
## Documentation
|
|
58
|
+
|
|
59
|
+
[piespector.com](https://www.piespector.com)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# piespector
|
|
2
|
+
|
|
3
|
+
[](https://www.piespector.com)
|
|
4
|
+
[](https://www.piespector.com/getting-started/installation/)
|
|
5
|
+
[](./LICENSE)
|
|
6
|
+
[](https://www.python.org/downloads/)
|
|
7
|
+
|
|
8
|
+
`piespector` is a terminal-first API client.
|
|
9
|
+
|
|
10
|
+
Organize HTTP requests into collections and folders, manage named env sets, replay history, and work from a keyboard-driven TUI.
|
|
11
|
+
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
Install the published app with `uv` or `pipx`:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
uv tool install piespector
|
|
20
|
+
pipx install piespector
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
`piespector` installs a global `piespector` command and stores app data in the platform user data directory, so you can launch it from any working directory.
|
|
24
|
+
|
|
25
|
+
Or install [from source](https://www.piespector.com/getting-started/installation/#install-from-source).
|
|
26
|
+
|
|
27
|
+
## Documentation
|
|
28
|
+
|
|
29
|
+
[piespector.com](https://www.piespector.com)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "piespector"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "A terminal-first API client for organized request workflows, history, and replay."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
keywords = ["api", "http", "rest", "terminal", "textual", "tui"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 3 - Alpha",
|
|
16
|
+
"Environment :: Console",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"Operating System :: MacOS",
|
|
19
|
+
"Operating System :: Microsoft :: Windows",
|
|
20
|
+
"Operating System :: POSIX :: Linux",
|
|
21
|
+
"Programming Language :: Python :: 3",
|
|
22
|
+
"Programming Language :: Python :: 3.10",
|
|
23
|
+
"Programming Language :: Python :: 3.11",
|
|
24
|
+
"Programming Language :: Python :: 3.12",
|
|
25
|
+
"Topic :: Internet :: WWW/HTTP",
|
|
26
|
+
"Topic :: Utilities",
|
|
27
|
+
]
|
|
28
|
+
dependencies = [
|
|
29
|
+
"textual[syntax]>=0.58.1",
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
[project.urls]
|
|
33
|
+
Homepage = "https://www.piespector.com"
|
|
34
|
+
Documentation = "https://www.piespector.com"
|
|
35
|
+
Installation = "https://www.piespector.com/getting-started/installation/"
|
|
36
|
+
Repository = "https://github.com/xeype/piespector"
|
|
37
|
+
Issues = "https://github.com/xeype/piespector/issues"
|
|
38
|
+
Changelog = "https://github.com/xeype/piespector/blob/main/CHANGELOG.md"
|
|
39
|
+
|
|
40
|
+
[project.scripts]
|
|
41
|
+
piespector = "piespector.__main__:main"
|
|
42
|
+
|
|
43
|
+
[tool.setuptools]
|
|
44
|
+
package-dir = {"" = "src"}
|
|
45
|
+
|
|
46
|
+
[tool.setuptools.dynamic]
|
|
47
|
+
version = {attr = "piespector.__version__"}
|
|
48
|
+
|
|
49
|
+
[tool.setuptools.packages.find]
|
|
50
|
+
where = ["src"]
|
|
51
|
+
|
|
52
|
+
[tool.setuptools.package-data]
|
|
53
|
+
piespector = ["**/*.tcss"]
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import argparse
|
|
4
|
+
|
|
5
|
+
from piespector import __version__
|
|
6
|
+
from piespector.app import PiespectorApp
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
10
|
+
parser = argparse.ArgumentParser(
|
|
11
|
+
prog="piespector",
|
|
12
|
+
description="Terminal-first API client for organized request workflows.",
|
|
13
|
+
)
|
|
14
|
+
parser.add_argument(
|
|
15
|
+
"--version",
|
|
16
|
+
action="version",
|
|
17
|
+
version=f"%(prog)s {__version__}",
|
|
18
|
+
)
|
|
19
|
+
return parser
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def main(argv: list[str] | None = None) -> None:
|
|
23
|
+
build_parser().parse_args(argv)
|
|
24
|
+
PiespectorApp(persist_state=True).run()
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
if __name__ == "__main__":
|
|
28
|
+
main()
|