Skip to main content

Module dotenv

Module dotenv 

Source
Expand description

Dotenv support for loading environment variables from .env files

Supports standard .env file format:

  • KEY=value
  • KEY=“quoted value”
  • KEY=‘single quoted’
  • §comments

  • export KEY=value (optional export prefix)
  • Multiline values with quotes
  • Variable interpolation: ${VAR} or $VAR

Structs§

DotenvConfig
Configuration for dotenv loading

Functions§

load_dotenv
Load environment variables from a .env file
parse_dotenv
Parse dotenv content string
parse_dotenv_file
Parse a .env file and return key-value pairs