Skip to main content

a collection of happy little helpers.

Project description

happy-little-helpers

Code style: black

v0.0.3

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(root_directory) - get the path to your credentials flash drive automatically 

read_env(flash_path) - check things are working using test 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:

Linux (Tested in Ubuntu):
export PYTHONPATH=/home/<username>/Documents/github/happy-little-helpers/src:$PYTHONPATH

Windows 10:
export PYTHONPATH=C:\Users\<username>\Documents\github\happy-little-helpers\src:$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.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

happy_little_helpers-0.0.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file happy-little-helpers-0.0.3.tar.gz.

File metadata

  • Download URL: happy-little-helpers-0.0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for happy-little-helpers-0.0.3.tar.gz
Algorithm Hash digest
SHA256 160feb44188996d6797f959d505039c55f9c9d2054ce9ac5cdd45876cfd77e36
MD5 904871fbccda13cb3d03edb570012bd6
BLAKE2b-256 a23db6d04170b98912f7e7bf32f8de7c499a41cb25d5cb38c017e60685c5171f

See more details on using hashes here.

File details

Details for the file happy_little_helpers-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for happy_little_helpers-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2f9de361172cc2da30967e40fbf647035cc7a1b4007373674a4bf66c826c00e0
MD5 76918cd1315d4564620cabdd830bdb0e
BLAKE2b-256 ee8e30968d5baef3f1cd3647fc637dec0b235e3cd10466a7afe782951eb4e864

See more details on using hashes here.

Supported by

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