dkview 3.0.0b5__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.
Files changed (89) hide show
  1. dkview-3.0.0b5/LICENSE +21 -0
  2. dkview-3.0.0b5/MANIFEST.in +3 -0
  3. dkview-3.0.0b5/Makefile +37 -0
  4. dkview-3.0.0b5/PKG-INFO +1191 -0
  5. dkview-3.0.0b5/README.md +1158 -0
  6. dkview-3.0.0b5/pyproject.toml +51 -0
  7. dkview-3.0.0b5/setup.cfg +4 -0
  8. dkview-3.0.0b5/src/dkview/__init__.py +3 -0
  9. dkview-3.0.0b5/src/dkview/__main__.py +3 -0
  10. dkview-3.0.0b5/src/dkview/ansi.py +124 -0
  11. dkview-3.0.0b5/src/dkview/cli.py +261 -0
  12. dkview-3.0.0b5/src/dkview/docker.py +190 -0
  13. dkview-3.0.0b5/src/dkview/engine.py +34 -0
  14. dkview-3.0.0b5/src/dkview/features/__init__.py +0 -0
  15. dkview-3.0.0b5/src/dkview/features/clean.py +150 -0
  16. dkview-3.0.0b5/src/dkview/features/dashboard.py +168 -0
  17. dkview-3.0.0b5/src/dkview/features/doctor.py +259 -0
  18. dkview-3.0.0b5/src/dkview/features/errors.py +456 -0
  19. dkview-3.0.0b5/src/dkview/features/images.py +213 -0
  20. dkview-3.0.0b5/src/dkview/features/inspect.py +333 -0
  21. dkview-3.0.0b5/src/dkview/features/live.py +52 -0
  22. dkview-3.0.0b5/src/dkview/features/logs.py +115 -0
  23. dkview-3.0.0b5/src/dkview/features/shell.py +52 -0
  24. dkview-3.0.0b5/src/dkview/features/tables.py +102 -0
  25. dkview-3.0.0b5/src/dkview/formats.py +140 -0
  26. dkview-3.0.0b5/src/dkview/layout.py +184 -0
  27. dkview-3.0.0b5/src/dkview/options.py +28 -0
  28. dkview-3.0.0b5/src/dkview/runner.py +46 -0
  29. dkview-3.0.0b5/src/dkview/styles.py +91 -0
  30. dkview-3.0.0b5/src/dkview/table.py +108 -0
  31. dkview-3.0.0b5/src/dkview/transform.py +184 -0
  32. dkview-3.0.0b5/src/dkview/units.py +52 -0
  33. dkview-3.0.0b5/src/dkview.egg-info/PKG-INFO +1191 -0
  34. dkview-3.0.0b5/src/dkview.egg-info/SOURCES.txt +87 -0
  35. dkview-3.0.0b5/src/dkview.egg-info/dependency_links.txt +1 -0
  36. dkview-3.0.0b5/src/dkview.egg-info/entry_points.txt +2 -0
  37. dkview-3.0.0b5/src/dkview.egg-info/requires.txt +3 -0
  38. dkview-3.0.0b5/src/dkview.egg-info/top_level.txt +1 -0
  39. dkview-3.0.0b5/tests/conftest.py +63 -0
  40. dkview-3.0.0b5/tests/fake_docker.py +152 -0
  41. dkview-3.0.0b5/tests/fixtures/container_ids.txt +16 -0
  42. dkview-3.0.0b5/tests/fixtures/container_images.txt +16 -0
  43. dkview-3.0.0b5/tests/fixtures/errors_containers.jsonl +3 -0
  44. dkview-3.0.0b5/tests/fixtures/errors_logs_checkout.txt +5 -0
  45. dkview-3.0.0b5/tests/fixtures/errors_logs_orders_api.txt +7 -0
  46. dkview-3.0.0b5/tests/fixtures/errors_logs_orders_worker.txt +1 -0
  47. dkview-3.0.0b5/tests/fixtures/errors_logs_quiet-box.txt +0 -0
  48. dkview-3.0.0b5/tests/fixtures/errors_logs_traefik.txt +0 -0
  49. dkview-3.0.0b5/tests/fixtures/errors_services.jsonl +3 -0
  50. dkview-3.0.0b5/tests/fixtures/images.jsonl +10 -0
  51. dkview-3.0.0b5/tests/fixtures/images_dangling.jsonl +1 -0
  52. dkview-3.0.0b5/tests/fixtures/images_legacy.txt +4 -0
  53. dkview-3.0.0b5/tests/fixtures/images_table.jsonl +3 -0
  54. dkview-3.0.0b5/tests/fixtures/images_v29.txt +4 -0
  55. dkview-3.0.0b5/tests/fixtures/inspect_containers.json +506 -0
  56. dkview-3.0.0b5/tests/fixtures/inspect_image.json +48 -0
  57. dkview-3.0.0b5/tests/fixtures/inspect_network.json +70 -0
  58. dkview-3.0.0b5/tests/fixtures/inspect_service.json +126 -0
  59. dkview-3.0.0b5/tests/fixtures/node_ls.jsonl +1 -0
  60. dkview-3.0.0b5/tests/fixtures/node_ls.txt +2 -0
  61. dkview-3.0.0b5/tests/fixtures/ps.jsonl +6 -0
  62. dkview-3.0.0b5/tests/fixtures/ps_no_trunc.txt +7 -0
  63. dkview-3.0.0b5/tests/fixtures/ps_screenshot.txt +3 -0
  64. dkview-3.0.0b5/tests/fixtures/service_ls.jsonl +2 -0
  65. dkview-3.0.0b5/tests/fixtures/service_ls.txt +3 -0
  66. dkview-3.0.0b5/tests/fixtures/service_ps.jsonl +7 -0
  67. dkview-3.0.0b5/tests/fixtures/service_ps.txt +8 -0
  68. dkview-3.0.0b5/tests/fixtures/service_ps_api.jsonl +6 -0
  69. dkview-3.0.0b5/tests/fixtures/service_ps_broken.jsonl +5 -0
  70. dkview-3.0.0b5/tests/fixtures/service_ps_crashy.jsonl +5 -0
  71. dkview-3.0.0b5/tests/fixtures/services.jsonl +3 -0
  72. dkview-3.0.0b5/tests/fixtures/services_inspect.jsonl +3 -0
  73. dkview-3.0.0b5/tests/fixtures/stats.jsonl +5 -0
  74. dkview-3.0.0b5/tests/fixtures/stats.txt +6 -0
  75. dkview-3.0.0b5/tests/real/__init__.py +0 -0
  76. dkview-3.0.0b5/tests/real/conftest.py +106 -0
  77. dkview-3.0.0b5/tests/real/test_real_docker.py +140 -0
  78. dkview-3.0.0b5/tests/test_clean_doctor.py +167 -0
  79. dkview-3.0.0b5/tests/test_cli.py +97 -0
  80. dkview-3.0.0b5/tests/test_dashboard.py +43 -0
  81. dkview-3.0.0b5/tests/test_docker.py +62 -0
  82. dkview-3.0.0b5/tests/test_engines.py +71 -0
  83. dkview-3.0.0b5/tests/test_errors.py +190 -0
  84. dkview-3.0.0b5/tests/test_features.py +101 -0
  85. dkview-3.0.0b5/tests/test_formats.py +85 -0
  86. dkview-3.0.0b5/tests/test_layout.py +82 -0
  87. dkview-3.0.0b5/tests/test_styles.py +36 -0
  88. dkview-3.0.0b5/tests/test_table.py +55 -0
  89. dkview-3.0.0b5/tests/test_transform.py +130 -0
dkview-3.0.0b5/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mamurjon
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,3 @@
1
+ include LICENSE README.md Makefile
2
+ graft tests
3
+ global-exclude __pycache__ *.py[co]
@@ -0,0 +1,37 @@
1
+ PYTHON ?= python3
2
+
3
+ .PHONY: test test-real build check zipapp install clean
4
+
5
+ test:
6
+ PYTHONPATH=src $(PYTHON) -m pytest -q
7
+
8
+ # Against the real docker daemon: creates a swarm (if needed), a stack, services
9
+ # and containers named rt_*, and removes them afterwards. Needs busybox:latest.
10
+ test-real:
11
+ REAL_DOCKER=1 PYTHONPATH=src $(PYTHON) -m pytest -v tests/real
12
+
13
+ # Wheel and sdist in dist/, for `pip install`.
14
+ build:
15
+ $(PYTHON) -m build
16
+
17
+ # Build, then check that PyPI will accept the metadata and render the README.
18
+ check: build
19
+ $(PYTHON) -m twine check --strict dist/dkview-[0-9]*
20
+
21
+ # One executable file, dist/dkview, that needs nothing but python3.
22
+ # Copy it to a server and run it; no pip required.
23
+ zipapp:
24
+ rm -rf build/zipapp && mkdir -p build/zipapp dist
25
+ cp -r src/dkview build/zipapp/
26
+ find build/zipapp -name __pycache__ -prune -exec rm -rf {} +
27
+ $(PYTHON) -m zipapp build/zipapp -m "dkview.cli:main" \
28
+ -p "/usr/bin/env python3" -c -o dist/dkview
29
+ chmod +x dist/dkview
30
+ @echo "built dist/dkview"
31
+
32
+ install:
33
+ $(PYTHON) -m pip install --user .
34
+
35
+ clean:
36
+ rm -rf build dist src/*.egg-info .pytest_cache
37
+ find . -name __pycache__ -prune -exec rm -rf {} +