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.5.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.5-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oneenv-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 34ccd37759c3e4af0087aa40e061706c84b2a7dac237d7b52ded924583f3d5d4
MD5 9b1be10a613514f577182d53532499b8
BLAKE2b-256 6dd8743f0a4470f4d60733cc8bbfd4f70c3b8c1f870ba5f61e6cf6ec6df63664

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oneenv-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a5a7efaf9465ba7b21cf28b3f066c1208598939dd18cf0c8e412611dc1145b5d
MD5 85d2ded854aa33194d3c58cc96e4360d
BLAKE2b-256 79dc0ad5c6a229e064a63a10dc085802219e9f16e170d602a12c77a5aec0442a

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