Package containing a few python utils functions.
Project description
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]"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hbtools-0.4.3.tar.gz.
File metadata
- Download URL: hbtools-0.4.3.tar.gz
- Upload date:
- Size: 40.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cced5fe8df99f143c0383d47fef05bf90f6c0d44258b557ecc37c28889ebb01f
|
|
| MD5 |
ee3f3103ed5812f802608e9e62cdb420
|
|
| BLAKE2b-256 |
c3279e374aee878fa27236b6437023d7c8688ca659261f7477acc75970038df5
|
File details
Details for the file hbtools-0.4.3-py3-none-any.whl.
File metadata
- Download URL: hbtools-0.4.3-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.27.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9887490d5312833d3b5785838dddc3ac656eb12a482a39f14bbe37e229cbb59a
|
|
| MD5 |
b0efb27f5ea1d75913d70cd9a4e10804
|
|
| BLAKE2b-256 |
872e925c50170dcc59e5064d33fe2fd511ce87c19c03bf63ade33b66286973ac
|