enveasy is a command-line tool designed to easily manage environment variables within your projects. It allows you to initialize configuration files, add environment variables, set their values, and export example environment files.
- Initialize
enveasyconfiguration inpyproject.tomlorenveasy.toml. - Add environment variables with descriptions and help text.
- Set environment variable values interactively.
- Export environment variables to an example
.env_examplefile.
- Python 3.9 or higher
- Dependencies:
typer,rich,tomli,toml,setuptools,wheel
-
Clone the repository:
git clone https://github.com/yourusername/enveasy.git cd enveasy -
Install the dependencies:
pip install -r requirements.txt
-
Initialize
enveasyConfigurationenveasy init
This command initializes the
enveasyconfiguration. It will either add the configuration topyproject.tomlor create a newenveasy.tomlfile. -
Add Environment Variables
enveasy add
This command allows you to add environment variables interactively, providing a name, description, and help text for each variable.
-
Set Environment Variable Values
enveasy setThis command prompts you to enter values for the environment variables defined in the configuration file.
-
Export Environment Variables Example
enveasy exportThis command exports the environment variables and their descriptions to an example file (
.env_example).
pyproject.toml: Contains project metadata, dependencies, and build system requirements.__init__.py: Initializes theenveasypackage.cli.py: Defines the CLI commands usingtyper.config.py: Defines default filenames used throughout the project.parser.py: Script to parse environment variables from a TOML file.utils.py: Utility functions for various tasks such as initializing configuration, adding variables, and exporting data.
This project is licensed under the MIT License. See the LICENSE file for more details.