without-configmap 0.0.2__tar.gz → 0.0.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.
- {without_configmap-0.0.2 → without_configmap-0.0.4}/PKG-INFO +4 -4
- {without_configmap-0.0.2 → without_configmap-0.0.4}/README.md +2 -2
- {without_configmap-0.0.2 → without_configmap-0.0.4}/pyproject.toml +3 -3
- {without_configmap-0.0.2 → without_configmap-0.0.4}/pyproject.toml.orig +3 -3
- {without_configmap-0.0.2 → without_configmap-0.0.4}/src/without_configmap/__init__.py +0 -0
- {without_configmap-0.0.2 → without_configmap-0.0.4}/src/without_configmap/parse.py +0 -0
- {without_configmap-0.0.2 → without_configmap-0.0.4}/src/without_configmap/py.typed +0 -0
- {without_configmap-0.0.2 → without_configmap-0.0.4}/src/without_configmap/source.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: without-configmap
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: A without behavior source backed by a Kubernetes ConfigMap mount, reloaded with watchfiles.
|
|
5
5
|
Author: Josh Karpel
|
|
6
6
|
Author-email: Josh Karpel <josh.karpel@gmail.com>
|
|
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.14
|
|
15
15
|
Classifier: Topic :: Software Development :: Libraries
|
|
16
16
|
Classifier: Typing :: Typed
|
|
17
|
-
Requires-Dist: without-core==0.0.
|
|
17
|
+
Requires-Dist: without-core==0.0.4
|
|
18
18
|
Requires-Dist: watchfiles>=0.21
|
|
19
19
|
Requires-Dist: pydantic>=2
|
|
20
20
|
Requires-Dist: pyyaml>=6
|
|
@@ -51,8 +51,8 @@ class MyConfig(BaseModel):
|
|
|
51
51
|
|
|
52
52
|
source = watch_config(Path("/etc/config"), read_yaml_file(MyConfig, "config.yaml"))
|
|
53
53
|
async with sample(source) as config:
|
|
54
|
-
config.current()
|
|
55
|
-
await config.updated()
|
|
54
|
+
config.current() # always the latest reloaded value, never blocks
|
|
55
|
+
await config.updated() # block until the next reload lands, then return it
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
See the
|
|
@@ -28,8 +28,8 @@ class MyConfig(BaseModel):
|
|
|
28
28
|
|
|
29
29
|
source = watch_config(Path("/etc/config"), read_yaml_file(MyConfig, "config.yaml"))
|
|
30
30
|
async with sample(source) as config:
|
|
31
|
-
config.current()
|
|
32
|
-
await config.updated()
|
|
31
|
+
config.current() # always the latest reloaded value, never blocks
|
|
32
|
+
await config.updated() # block until the next reload lands, then return it
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
See the
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["uv_build>=0.
|
|
2
|
+
requires = ["uv_build>=0.12.3,<0.13"]
|
|
3
3
|
build-backend = "uv_build"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "without-configmap"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.4"
|
|
8
8
|
description = "A without behavior source backed by a Kubernetes ConfigMap mount, reloaded with watchfiles."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -21,7 +21,7 @@ classifiers = [
|
|
|
21
21
|
"Typing :: Typed",
|
|
22
22
|
]
|
|
23
23
|
dependencies = [
|
|
24
|
-
"without-core==0.0.
|
|
24
|
+
"without-core==0.0.4",
|
|
25
25
|
"watchfiles>=0.21",
|
|
26
26
|
"pydantic>=2",
|
|
27
27
|
"pyyaml>=6",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["uv_build>=0.
|
|
2
|
+
requires = ["uv_build>=0.12.3,<0.13"]
|
|
3
3
|
build-backend = "uv_build"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "without-configmap"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.4"
|
|
8
8
|
description = "A without behavior source backed by a Kubernetes ConfigMap mount, reloaded with watchfiles."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -24,7 +24,7 @@ classifiers = [
|
|
|
24
24
|
"Typing :: Typed",
|
|
25
25
|
]
|
|
26
26
|
dependencies = [
|
|
27
|
-
"without-core==0.0.
|
|
27
|
+
"without-core==0.0.4",
|
|
28
28
|
"watchfiles>=0.21",
|
|
29
29
|
"pydantic>=2",
|
|
30
30
|
"pyyaml>=6",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|