A collection of utility functions for Blick Technologies
Project description
blick_utils
Blick Technologies Python Utilities
1 - Installation
pip install git+https://github.com/horstao/blick_utils.git
2 - Usage
from blick_utils import BlickUtils as bkt
# Returns GPU info
gpu_info = bkt.get_gpu_info()
# Returns torch device GPU or CPU
device = bkt.get_gpu()
# Get a Pillow image from anything (URL, path, array, or base64)
pil_im = bkt.get_pil(url="https://example.com/image.jpg")
pil_im = bkt.get_pil(path="/path/to/image.jpg")
pil_im = bkt.get_pil(array=numpy_array)
pil_im = bkt.get_pil(base64=base64_string)
# Get all files in a Directory
files = bkt.get_files(dir="/path/to/dir", extensions=[".py", ".txt"], recursive=True)
# Get all directories in a Directory
dirs = bkt.get_dirs(dir="/path/to/dir", recursive=True)
Requirements
- Python >= 3.7
- torch (for GPU utilities)
- Pillow (for image utilities)
- numpy (for image array handling)
- requests (for URL image loading)
License
MIT License
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
blickutils-0.5.10.32.tar.gz
(28.2 kB
view details)
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 blickutils-0.5.10.32.tar.gz.
File metadata
- Download URL: blickutils-0.5.10.32.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c1f7dba5626aa6360b93fe09438a2798e03c3e857ac4a6d37fad8a59597e71c
|
|
| MD5 |
8955548b2e9fc60373a06fc5c4516627
|
|
| BLAKE2b-256 |
6aac6275a8d19e72605c6e481690445a65c9e266e322021fa0aa2e50841f1657
|
File details
Details for the file blickutils-0.5.10.32-py3-none-any.whl.
File metadata
- Download URL: blickutils-0.5.10.32-py3-none-any.whl
- Upload date:
- Size: 30.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24bdd83d610b389090b04c759f43bea6d1481e5191e80bff0096c19130a4a95b
|
|
| MD5 |
448cf2d1dc2293f093c5bcae543ef95f
|
|
| BLAKE2b-256 |
33b9f058ecd5120d29b6fdf651300acfa5ea9d4cbb347c548d01599b3affc4e2
|