Skip to main content

Package containing a few python utils functions.

Project description

hbtools

PyPI PyPI - Python Version PyPI - Downloads License Linting Tests

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hbtools-0.4.3.tar.gz (40.7 kB view details)

Uploaded Source

Built Distribution

hbtools-0.4.3-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

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

Hashes for hbtools-0.4.3.tar.gz
Algorithm Hash digest
SHA256 cced5fe8df99f143c0383d47fef05bf90f6c0d44258b557ecc37c28889ebb01f
MD5 ee3f3103ed5812f802608e9e62cdb420
BLAKE2b-256 c3279e374aee878fa27236b6437023d7c8688ca659261f7477acc75970038df5

See more details on using hashes here.

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

Hashes for hbtools-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9887490d5312833d3b5785838dddc3ac656eb12a482a39f14bbe37e229cbb59a
MD5 b0efb27f5ea1d75913d70cd9a4e10804
BLAKE2b-256 872e925c50170dcc59e5064d33fe2fd511ce87c19c03bf63ade33b66286973ac

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