A script that helps you organize your pictures.
Project description
picorg
A set of scripts to organize pictures. It is ideal if you save your images in different locations on your hard drives and manually backup your images from your phone.
Installation
pip install picorg
Usage
# Renames all images in the current working directory and its subdirectories. It tries to use the timestamp of when the image was taken from the EXIF data. If the script cannot find a suitable name for a file, it will be moved to a **NOK** folder and the filename will be printed to the console.
picorg -a rename
# Checks all files in current working dir for files with the same content. If two files has the same content,
# the one with the "biggest" name is moved to a *duplicates* folder. It then traverses all the files in
# all the directories listed in pic_paths (in the settings file). If a file matches by name and content,
# the file in current working dir will be moved to the *duplicates* folder.
picorg -a duplicates
Configuration
A settings file is created in <USER_HOME>/.picorg that stores the users settings.
Developing
Install dependencies from the requirements.txt file
pip install -r requirements.txt
Create a package and install with
python -m build
pip install -e .
Before commit
Run the command pre-commit run --verbose --all-files --show-diff-on-failure before any commits on order to be consistent with formatting and having sorted imports.
Creating a new version.
- Create a new tag and push. The publishing of the new version is done automagically.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file picorg-0.2.6.tar.gz.
File metadata
- Download URL: picorg-0.2.6.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f34820095a9f8343cf60d03a7bb8196a40d0f32175d41f1d42dca1a9e6910bad
|
|
| MD5 |
7d78b4ec3c38d5634fc7413d38dafce8
|
|
| BLAKE2b-256 |
45abc4bb0c7f817a30d3a740ca96923cc81f6f6c527498da97df0915ad27d11f
|
File details
Details for the file picorg-0.2.6-py3-none-any.whl.
File metadata
- Download URL: picorg-0.2.6-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27e7dec9bccd6d912fba7d2f0e18309481ccd073065001bafd25ffea26cd2a03
|
|
| MD5 |
10c66e3f5fe8cbdb52fba06f3c047ff6
|
|
| BLAKE2b-256 |
01588b2884ae2ebc3e23ebac26cfe1fb35ce7da27b5b8b179149ec3f5109d2c8
|