{
  "id": "python-os-environ-table",
  "kind": "table",
  "slug": "python-os-environ",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/python-os-environ/",
  "title": "os.environ capture and lookup",
  "columns": [
    "name",
    "kind",
    "detail"
  ],
  "rows": [
    {
      "name": "os.environ",
      "kind": "mapping",
      "detail": "A mapping of string keys and values for the process environment."
    },
    {
      "name": "import time",
      "kind": "lifetime",
      "detail": "os.environ is captured the first time the os module is imported."
    },
    {
      "name": "Windows keys",
      "kind": "platform",
      "detail": "On Windows, environ keys are converted to uppercase."
    },
    {
      "name": "os.getenv",
      "kind": "lookup",
      "detail": "Returns the environment variable key as a string, or a default."
    }
  ],
  "related_slugs": [
    "python-pathlib",
    "python-venv"
  ],
  "license": "CC-BY-4.0",
  "source_license": "PSF-2.0 (Python docs); PSF-2.0 (python/cpython (GitHub)); prose restates cited source lines in own words",
  "as_of": "2026-11-18",
  "status": "week-draft-20261118",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}
