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.26.tar.gz
(27.9 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.26.tar.gz.
File metadata
- Download URL: blickutils-0.5.10.26.tar.gz
- Upload date:
- Size: 27.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4523715ac4fbc78299eb04e3f6604bf616c02e81d26050d994ae6d8dc4bf67ff
|
|
| MD5 |
2c881b2e8ab9e4f398a1bed10b029b91
|
|
| BLAKE2b-256 |
c82b40111bad3f6e28caf8b8580e26bd667889bb725a7c01d839879280fb9a57
|
File details
Details for the file blickutils-0.5.10.26-py3-none-any.whl.
File metadata
- Download URL: blickutils-0.5.10.26-py3-none-any.whl
- Upload date:
- Size: 30.0 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 |
144daa72f2f5e793a85b762ad42352daa66dfc2c66480efbb0571f5f2b6f8805
|
|
| MD5 |
bc3a5783a86c8437fd31e027084967ac
|
|
| BLAKE2b-256 |
e0340ab7d089e6f5d94a53c166bd15f6cbd5c8ac44809d64c2c6b33dcc20c604
|