Skip to main content

Terminal App to manage .env files written in Python powered by Textual

Project description

Ruff PyPI-Server Pyversions License: MIT Downloads

dotenvhub

Your Terminal App to manage your .env files

Introduction

header

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:
    1. Copy the Shell specific command to set the environment variables into your clipboard
    2. Create a Copy of the selected file into your current working directory
    3. 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 one of the following options:

# not recommended
python -m pip install dotenvhub
pipx install dotenvhub
rye install dotenvhub
uv tool install dotenvhub

I recommend using pipx, rye or uv to install CLI Tools into an isolated environment.

Usage

Using the Graphical UI

After Installation the Interface can be opened with:

dot

Use Ctrl+q to close the interface.

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

dotenvhub-0.5.2.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

dotenvhub-0.5.2-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file dotenvhub-0.5.2.tar.gz.

File metadata

  • Download URL: dotenvhub-0.5.2.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for dotenvhub-0.5.2.tar.gz
Algorithm Hash digest
SHA256 26dfe4ca311ab276d06837ae409c1b263c34ee07c03a99ad31f09d47464b5fd1
MD5 69445dad7c9c25b7f8ea03dd2b82e313
BLAKE2b-256 f0c723def4cddfe4fef37e08905b42ce0afba44aa5e57e0a0f859a7f91d9f387

See more details on using hashes here.

File details

Details for the file dotenvhub-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: dotenvhub-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for dotenvhub-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bcd1e7e322ef0171dae56b5ea2aef449b6effdb71b31300f04be0bc026d7a91d
MD5 d74e8279fca142ed74da57cca7b0465b
BLAKE2b-256 fdc49614d4a2fd65f884a38f03403da46d4b79ea2c17b285ade113c5ed0aa28f

See more details on using hashes here.

Supported by

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