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
enveasy
configuration inpyproject.toml
orenveasy.toml
. - Add environment variables with descriptions and help text.
- Set environment variable values interactively.
- Export environment variables to an example
.env_example
file.
- 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
enveasy
Configurationenveasy init
This command initializes the
enveasy
configuration. It will either add the configuration topyproject.toml
or create a newenveasy.toml
file. -
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 set
This command prompts you to enter values for the environment variables defined in the configuration file.
-
Export Environment Variables Example
enveasy export
This 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 theenveasy
package.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.