Terminal App to manage .env files written in Python powered by Textual
Project description
dotenvhub
Your Terminal App to manage your .env files
Introduction
DotEnvHub helps storing and accessing your project specific .env files from a central place to setup your environment variables. Supporting you to follow the 12-factor principles when developing applications.
Features
- Organizes files centrally under
user_data_dir
following the XDG Basedir Spec - Saves your last selected shell automatically via a config file under
user_config_dir
- Supports Creating/Editing/Deleting files in your dotenvhub
- Currently provides 3 ways to set your environment variables:
- Copy the Shell specific command to set the environment variables into your clipboard
- Create a Copy of the selected file into your current working directory
- Copy the path of the selected file to be used with e.g. python-dotenv
without creating a copy in the project
Installation
You can install dotenvhub with:
python -m pip install dotenvhub
Or using pipx
pipx install dotenvhub
Usage
Using the Graphical UI
After Installation the Interface can be opened with:
dot
Using the CLI
The Creation of a Copy in the CWD and copying the Shell String to set the environment variables can also be done directly in the CLI:
To create a copy of FOLDER/FILE
from DotEnvHub and save it as SAVENAME
in your CWD:
dot copy <FOLDER/FILE> -N <SAVENAME>
To copy the string to clipboard to set FOLDER/FILE
from DotEnvHub in your Shell
of Choice:
dot shell <FOLDER/FILE> -S <SHELL>
Feedback and/or Issues
If you have feedback or find bugs, feel free to open an Issue.
:warning: DotEnvHub uses pyperclip
to handle copy/paste actions.
Based on the pyperclips documentation, you might need additional packages installed
on linux systems like xclip
or xsel
which can be installed with:
sudo apt-get install xclip
sudo apt-get install xsel
like mentioned here
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
Built Distribution
Hashes for dotenvhub-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce6083229951cedcd533441b68b25a611ed8172b8d302e3dc2f3ed647bd4db41 |
|
MD5 | 274fed397c808b4d373a4007de77d085 |
|
BLAKE2b-256 | 4ee3b1b6b64e81f2fa94ec515e898fd6ab97ccbf23092af657f5e29382d868ed |