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.30.tar.gz
(28.0 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.30.tar.gz.
File metadata
- Download URL: blickutils-0.5.10.30.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bf3709129142a73c9a63bb2d5ae06f3e07387e485b8f6e11a3083c64eb1fd94
|
|
| MD5 |
8618c62cb4a2546d668f951f4e384008
|
|
| BLAKE2b-256 |
3bd356bda73529106d8a8e4ff1d92226d32ee4c3df28c5ff8bbf566acccc9674
|
File details
Details for the file blickutils-0.5.10.30-py3-none-any.whl.
File metadata
- Download URL: blickutils-0.5.10.30-py3-none-any.whl
- Upload date:
- Size: 30.1 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 |
b604dfdbce0095d79dd0ba3af4d65bd9fb536d8fe0138cca3c182e0534fc3be7
|
|
| MD5 |
64dbaa5762f7137de5019763ba6f8324
|
|
| BLAKE2b-256 |
a8be3094b8dedc80c4afbc991e14edb0926f249f2c421fddc655d85bf28b80fa
|