Skip to main content

OneEnv: Environment variable management and generation tool

Project description

OneEnv 🌟 PyPI Downloads

OneEnv is an environment variable management and generation tool for Python applications. It wraps python-dotenv to simplify handling of environment variable templates and .env files.

What Problems Does OneEnv Solve? 🛠️

Managing environment variables for multiple libraries can be tedious and error-prone, especially when each library requires its own configuration. OneEnv streamlines the process by consolidating environment variable templates into a single .env.example file, reducing manual work and ensuring consistency across projects.

Features 🚀

  • Template Collection: Use the @oneenv decorator to declare environment variable templates.
  • Team-Friendly: Perfect for microservices and modular development where multiple small libraries need to manage their own environment variables.
  • Decentralized Configuration: Each library can define its own environment variables independently, making it easy to maintain and scale in team development.
  • Generated .env.example: Automatically creates a consolidated .env.example file from registered templates.
  • Diff Functionality: Compare changes between different versions of your .env.example file.
  • Duplicate Key Detection: Identify duplicate environment variable definitions across modules.
  • Command Line Tool: Easily run commands like oneenv template and oneenv diff from your terminal.

Supported Environments 🖥️

  • Python: ≥ 3.11
  • Operating Systems: Windows, macOS, Linux

Installation 📦

You can install OneEnv easily via pip:

pip install oneenv

For development mode, install from the source using:

pip install -e .

Usage 🚀

Generating Environment Template

Generate a consolidated .env.example file using the registered templates:

oneenv template [-o OUTPUT_FILE] [-d]

Use the -d or --debug option to see which modules and templates are discovered:

oneenv template -d

Comparing Environment Files

Compare two .env

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

oneenv-0.1.4.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oneenv-0.1.4-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file oneenv-0.1.4.tar.gz.

File metadata

  • Download URL: oneenv-0.1.4.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for oneenv-0.1.4.tar.gz
Algorithm Hash digest
SHA256 28fb4ef0d8cc42b596f5da5d3408b8d1acb4513d987ff161601fefc85b8fa88f
MD5 4fd6ea4c93e8edbd3c382af0c73545ac
BLAKE2b-256 ede6fdf1fa18a85113aaee9105b024f293b7ff8217f075f301c295e5a6a622fd

See more details on using hashes here.

File details

Details for the file oneenv-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: oneenv-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for oneenv-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e9678f00a61651e8b8e87e12cf879590530453f8257d6e2f7ecfd17a95e64732
MD5 fa1f45af4a3d79c91e430f7c96b83192
BLAKE2b-256 7a1b3f8518fbd1d9e8a99156e678eeef1fa3f04e7a52c61fdc7531c9d197f19c

See more details on using hashes here.

Supported by

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