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.28.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.28.tar.gz.
File metadata
- Download URL: blickutils-0.5.10.28.tar.gz
- Upload date:
- Size: 27.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
235883bc952fc8865f41c13550bbf6b2c257e66e28eb5a91af89d7a724f81076
|
|
| MD5 |
0851fd328d26101567f3d0488a0d8161
|
|
| BLAKE2b-256 |
5703b9de49a32c3b763294198b70d16c96f0ca56dd8d3bb310fa18aa5475cf59
|
File details
Details for the file blickutils-0.5.10.28-py3-none-any.whl.
File metadata
- Download URL: blickutils-0.5.10.28-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.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
634e6655c596d3d08a309a200bff3c3f422401c897e082094172bae25961af1e
|
|
| MD5 |
0475798cdf9a5c2ca2a5925a230955ce
|
|
| BLAKE2b-256 |
c702591cd396f84784ba6bfbc5e7019414324b65f270485159f59fa1497e888a
|