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

Uploaded Source

Built Distribution

unibox-0.2.12-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unibox-0.2.12.tar.gz
  • Upload date:
  • Size: 12.2 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.12.tar.gz
Algorithm Hash digest
SHA256 e5f036ee0e140fa7f5c55bb2ba9b8fc114ef1a0927661a300859a93189cce108
MD5 f50fa2e18c64a528b014b0cc61db9b43
BLAKE2b-256 a0e1cd5f2745fa2b90cf5ca1e34e60dec3fc3445b26ad254eb0443820e25107f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unibox-0.2.12-py3-none-any.whl
  • Upload date:
  • Size: 15.8 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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 846d5efea7b7e74c91a0ad83db93ec283cc02214de20c9be09fe7adbfabfd026
MD5 3bf99db235fff2ef6dbe4c7668d1a018
BLAKE2b-256 a1e88adbc185fb61894c5ddb5521ffc135c901345912228c502bc7056eba0b2b

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