샘플
Configure nested environment variable parsing explicitly with pydantic-settings instead of assuming a default '__' delimiter
sha256:7f1908439a5f4318c360685d9940e1fc18d9314fe820f62a16166c0baf722a75
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Configure nested environment variable parsing explicitly with pydantic-settings instead of assuming a default '__' delimiter CONFIG
- 패키지
- pydantic-settings 2.15.0 pydantic 2.13.4 python-dotenv 1.2.2
- 환경
- python 3.12
- 생성일
- 2026-08-17T03:19:39Z
흔히 이렇게 알고 있다
Pydantic BaseSettings reads nested environment variables using '__' as a delimiter by default.
이 샘플의 작성자가 여기서 개발자나 모델이 기대할 법한 내용으로 적어둔 것이다. 아래 계약이 실제로 실행된 것이다.
컨트랙트
- assert a DATABASE__HOST environment variable is ignored for a nested model when env_nested_delimiter is not configured
- assert SettingsConfigDict(env_nested_delimiter='__') maps DATABASE__HOST into database.host
파일
- csx.json
- requirements.txt
- test/contract.py
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9