Skip to main content

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.

Release files for without-configmap 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for without-configmap 0.0.9
File Size Uploaded
without_configmap-0.0.9.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for without-configmap 0.0.9
File Interpreter ABI Platform
without_configmap-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / without_configmap-0.0.9.tar.gz

Download URL without_configmap-0.0.9.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a4c51dc41b105745a40af3613ca9c925d507b48b79b68b2b19feb3380a88c305
BLAKE2b-256 checksum
How to use checksums
4410151f01759f2824997f53c852ce61174dc31aed4efed3ca6baca8304c51a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.14 {"installer":{"name":"uv","version":"0.12.14","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.9-py3-none-any.whl

Download URL without_configmap-0.0.9-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55a0bbe5c69e8284004da0c8ff7e4faead10efdff5f7b59c801c987a91283aca
BLAKE2b-256 checksum
How to use checksums
4e5d82c056d2cdedf16c90d114da962eb0f5e077e1c5f28983e0bce7910f3e39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.14 {"installer":{"name":"uv","version":"0.12.14","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 history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page