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/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


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.27.tar.gz (27.9 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.27-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: blickutils-0.5.10.27.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

Hashes for blickutils-0.5.10.27.tar.gz
Algorithm Hash digest
SHA256 3831d0b0e6d684c26220f07079fbbbc7b958a17b9e0e071b0e93780124de0fa5
MD5 3b5d1225b95c817113dbc22cb43d242d
BLAKE2b-256 e9ebd1467f63e80babb1934e8085eadf27414994b192f0dd9a788a1cde2d70f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blickutils-0.5.10.27-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

Hashes for blickutils-0.5.10.27-py3-none-any.whl
Algorithm Hash digest
SHA256 37c15bac6b6f65fe22ac2e39ec4c8335df92b6ef47d7a3f2989c0be96d5cafe6
MD5 6ccf000b1b3d5c9e8ac88420a495a9f8
BLAKE2b-256 7d85705276516391a87665086e13e101d180fec1f8ea0fb7e1d6ba71f339462f

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