Skip to main content

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.6

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-env 0.0.6
File Size Uploaded
without_env-0.0.6.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for without-env 0.0.6
File Interpreter ABI Platform
without_env-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 4.7 kB

Release files / without_env-0.0.6.tar.gz

Download URL without_env-0.0.6.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
620dab276b66b1b115e6c5658567aeffd06d69877424722a5d51015b7670ae1e
BLAKE2b-256 checksum
How to use checksums
31b33219b1f7c2b13e1586d7f940a93243822c1d3ed049540f660a72f37f07aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","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.6-py3-none-any.whl

Download URL without_env-0.0.6-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
475ba43007003a727b0fb48a900ace7f0f3ba06138f0435deb63ce8a62bced26
BLAKE2b-256 checksum
How to use checksums
fe1ec247a5a3206be134d0d0c74f01254fb603af851c7f3a96fd505d3c566a8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","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

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

This release

0.0.6 This release

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