Skip to main content

A script that helps you organize your pictures.

Project description

picorg

Build Status Build Status Build Status

A set of scripts to organize pictures. This is a work in progress and does not fully work at the moment.

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

# Traverses all folders listed in the settings.json file and lists all duplicated filenames and where to find them. Useful when using more than one root folder for your pictures.
picorg -a duplicates

Configuration

A settings file is created in <USER_HOME>/.picorg that stores the users settings.

Developing

Install dependencies from the requirements-dev.txt file

pip install -r requirements-dev.txt

Create a package and install with

python setup.py bdist_wheel sdist
pip install -e .

Run tests with

pytest --cov=src --cov-report html .

or using tox

tox

Before commit

Run the script pre-commit.sh before any commits on order to be consistent with formatting and having sorted imports.

Creating a new version.

  • Create a new version by bumping the version in setup.py.
  • Commit and push.
  • Wait for Travis CI to build.
  • Create a tag in git and push.
  • Push the new package to pypi using twine upload dist/*

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

picorg-0.0.4.tar.gz (14.6 kB view hashes)

Uploaded Source

Built Distribution

picorg-0.0.4-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

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