---
url: "https://vueda.dev/v3/reference/api/py/vueda.core.config.md"
title: "core.config"
---

# core.config

## Overview

TOML-based configuration adapter with typed accessors and environment variable overrides.

## Classes

- [TomlEnv](/v3/reference/api/py/vueda.core.config/TomlEnv.md)

## `load_toml` {#load_toml}

Return the parsed contents of the TOML file at ``path``, or an empty dict when the file does not
exist.

Settings modules merge ``config.toml`` and ``config.local.toml`` this way before passing the result
to ``TomlEnv``.

### Signature {#load_toml-signature}

`load_toml(path)`

#### Parameters {#load_toml-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="load_toml-param-path">path</span> | `os.PathLike[str] \| str` | yes |  |  |

#### Returns {#load_toml-returns}

`dict[str, Any]`

### Source {#load_toml-source}

`server/vueda/core/config.py:440`

## Source

`server/vueda/core/config.py`
