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.10
- torch (for GPU utilities)
- Pillow (for image utilities)
- numpy (for image array handling)
- requests (for URL image loading)
License
MIT License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blickutils-26.6.2.tar.gz
(30.3 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-26.6.2.tar.gz.
File metadata
- Download URL: blickutils-26.6.2.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cf35d26420a62171b53826d815a73ccd03459d847a5e8d20c6f971fd82a63c9
|
|
| MD5 |
ecb186d03205f19cff4e6b639210ad7d
|
|
| BLAKE2b-256 |
bb91166b11cef145008b486a02e4aad7b9ececb292a1d39a62f8e36c47c66d3c
|
File details
Details for the file blickutils-26.6.2-py3-none-any.whl.
File metadata
- Download URL: blickutils-26.6.2-py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c4b2df152982a6012d6fefe1b7ef1f72bd090ac4bd46f29fa5ba0df31ebba4c
|
|
| MD5 |
f609af5b2bc651fc7681a3166765e579
|
|
| BLAKE2b-256 |
f434022a94cb1efabf8ee1ae57db41c93ff1e08b0fb8f56ca58c5a0c4b38552d
|