Skip to main content

No project description provided

Project description

useenv

A tiny tool to merge values into your env file. Useful in some rare circumstances e.g. swapping variables in local development, when you don't want to maintain multiple separate env files.

  • pipx install useenv
  • Create a .useenv config file in your project root.
    • If this contains secret values then make sure to add .useenv to your project or global .gitignore.
  • useenv <env_identifier>.

Example .useenv config file:

env_file: .env
envs:
    foo:
        DATABASE_HOST: "..."
        DATABASE_NAME: "..."
        DATABASE_USER: "..."
        DATABASE_PASSWORD: "..."
    bar:
        DATABASE_HOST: "..."
        DATABASE_NAME: "..."
        DATABASE_USER: "..."
        DATABASE_PASSWORD: "..."

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

useenv-0.1.0.tar.gz (1.8 kB view hashes)

Uploaded Source

Built Distribution

useenv-0.1.0-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page