Skip to main content

Unibox is a tool that aims to provide a unified interface for various common daily operations

Project description

Unibox

Python PyPI Version Code style: black License: MIT

Unibox is a tool that aims to provide a unified interface for various common daily operations.

Features

CLI:

  • unibox resize <dir>: resizes a directory of images using either pillow or libvips
    • customizable size / quality / encoding (png / webp / jpeg)
  • unibox copy <dir>: an awscli-like tool for copying files with certain suffix to a new dir, keeping the same directory structure.
    • bypasses windows explorer so it's much faster.
  • unibox move <dir>: like copy, but moves instead

utils:

  • UniLogger: uniformed logger class (logger = unibox.UniLogger(), and use logger.info(...))
  • UniLoader: uniformed data loader class (unibox.loads(<any file>))
  • UniSaver: uniformed data saver class (unibox.saves(<any file>))
  • UniTraverser: uniformed directory traverser class, with callbacks in multiple stages

Install

install from pypi:

pip install unibox

build from source:

git clone https://github.com/trojblue/unibox

# pip install poetry
poetry install
poetry build
pip install dist/unibox-<version number>.whl

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

unibox-0.2.9.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

unibox-0.2.9-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file unibox-0.2.9.tar.gz.

File metadata

  • Download URL: unibox-0.2.9.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for unibox-0.2.9.tar.gz
Algorithm Hash digest
SHA256 76f0b3457f763663c191ee4645ebe79bfe6a265c1dee6ad05458de92fa565199
MD5 a0ac142ce7cf7b84bf1a844b8238d8a6
BLAKE2b-256 55a49e68044051d8ce85cedb5b244a9bce4a6b5d16efc5a83e32bc3ec3bd1957

See more details on using hashes here.

File details

Details for the file unibox-0.2.9-py3-none-any.whl.

File metadata

  • Download URL: unibox-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for unibox-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6afde3873123b50133fcb51f8c04b18530f39abf470fe215c5989e02705c6a3a
MD5 8b2216cf9d5d5d71d5c9fc6fc541951d
BLAKE2b-256 328a1d4af6bc79ae4b6ee69370a3fb3b5ae51c516be6d9abfb6701c053420e1e

See more details on using hashes here.

Supported by

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