Skip to main content

A collection of utility functions for Blick Technologies

Project description

blick_utils

Blick Technologies Python Utilities

1 - Installation

pip install git+https://github.com/yourusername/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


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.20.tar.gz (25.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blickutils-0.5.10.20-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file blickutils-0.5.10.20.tar.gz.

File metadata

  • Download URL: blickutils-0.5.10.20.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for blickutils-0.5.10.20.tar.gz
Algorithm Hash digest
SHA256 1387225a325b5257f9e1e205dbd47e6b185c0306b83be04d94d334fee4b86c7c
MD5 4f03f3cdddcb811f18051c4f66bb4a18
BLAKE2b-256 f64e431999b015f10f3ab25eea1f9f33507eba6a9286758778f184054123e52d

See more details on using hashes here.

File details

Details for the file blickutils-0.5.10.20-py3-none-any.whl.

File metadata

  • Download URL: blickutils-0.5.10.20-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for blickutils-0.5.10.20-py3-none-any.whl
Algorithm Hash digest
SHA256 f6074aeeb10eef1b508a2d08c1072bd0602068c1c0a0f43d9394235b53346bbe
MD5 9eaed479b6b381aa539a1758d735ce7a
BLAKE2b-256 f82f664ccaaf25401f6f5c4f0e912ec99f3794bab0795249665ee5068a583443

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page