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

Uploaded Python 3

File details

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

File metadata

  • Download URL: without_env-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 729451703e1b1cf56a3937792e6471ae2ef737040c6f6c97b14519f5f21278a6
MD5 e5460786ed772b02b172806c69265b2b
BLAKE2b-256 7232e1e80c73050a185aac9fd9f52b6ab1c1d8bf0cd81119f7de75768cae1bd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: without_env-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0d861f03b86542547c007764d1b6e1aec0483b301b27c21633c052a503e75fe9
MD5 29c9b770480755b8f07b9a55e42a70aa
BLAKE2b-256 382dbab966e2fc94b0cf8c8b895d6c92db807aa9e6229f4d0fac1652c84b50fd

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