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.2.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.2-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: without_env-0.0.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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.2.tar.gz
Algorithm Hash digest
SHA256 1e856bdd8e38811fb67b1c27e801e6bb37d987d8b1957b7d65471d9af395be9e
MD5 694cfa31656c931cbd2be69e6fbf0cc6
BLAKE2b-256 f1e36420c82f8cca291d145baa4cf7e3169d85bb237c03e67f30cede7d771ca9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: without_env-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 04245fb81cf2f5cc4205fe7b9ed3fc460206fafb6e363abc0a36980d44b63898
MD5 cd3d557fc87ed3f692e8d61195f3f46f
BLAKE2b-256 2c40d04a6204da8b2cf6895bb34ff781c4524d36630cc527a51799cf715ed797

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