Skip to main content

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

Project description

Project generated with PyScaffold

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:

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

Use Ctrl+c 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.2.0.tar.gz (89.2 kB view details)

Uploaded Source

Built Distribution

dotenvhub-0.2.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dotenvhub-0.2.0.tar.gz
  • Upload date:
  • Size: 89.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for dotenvhub-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8adcf1124c7e160b07b6874cc706a1ca7a50f613af2523692be18ae272e0e598
MD5 7df469c8ed4ace26dba2eef722fc1ed2
BLAKE2b-256 fcf90612c08977a7589dacdcc89c3497fce07e70daaa017a097a2e34e7e34ece

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dotenvhub-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for dotenvhub-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2bcf9ab465e886def63288642a8aa0eceb7c9187a39ef9b401b6df86d50aa24
MD5 13063794d001011bbfacd9b76068186b
BLAKE2b-256 6f425be083345a3f5d27cd0de1328b459aeb40688a08713bb39e3e81fe4c4ec9

See more details on using hashes here.

Supported by

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