Unibox is a tool that aims to provide a unified interface for various common daily operations
Project description
Unibox
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 eitherpillow
orlibvips
- 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>
: likecopy
, but moves instead
utils:
UniLogger
: uniformed logger class (logger = unibox.UniLogger()
, and uselogger.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
Release history Release notifications | RSS feed
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.11.tar.gz
(11.8 kB
view details)
Built Distribution
unibox-0.2.11-py3-none-any.whl
(14.9 kB
view details)
File details
Details for the file unibox-0.2.11.tar.gz
.
File metadata
- Download URL: unibox-0.2.11.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5d97a1f58b0b3a0c8f8b018f746db71cd7a5f0c1288f388af260cf157f14472 |
|
MD5 | 9002bfe80560cf193d35261ddd6d987f |
|
BLAKE2b-256 | 4ffec5c746420e3c23fb0411906809acf992b09b6afdcbf9a5f9fab55bfd8b12 |
File details
Details for the file unibox-0.2.11-py3-none-any.whl
.
File metadata
- Download URL: unibox-0.2.11-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46765c3be4ba7de8003b53dc89a0a33f2c93b1c85295d3e47a511a7b2b1c5e9f |
|
MD5 | 883a11984212bd0f463475ea9cb7129e |
|
BLAKE2b-256 | 1b659c82850cacbacb308120222fb33467ec89d49fa9691afb0d91ba1324b90d |