awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
theskumar avatar

theskumar/python-dotenv

0
View on GitHub↗
8,794 星标·538 分支·Python·BSD-3-Clause·8 次浏览saurabh-kumar.com/python-dotenv↗

Python Dotenv

python-dotenv is a library and command line interface for managing environment variables in Python applications. It functions as a configuration parser and loader that reads key-value pairs from files and injects them into the system environment, enabling the decoupling of application configuration from source code.

The project provides a command line interface for manipulating and editing environment variables within configuration files. It also includes a mechanism for recursive variable interpolation, allowing dynamic placeholders within configuration files to be resolved using existing environment values.

The tool supports loading configuration data from both physical files and generic input streams. It can extract settings into dictionaries without modifying the system environment or write them directly to process-level environment variables to support twelve-factor app development.

Features

  • Environment Variables - Loads configuration from .env files into system environment variables to decouple settings from code.
  • Environment Variable Loaders - Loads environment variables from .env files into the process environment.
  • Environment Variable Management - Manages runtime environment variables as a primary configuration source.
  • Environment Variable Injection - Injects parsed configuration keys directly into the operating system environment variables.
  • Environment Variable-Based Configuration - Decouples application configuration from source code using environment variables.
  • File-Based Loading - Loads environment variables from flat text files into the runtime environment.
  • Configuration File Parsers - Extracts structured key-value configuration data from raw text files into memory.
  • CLI Environment Managers - Includes a command line interface for managing and manipulating environment variables.
  • Configuration Dictionaries - Extracts configuration settings into Python dictionaries to avoid altering the system environment.
  • Configuration File Editors - Provides a command line interface to manipulate and edit environment variables within configuration files.
  • Local Development Environments - Enables managing different environment settings for local development and testing.
  • Variable Interpolators - Resolves dynamic placeholders in configuration files using variables from the environment.
  • Recursive Variable Expansion - Resolves nested placeholders within configuration strings until a final value is reached.
  • Twelve-Factor App Implementations - Implements the configuration principle of the twelve-factor methodology by decoupling settings from code.
  • Configuration Management - Loads environment variables from .env files.
  • 配置管理 - Loads environment variables from files into the application environment.
  • Development Utilities - Managing environment variables from configuration files.

Star 历史

theskumar/python-dotenv 的 Star 历史图表theskumar/python-dotenv 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Python Dotenv 的开源替代方案

相似的开源项目,按与 Python Dotenv 的功能重合度排序。
  • bkeepers/dotenvbkeepers 的头像

    bkeepers/dotenv

    6,758在 GitHub 上查看↗

    Dotenv is a Ruby library used for loading key-value pairs from files into an application environment. It includes a configuration parser to extract variables into hashes and a loader to inject those pairs into the global environment. The project features a variable interpolator that resolves environment variables and shell command outputs within configuration values. It also provides a validator to verify that required configuration keys are present during application initialization. The toolset covers environment variable management, including the ability to generate configuration templates

    Ruby
    在 GitHub 上查看↗6,758
  • joho/godotenvjoho 的头像

    joho/godotenv

    10,483在 GitHub 上查看↗

    godotenv is a Go library designed to load, parse, and serialize environment configuration files. It provides tools to extract configuration data from files into maps and inject those key-value pairs directly into the system environment of a Go application process. The project includes a configuration file serializer for exporting environment variable maps back into formatted files and a parser for extracting data without modifying the system environment. It supports injecting variables from strings or files into the process environment using priority-based overloading and overwriting. The li

    Godotenvenvironment-variablesgo
    在 GitHub 上查看↗10,483
  • symfony/dotenvsymfony 的头像

    symfony/dotenv

    3,790在 GitHub 上查看↗

    This library is a PHP environment variable loader and configuration parser. It extracts key-value pairs from local text files to populate global server and system environment arrays, ensuring that sensitive credentials and application settings remain separate from the source code. The tool implements twelve-factor app configuration principles by mapping local files to process-level variables. It utilizes a regex-based parser to identify variable assignments while stripping comments and whitespace, and it includes guards to prevent local configuration files from overwriting existing host-level

    PHP
    在 GitHub 上查看↗3,790
  • vlucas/phpdotenvvlucas 的头像

    vlucas/phpdotenv

    13,536在 GitHub 上查看↗

    phpdotenv is a PHP environment variable loader and configuration parser. It reads key-value pairs from files and populates them into PHP system environment variables and global arrays to avoid hardcoding sensitive settings in code. The project includes a configuration variable interpolator to resolve nested references and variables within environment files. It also provides an environment variable validator to ensure required variables exist and match specific data types or values. The system covers application secret management, multi-environment deployment, and the parsing of raw configura

    PHPconfigurationdotenvenvironment
    在 GitHub 上查看↗13,536
查看 Python Dotenv 的所有 30 个替代方案→

常见问题解答

theskumar/python-dotenv 是做什么的?

python-dotenv is a library and command line interface for managing environment variables in Python applications. It functions as a configuration parser and loader that reads key-value pairs from files and injects them into the system environment, enabling the decoupling of application configuration from source code.

theskumar/python-dotenv 的主要功能有哪些?

theskumar/python-dotenv 的主要功能包括:Environment Variables, Environment Variable Loaders, Environment Variable Management, Environment Variable Injection, Environment Variable-Based Configuration, File-Based Loading, Configuration File Parsers, CLI Environment Managers。

theskumar/python-dotenv 有哪些开源替代品?

theskumar/python-dotenv 的开源替代品包括: bkeepers/dotenv — Dotenv is a Ruby library used for loading key-value pairs from files into an application environment. It includes a… joho/godotenv — godotenv is a Go library designed to load, parse, and serialize environment configuration files. It provides tools to… symfony/dotenv — This library is a PHP environment variable loader and configuration parser. It extracts key-value pairs from local… vlucas/phpdotenv — phpdotenv is a PHP environment variable loader and configuration parser. It reads key-value pairs from files and… caarlos0/env — env is a Go library that reads environment variables and populates the fields of a Go struct according to tag… kelseyhightower/envconfig — envconfig is a Go configuration decoder and environment variable mapper that deserializes environment variables into…