Skip to main content

a collection of happy little helpers.

Project description

happy-little-helpers

Code style: black

v0.0.1

happy_little_helpers is a python package that gives you some happy little utils including:

flash_env

easy flash drive credential management for moving from system to system.

get_flash_path() - get the path to your credentials flash drive automatically 

read_env() - check you are retrieving the right credentials

debugger

quickly turn debugging console prints on and off

debug_print() - replaces the print() function

enable_debug_mode() - global function to enable debugging

disable_debug_mode() - global function to disable debugging (this is the default behavior)

project-structure

happy-little-helpers
├─ .gitignore
├─ README.md
├─ LICENSE
├─ pyproject.toml
├─ src/  
|   └─ happy_little_helpers/
│     ├─ __init__.py
│     ├─ debugger.py
│     └─ flash_env.py
└─ tests/
   ├─ __init__.py
   ├─ credentials/
   │  └─ happy-little-helpers/
   │     └─ .env
   ├─ main_test.py
   └─ pythonpath.txt

how to test locally

  1. navigate to the root package directory happy-little-helpers and add the temp PYTHONPATH found in happy-little-helpers/tests/pythonpath.txt:

export PYTHONPATH=/home/<username>>/Documents/github/happy-little-helpers/happy_little_helpers:$PYTHONPATH

  1. format a flash drive and name the partition credentials.

  2. copy the contents of the credentials directory to your newly formated drive.

  3. run python3 tests/main_test.py from your root directory to print the demo .env retrieved from your credentials flash drive.

how to build and distribute

python3 -m build

python3 -m twine upload dist/*

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

happy-little-helpers-0.0.2.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

happy_little_helpers-0.0.2-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

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