hbtools
Package containing a few python utils functions.
Installation
The package is available on pypi here you can install it with:
pip install "hbtools[opencv]"
(or simply pip install hbtools if not using the image part of the package / pip install "hbtools[opencv-headless]" if using opencv-headless)
Usage
Logger
from hbtools import create_logger
logger = hbtools.create_logger("MyLogger", verbose_level="debug")
logger.debug("Debug message")
Prints
from hbtools import clean_print
clean_print("Processing sample (1/10)", end = "\r")
clean_print("Processing sample (10/10)", end = "\n")
from hbtools import yes_no_prompt
yes_no_prompt("Would you like to continue ?")
Image
import numpy as np
from hbtools import show_img
img = np.zeros((200, 200, 3))
show_img(img)
Additionally, if using a server through ssh, you can install this package with extras for displaying images to the terminal:
pip install "hbtools[opencv, terminal]"
Metadata
Release files for hbtools 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hbtools-0.4.3.tar.gz | 40.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hbtools-0.4.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 47.8 kB
Release files / hbtools-0.4.3.tar.gz
| Download URL | hbtools-0.4.3.tar.gz |
|---|---|
| Size | 40.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cced5fe8df99f143c0383d47fef05bf90f6c0d44258b557ecc37c28889ebb01f
|
|
BLAKE2b-256 checksum How to use checksums |
c3279e374aee878fa27236b6437023d7c8688ca659261f7477acc75970038df5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.0
|
Release files / hbtools-0.4.3-py3-none-any.whl
| Download URL | hbtools-0.4.3-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9887490d5312833d3b5785838dddc3ac656eb12a482a39f14bbe37e229cbb59a
|
|
BLAKE2b-256 checksum How to use checksums |
872e925c50170dcc59e5064d33fe2fd511ce87c19c03bf63ade33b66286973ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.0
|