without-configmap
A without behavior source backed by a Kubernetes ConfigMap mount: the first
context that actually changes, proving the context-updated-by-a-stream half of
the model end to end. Where without-env loads a static value
once, this one re-parses on every mount change.
watch_config(mount, parse) is a Stream that yields the parsed config now and a
freshly parsed value every time the mount changes. It watches the mount
directory, not the file, so it catches the atomic ..data symlink swap that
projected ConfigMaps
use. Feed the stream through without.sample to read the latest value as a
Context:
from pathlib import Path
from pydantic import BaseModel
from without_streams import sample
from without_configmap import read_yaml_file, watch_config
class MyConfig(BaseModel):
model_config = {"frozen": True}
default_mode: str
max_bytes: int
source = watch_config(Path("/etc/config"), read_yaml_file(MyConfig, "config.yaml"))
async with sample(source) as config:
config.current() # always the latest reloaded value, never blocks
await config.updated() # block until the next reload lands, then return it
See the
without-configmap guide
(with the API reference)
for the full surface.
Metadata
Release files for without-configmap 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| without_configmap-0.0.10.tar.gz | 2.7 kB | Without provenance | Details for without_configmap-0.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| without_configmap-0.0.10-py3-none-any.whl | Python 3 | none | any | Details for without_configmap-0.0.10-py3-none-any.whl |
Total release size: 6.8 kB
Release files / without_configmap-0.0.10.tar.gz
| Download URL | without_configmap-0.0.10.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
283c6599e7bcdbf22c68bc01fec92118123c2d7889796720200c63f74054b875
|
|
BLAKE2b-256 checksum How to use checksums |
30f41baf1fbb5869e5f41f54d42e7c820ed98548cc737260d411c0331254ebaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / without_configmap-0.0.10-py3-none-any.whl
| Download URL | without_configmap-0.0.10-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9dd8b1a6227f9dac33be372ec7203c507249f7d4677547940b81b5bd0e43fa3
|
|
BLAKE2b-256 checksum How to use checksums |
3cb9b03f544f8b44c101ee766380f90695dba5206f4e57d03b76266b2bd26537
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for without-configmap 0.0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.