> ## Documentation Index
> Fetch the complete documentation index at: https://typewall.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Environment Parsing

> Parse mappings or os.environ with canonical conversions

Object schemas can parse a supplied mapping or `os.environ`. Strings remain strings; integers, floats, booleans, and structured JSON use documented canonical conversions.

```python theme={null}
from typewall import w

Settings = w.object({"PORT": w.int(), "DEBUG": w.bool().default(False)})
assert Settings.parse_env({"PORT": "8000", "DEBUG": "true"}) == {
    "PORT": 8000,
    "DEBUG": True,
}
```

> [!WARNING]
>
> Conversion errors identify the variable path without echoing its complete raw value.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.