Skip to main content

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

Metadata

Release files for BlickUtils 26.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for BlickUtils 26.6.2
File Size Uploaded Provenance Actions
blickutils-26.6.2.tar.gz 30.3 kB Without provenance Details for blickutils-26.6.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for BlickUtils 26.6.2
File Interpreter ABI Platform Actions
blickutils-26.6.2-py3-none-any.whl Python 3 none any Details for blickutils-26.6.2-py3-none-any.whl

Total release size: 62.8 kB

Release files / blickutils-26.6.2.tar.gz

Download URL blickutils-26.6.2.tar.gz
Size 30.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9cf35d26420a62171b53826d815a73ccd03459d847a5e8d20c6f971fd82a63c9
BLAKE2b-256 checksum
How to use checksums
bb91166b11cef145008b486a02e4aad7b9ececb292a1d39a62f8e36c47c66d3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.12

Release files / blickutils-26.6.2-py3-none-any.whl

Download URL blickutils-26.6.2-py3-none-any.whl
Size 32.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c4b2df152982a6012d6fefe1b7ef1f72bd090ac4bd46f29fa5ba0df31ebba4c
BLAKE2b-256 checksum
How to use checksums
f434022a94cb1efabf8ee1ae57db41c93ff1e08b0fb8f56ca58c5a0c4b38552d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.12

Security for BlickUtils 26.6.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page