{"id":23075,"library":"doppler-env","title":"Doppler Env","description":"Inject Doppler secrets as environment variables into your Python application during local development. Supports debuggers in PyCharm and VS Code. Latest version: 0.3.1. Release cadence is low; last release was 2021.","status":"active","version":"0.3.1","language":"python","source_language":"en","source_url":"https://github.com/dopplerhq/python-doppler-env","tags":["doppler","secrets","environment-variables","local-development"],"install":[{"cmd":"pip install doppler-env","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Hyphen in package name is not valid Python; use underscores.","wrong":"import doppler-env","symbol":"main","correct":"from doppler_env import main"}],"quickstart":{"code":"import os\nfrom doppler_env import main\n\n# Set DOPPLER_TOKEN or DOPPLER_ENV before calling main\nos.environ.setdefault('DOPPLER_TOKEN', '')  # or set DOPPLER_ENV\nmain()\n\n# Now secrets are in environment variables\nprint(os.environ.get('EXAMPLE_SECRET', 'not found'))","lang":"python","description":"Call main() after setting DOPPLER_TOKEN (API) or DOPPLER_ENV (CLI) to inject secrets."},"warnings":[{"fix":"Use `from doppler_env import main` instead of `import doppler-env`.","message":"The package name contains a hyphen, but import uses underscore: `doppler_env`.","severity":"gotcha","affected_versions":"all"},{"fix":"Set DOPPLER_ENV_LOGGING=1 if you need debug output.","message":"Logging is disabled by default since v0.3.1; enable with DOPPLER_ENV_LOGGING=1.","severity":"gotcha","affected_versions":">=0.3.1"},{"fix":"Use Python 3.7+ for best compatibility.","message":"Support for Python 3.6 is minimal; consider upgrading.","severity":"deprecated","affected_versions":">=0.2.2"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use `from doppler_env import main`.","cause":"Using hyphen instead of underscore in import statement.","error":"ImportError: No module named 'doppler-env'"},{"fix":"Set DOPPLER_TOKEN (API) or DOPPLER_ENV (CLI) environment variable before calling main().","cause":"Missing both DOPPLER_TOKEN and DOPPLER_ENV.","error":"doppler-env: DOPPLER_ENV environment variable not set."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}