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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

without_env-0.0.3.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

without_env-0.0.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file without_env-0.0.3.tar.gz.

File metadata

  • Download URL: without_env-0.0.3.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for without_env-0.0.3.tar.gz
Algorithm Hash digest
SHA256 84ea16302cdb0c63ef98045f21ee874ed6f7b319e729a13793a1265930c98fb2
MD5 d07fd53236f088c31fc095bd6c8f2d66
BLAKE2b-256 3e18b95d1878fd18c97e3d16112548d4f37f4d32c6d52b1f1aad30fbe2eb2e82

See more details on using hashes here.

File details

Details for the file without_env-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: without_env-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for without_env-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3b820e303e22c5e24bbfa040123821ea48af3e32feb479527443c47b755ff6fb
MD5 689dd8390da85bee3b4a8923dae63559
BLAKE2b-256 fb76d4b207f0ff38aa9fa9b083bdd885a6e2de8f8c51a946a36154a79111b710

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page