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.13.tar.gz
(12.4 kB
view details)
Built Distribution
unibox-0.2.13-py3-none-any.whl
(16.0 kB
view details)
File details
Details for the file unibox-0.2.13.tar.gz
.
File metadata
- Download URL: unibox-0.2.13.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1b0cb4f8fb5969140a2168e532835a30392e860563cf47caa3304bae40efb53 |
|
MD5 | 2be000a58cb668c4b2b1713be013d105 |
|
BLAKE2b-256 | 8f73cc3b5a504a88cc732b3096265c70407ce33d5c0be81e6f18bac037ddb010 |
File details
Details for the file unibox-0.2.13-py3-none-any.whl
.
File metadata
- Download URL: unibox-0.2.13-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | baaccbf56538110e5a94ed63aadbbf0c0ab154bec2afd8f52bccd7e144144f72 |
|
MD5 | ceccfb8ab3122f22d9f212f2f5bb4189 |
|
BLAKE2b-256 | 40b9d08300b70094eb0dfbf418444784997fd690e643ec10cd895f9ccf8e6249 |