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. 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-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.
  • Wait for Travis CI to build the tag.
  • 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.1.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

picorg-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file picorg-0.1.0.tar.gz.

File metadata

  • Download URL: picorg-0.1.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for picorg-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1df6d5e6b804ad0ab82853fcb15289e1661a92bab3f477833ab4702c3c3a1d85
MD5 83a4089551bf5ca33d70764ea6919527
BLAKE2b-256 dff3c4bde1822c9ded0748676550089135a664f06cfd3452bd5c42fb45b2d301

See more details on using hashes here.

File details

Details for the file picorg-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: picorg-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for picorg-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1e1c12b2d2f1bfc852d4b65f809de1d0472c1cd4cce4df447246046ed09b412
MD5 ecd86ca87b0ee97e62e5f04f5418d5b5
BLAKE2b-256 9ed6dd3fcc2f35815043a6205f6f069c2910dee40f9e6314ef422c98bea3e331

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page