without-env
A without Context backed by environment variables: the simplest possible
context, a static one loaded at startup and never changed.
EnvContext.load(MySettings) reads the environment once, at the boundary, into a
validated pydantic-settings
model (parse, don't validate), then hands that immutable value to processors via
current(). Because it never changes, a reloading source (a watched file, a
ConfigMap mount) is a separate plugin; see
without-configmap for the context-updated-by-a-stream
case.
from pydantic_settings import BaseSettings
from without_env import EnvContext
class Settings(BaseSettings):
default_mode: str = "upper"
max_bytes: int = 1_048_576
config = EnvContext.load(Settings) # reads os.environ once, validates
config.current().default_mode # the parsed value, same every call
See the
without-env guide
(with the API reference)
for the full surface.
Metadata
Release files for without-env 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| without_env-0.0.5.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| without_env-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.7 kB
Release files / without_env-0.0.5.tar.gz
| Download URL | without_env-0.0.5.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
008656417fc87c78befba62cb9c627067eea94c926802f5dc21ba43afe049738
|
|
BLAKE2b-256 checksum How to use checksums |
b3a4f28d37e6e20be569a67d209b58707c0791f3228d47d727e4fa403bc6588f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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_env-0.0.5-py3-none-any.whl
| Download URL | without_env-0.0.5-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b288bafaf2523221ed3e2de9a6cd09184d5814df4535062cac0622c8702c72bd
|
|
BLAKE2b-256 checksum How to use checksums |
2940ef8714ae6b6649f4de513c6d201af53feb7f763fc0c30f1a457d6cf2d9a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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}
|