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.
- dkview-3.0.0b5/LICENSE +21 -0
- dkview-3.0.0b5/MANIFEST.in +3 -0
- dkview-3.0.0b5/Makefile +37 -0
- dkview-3.0.0b5/PKG-INFO +1191 -0
- dkview-3.0.0b5/README.md +1158 -0
- dkview-3.0.0b5/pyproject.toml +51 -0
- dkview-3.0.0b5/setup.cfg +4 -0
- dkview-3.0.0b5/src/dkview/__init__.py +3 -0
- dkview-3.0.0b5/src/dkview/__main__.py +3 -0
- dkview-3.0.0b5/src/dkview/ansi.py +124 -0
- dkview-3.0.0b5/src/dkview/cli.py +261 -0
- dkview-3.0.0b5/src/dkview/docker.py +190 -0
- dkview-3.0.0b5/src/dkview/engine.py +34 -0
- dkview-3.0.0b5/src/dkview/features/__init__.py +0 -0
- dkview-3.0.0b5/src/dkview/features/clean.py +150 -0
- dkview-3.0.0b5/src/dkview/features/dashboard.py +168 -0
- dkview-3.0.0b5/src/dkview/features/doctor.py +259 -0
- dkview-3.0.0b5/src/dkview/features/errors.py +456 -0
- dkview-3.0.0b5/src/dkview/features/images.py +213 -0
- dkview-3.0.0b5/src/dkview/features/inspect.py +333 -0
- dkview-3.0.0b5/src/dkview/features/live.py +52 -0
- dkview-3.0.0b5/src/dkview/features/logs.py +115 -0
- dkview-3.0.0b5/src/dkview/features/shell.py +52 -0
- dkview-3.0.0b5/src/dkview/features/tables.py +102 -0
- dkview-3.0.0b5/src/dkview/formats.py +140 -0
- dkview-3.0.0b5/src/dkview/layout.py +184 -0
- dkview-3.0.0b5/src/dkview/options.py +28 -0
- dkview-3.0.0b5/src/dkview/runner.py +46 -0
- dkview-3.0.0b5/src/dkview/styles.py +91 -0
- dkview-3.0.0b5/src/dkview/table.py +108 -0
- dkview-3.0.0b5/src/dkview/transform.py +184 -0
- dkview-3.0.0b5/src/dkview/units.py +52 -0
- dkview-3.0.0b5/src/dkview.egg-info/PKG-INFO +1191 -0
- dkview-3.0.0b5/src/dkview.egg-info/SOURCES.txt +87 -0
- dkview-3.0.0b5/src/dkview.egg-info/dependency_links.txt +1 -0
- dkview-3.0.0b5/src/dkview.egg-info/entry_points.txt +2 -0
- dkview-3.0.0b5/src/dkview.egg-info/requires.txt +3 -0
- dkview-3.0.0b5/src/dkview.egg-info/top_level.txt +1 -0
- dkview-3.0.0b5/tests/conftest.py +63 -0
- dkview-3.0.0b5/tests/fake_docker.py +152 -0
- dkview-3.0.0b5/tests/fixtures/container_ids.txt +16 -0
- dkview-3.0.0b5/tests/fixtures/container_images.txt +16 -0
- dkview-3.0.0b5/tests/fixtures/errors_containers.jsonl +3 -0
- dkview-3.0.0b5/tests/fixtures/errors_logs_checkout.txt +5 -0
- dkview-3.0.0b5/tests/fixtures/errors_logs_orders_api.txt +7 -0
- dkview-3.0.0b5/tests/fixtures/errors_logs_orders_worker.txt +1 -0
- dkview-3.0.0b5/tests/fixtures/errors_logs_quiet-box.txt +0 -0
- dkview-3.0.0b5/tests/fixtures/errors_logs_traefik.txt +0 -0
- dkview-3.0.0b5/tests/fixtures/errors_services.jsonl +3 -0
- dkview-3.0.0b5/tests/fixtures/images.jsonl +10 -0
- dkview-3.0.0b5/tests/fixtures/images_dangling.jsonl +1 -0
- dkview-3.0.0b5/tests/fixtures/images_legacy.txt +4 -0
- dkview-3.0.0b5/tests/fixtures/images_table.jsonl +3 -0
- dkview-3.0.0b5/tests/fixtures/images_v29.txt +4 -0
- dkview-3.0.0b5/tests/fixtures/inspect_containers.json +506 -0
- dkview-3.0.0b5/tests/fixtures/inspect_image.json +48 -0
- dkview-3.0.0b5/tests/fixtures/inspect_network.json +70 -0
- dkview-3.0.0b5/tests/fixtures/inspect_service.json +126 -0
- dkview-3.0.0b5/tests/fixtures/node_ls.jsonl +1 -0
- dkview-3.0.0b5/tests/fixtures/node_ls.txt +2 -0
- dkview-3.0.0b5/tests/fixtures/ps.jsonl +6 -0
- dkview-3.0.0b5/tests/fixtures/ps_no_trunc.txt +7 -0
- dkview-3.0.0b5/tests/fixtures/ps_screenshot.txt +3 -0
- dkview-3.0.0b5/tests/fixtures/service_ls.jsonl +2 -0
- dkview-3.0.0b5/tests/fixtures/service_ls.txt +3 -0
- dkview-3.0.0b5/tests/fixtures/service_ps.jsonl +7 -0
- dkview-3.0.0b5/tests/fixtures/service_ps.txt +8 -0
- dkview-3.0.0b5/tests/fixtures/service_ps_api.jsonl +6 -0
- dkview-3.0.0b5/tests/fixtures/service_ps_broken.jsonl +5 -0
- dkview-3.0.0b5/tests/fixtures/service_ps_crashy.jsonl +5 -0
- dkview-3.0.0b5/tests/fixtures/services.jsonl +3 -0
- dkview-3.0.0b5/tests/fixtures/services_inspect.jsonl +3 -0
- dkview-3.0.0b5/tests/fixtures/stats.jsonl +5 -0
- dkview-3.0.0b5/tests/fixtures/stats.txt +6 -0
- dkview-3.0.0b5/tests/real/__init__.py +0 -0
- dkview-3.0.0b5/tests/real/conftest.py +106 -0
- dkview-3.0.0b5/tests/real/test_real_docker.py +140 -0
- dkview-3.0.0b5/tests/test_clean_doctor.py +167 -0
- dkview-3.0.0b5/tests/test_cli.py +97 -0
- dkview-3.0.0b5/tests/test_dashboard.py +43 -0
- dkview-3.0.0b5/tests/test_docker.py +62 -0
- dkview-3.0.0b5/tests/test_engines.py +71 -0
- dkview-3.0.0b5/tests/test_errors.py +190 -0
- dkview-3.0.0b5/tests/test_features.py +101 -0
- dkview-3.0.0b5/tests/test_formats.py +85 -0
- dkview-3.0.0b5/tests/test_layout.py +82 -0
- dkview-3.0.0b5/tests/test_styles.py +36 -0
- dkview-3.0.0b5/tests/test_table.py +55 -0
- 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.
|
dkview-3.0.0b5/Makefile
ADDED
|
@@ -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 {} +
|