pyimorg
is a command-line tool for organizing images.
- Python 3.8+
- Run
python -m pip install git+https://github.com/DarkLight1337/pyimorg.git
to install the package from this repository.
To avoid corrupting existing images, pyimorg
never modifies the input directories; instead, it outputs the results in a new directory, copying the input images as necessary.
pyimorg diff <src1_dir> <src2_dir> <out_dir>
-h <hasher>
to specify the hash function for comparing image contents (sha256
orsha512
).-t <num_threads>
to enable parallel computing via multithreading.
pyimorg groupby <src_dir> <out_dir>
-g <group>
to specify the type of group (year
,month
, orday
).-t <num_threads>
to enable parallel computing via multithreading.
- Clone this repository to your machine.
- Run
poetry lock --no-update && poetry install --with dev
to setup the Python enviroment.
- Setup the development environment.
- Run
poetry run deptry . && poetry run ruff check . && poetry run pyright .
to lint the code.
- Setup the development environment.
- Run
poetry run -- pytest
to test the code and output the coverage report.