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(<filename>))
  • UniSaver: uniformed data saver class (unibox.saves(<data>, <filename>))
  • 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.10.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

unibox-0.2.10-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unibox-0.2.10.tar.gz
  • Upload date:
  • Size: 11.8 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.10.tar.gz
Algorithm Hash digest
SHA256 d7b48e183307664f5535c757ea5f1f70bc392d26530e9679a56865b15f7d8fd7
MD5 6cbe31397da3dee963b11889f49824f3
BLAKE2b-256 20e367e3719ce63efc8c87ad088775c864e609d68ee743678b4d73aa7ca1f5a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unibox-0.2.10-py3-none-any.whl
  • Upload date:
  • Size: 14.9 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 2ce387b480c854fd32f004245fd0050668a1b40935532fd5f113e820188f95c5
MD5 3560477e171b5bfa9aaf71f72e10b0f3
BLAKE2b-256 6481f5b45e91a9ffeb61c95f0f2b8b51ad5ef93832eb85410a4c546511b3b5c3

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