withcache 0.8.2__tar.gz → 0.8.4__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.
- {withcache-0.8.2 → withcache-0.8.4}/PKG-INFO +2 -2
- {withcache-0.8.2 → withcache-0.8.4}/README.md +1 -1
- {withcache-0.8.2 → withcache-0.8.4}/shim/build.zig.zon +1 -1
- {withcache-0.8.2 → withcache-0.8.4}/src/withcache/__init__.py +1 -1
- {withcache-0.8.2 → withcache-0.8.4}/src/withcache/server.py +13 -15
- {withcache-0.8.2 → withcache-0.8.4}/.gitignore +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/LICENSE +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/deploy/Containerfile +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/deploy/compose.yml +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/hatch_build.py +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/pyproject.toml +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/shim/build.zig +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/shim/shim.zig +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/src/withcache/_shim.py +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/src/withcache/client.py +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/src/withcache/curlwithcache.py +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/src/withcache/oras.py +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/src/withcache/static/bootstrap-icons.min.css +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/src/withcache/static/bootstrap.min.css +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/src/withcache/static/fonts/bootstrap-icons.woff +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/src/withcache/static/fonts/bootstrap-icons.woff2 +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/src/withcache/static/htmx.min.js +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/src/withcache/wgetwithcache.py +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/tests/test_differential.py +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/tests/test_oras.py +0 -0
- {withcache-0.8.2 → withcache-0.8.4}/tests/test_withcache.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: withcache
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.4
|
|
4
4
|
Summary: Operator-curated, URL-keyed artifact cache for a small lab (CUDA/ROCm/DOCA/firmware)
|
|
5
5
|
Project-URL: Homepage, https://github.com/safl/withcache
|
|
6
6
|
Author-email: "Simon A. F. Lund" <safl@safl.dk>
|
|
@@ -45,7 +45,7 @@ By default a miss is **auto-fetched**: the request falls through to origin (so
|
|
|
45
45
|
the caller gets its file straight away), and the cache-host pulls the same
|
|
46
46
|
artifact in the background, so the next request hits. Run with **`--curate`** to
|
|
47
47
|
require a human instead, who reviews the miss list in a small web UI and presses
|
|
48
|
-
**Download** (or pre-seeds via
|
|
48
|
+
**Download** (or pre-seeds via the Downloads-page **Fetch** form). Either way the cache-host is the
|
|
49
49
|
only box that needs internet egress (and any vendor credentials), and clients
|
|
50
50
|
never write to it.
|
|
51
51
|
|
|
@@ -27,7 +27,7 @@ By default a miss is **auto-fetched**: the request falls through to origin (so
|
|
|
27
27
|
the caller gets its file straight away), and the cache-host pulls the same
|
|
28
28
|
artifact in the background, so the next request hits. Run with **`--curate`** to
|
|
29
29
|
require a human instead, who reviews the miss list in a small web UI and presses
|
|
30
|
-
**Download** (or pre-seeds via
|
|
30
|
+
**Download** (or pre-seeds via the Downloads-page **Fetch** form). Either way the cache-host is the
|
|
31
31
|
only box that needs internet egress (and any vendor credentials), and clients
|
|
32
32
|
never write to it.
|
|
33
33
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
.name = .withcache_shim,
|
|
3
3
|
// Zig requires a literal here; keep it in lockstep with the project's
|
|
4
4
|
// single source (src/withcache/__init__.py) via `make bump` / `make version-check`.
|
|
5
|
-
.version = "0.8.
|
|
5
|
+
.version = "0.8.4",
|
|
6
6
|
.fingerprint = 0xd7d96c5ed212ccaa,
|
|
7
7
|
.minimum_zig_version = "0.16.0",
|
|
8
8
|
.paths = .{
|
|
@@ -17,6 +17,6 @@ All modules are stdlib-only and self-contained.
|
|
|
17
17
|
from . import oras
|
|
18
18
|
from .client import blob_url, cache_base, is_cached, serve_url
|
|
19
19
|
|
|
20
|
-
__version__ = "0.8.
|
|
20
|
+
__version__ = "0.8.4"
|
|
21
21
|
|
|
22
22
|
__all__ = ["__version__", "blob_url", "cache_base", "is_cached", "oras", "serve_url"]
|
|
@@ -1348,26 +1348,24 @@ class Handler(http.server.BaseHTTPRequestHandler):
|
|
|
1348
1348
|
"cancelled": "var(--bs-secondary)",
|
|
1349
1349
|
}
|
|
1350
1350
|
|
|
1351
|
-
#
|
|
1352
|
-
#
|
|
1353
|
-
#
|
|
1354
|
-
#
|
|
1355
|
-
# which service they're on. The trio sits on a
|
|
1356
|
-
# navy -> dark-magenta -> magenta gradient (cool -> hot);
|
|
1357
|
-
# withcache is the dark-magenta middle (the byte cache that
|
|
1358
|
-
# feeds nbdmux and every other consumer).
|
|
1351
|
+
# Withcache is the dark-magenta middle of the trio's
|
|
1352
|
+
# navy -> dark-magenta -> magenta gradient (bty navy, nbdmux
|
|
1353
|
+
# magenta). See the _head docstring below for the shared-stack
|
|
1354
|
+
# + one-UI-grammar rationale.
|
|
1359
1355
|
_PRIMARY_HEX = "#8f1b71" # dark-magenta
|
|
1360
1356
|
_PRIMARY_HOVER = "#7a1861"
|
|
1361
1357
|
_PRIMARY_RGB = "143, 27, 113"
|
|
1362
1358
|
|
|
1363
1359
|
def _head(self, title: str) -> str:
|
|
1364
|
-
"""Emit the shared page prelude: Bootstrap
|
|
1365
|
-
the full bty-family chrome CSS.
|
|
1366
|
-
nbdmux)
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1360
|
+
"""Emit the shared page prelude: Bootstrap 5 + Bootstrap
|
|
1361
|
+
Icons + htmx + the full bty-family chrome CSS. All three
|
|
1362
|
+
ecosystem services (bty, withcache, nbdmux) use this same
|
|
1363
|
+
block so operators only learn one UI grammar; the primary
|
|
1364
|
+
hue (``--bs-primary`` + the derived button / rgba() variants)
|
|
1365
|
+
is what tells them which service they're on. See bty's
|
|
1366
|
+
``_layout.html`` for the origin of these class names --
|
|
1367
|
+
kept identical here so operators moving between consoles
|
|
1368
|
+
see one visual grammar."""
|
|
1371
1369
|
primary = self._PRIMARY_HEX
|
|
1372
1370
|
hover = self._PRIMARY_HOVER
|
|
1373
1371
|
rgb = self._PRIMARY_RGB
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|