envdo
[ 中文 | English ]
Configure environment variables for Python code or command-line programs, providing dotenv management with group-based switching.
Features
- Group Environment Configuration - Configure a set of environment variables for programs without affecting the system environment
- Multi-Environment Management - Support multiple environment configurations for quick switching
- Sensitive Information Protection - Automatically hide sensitive information (TOKEN, KEY, PASSWORD, etc.)
- Interactive Selection - Support interactive environment configuration selection
- Clear Output - Use the rich library for clear terminal output
Installation
pip install envdo
pip install git+https://github.com/NewToolAI/envdo.git
Configuration
Create a configuration file .envdo.json (in project directory) or ~/.envdo.json (in user directory):
{
"deepseek-3.2": {
"ANTHROPIC_MODEL": "deepseek-reasoner",
"ANTHROPIC_BASE_URL": "https://api.deepseek.com/anthropic",
"ANTHROPIC_AUTH_TOKEN": "your-token-here"
},
"glm-4.7": {
"ANTHROPIC_MODEL": "glm-4.7",
"ANTHROPIC_BASE_URL": "https://open.bigmodel.cn/api/anthropic",
"ANTHROPIC_AUTH_TOKEN": "your-token-here"
},
"claude-opus": {
"ANTHROPIC_MODEL": "claude-opus-4-5",
"ANTHROPIC_BASE_URL": "https://api.anthropic.com",
"ANTHROPIC_AUTH_TOKEN": "your-token-here",
"HTTP_PROXY": "http://127.0.0.1:7890",
"HTTPS_PROXY": "http://127.0.0.1:7890",
"NO_PROXY": "localhost,127.0.0.1"
}
}
Programmatic Usage
from envdo import load_envdo
load_envdo('example-1')
Command Line Usage
List All Environment Configurations
envdo list
Interactive Environment Selection
envdo select <command>
Run Command with Specified Environment
envdo gpt-5.2 <command>
Edit Configuration File
envdo e
envdo edit
Opens the currently used .envdo.json (project directory first, then ~/.envdo.json) in your editor. The editor is resolved via $VISUAL / $EDITOR (both support arguments such as code --wait), defaulting to vi. envdo e opens the file even if its JSON is currently invalid, so you can repair it; the file is validated after the editor closes.
Other Commands
envdo -v # Show version
envdo --version
envdo -h # Show help
envdo --help
envdo e # Edit the currently used .envdo.json file
envdo edit
Configuration Notes
- Configuration file priority:
.envdo.jsonin current directory >~/.envdo.jsonin user directory - On first run, if the configuration file does not exist, an example configuration file will be automatically created
- Sensitive information (containing keywords TOKEN, KEY, PASSWORD, SECRET, AUTH, CREDENTIAL, etc.) will be automatically displayed as
*** - Editor priority for
envdo e:$VISUAL>$EDITOR>vi
License
MIT License
Metadata
Release files for envdo 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| envdo-0.1.5.tar.gz | 6.2 kB | With provenance | Details for envdo-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| envdo-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for envdo-0.1.5-py3-none-any.whl |
Total release size: 13.4 kB
Release files / envdo-0.1.5.tar.gz
| Download URL | envdo-0.1.5.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b807f8b27174c2ca981aaf9b53d675a2167e0681e01f90be09c2784a51aa4898
|
|
BLAKE2b-256 checksum How to use checksums |
cdb9357ec5b8792497364c81df23eeac0718631c7a7cdfa1e13d1d6409b55322
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logRelease files / envdo-0.1.5-py3-none-any.whl
| Download URL | envdo-0.1.5-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f2364fd25394f6405a7e291a7be04fe294e880cb66f18d838342b11fadb8825
|
|
BLAKE2b-256 checksum How to use checksums |
be48f19f50305737d8dbe95d55e949f77cb02c4e3e746c25fa9fde8b6ef03be0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logSecurity for envdo 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for envdo-0.1.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.