Application to import photos into a hierarchical structure based on the EXIF data of the photos.
Project description
A tool for importing photos from one directory into a hierarchical folder structure in another directory based on the EXIF data of the photos.
This only works with Python 3. Python 2 will be end-of-life’d after 2019, but there is an issue open for discussion of any compelling reasons why this should be made backwards-ly compatible.
The idea is that you’re able to sort a folder full of photos (such as those straight off a memory card) into a navigable hierarchy like the following:
$ tree Photos
Photos
└── 2019
├── 03
│ ├── 11
│ │ ├── photo1.jpg
│ │ ├── photo2.jpg
│ │ └── photo3.jpg
│ ├── 12
│ │ └── photo4.jpg
│ └── 13
└── 04
└── 01
├── photo5.jpg
└── photo6.jpg
Usage
Installation
The photo-import command can be installed via pip as follows:
$ pip install photo-import
$ photo-import --version
0.0.3
Usage
Basic usage is as follows:
$ photo-import /path/to/source/image.jpg /path/to/photos/
This will move image.jpg into an appropriate folder within the /path/to/photos/ directory, resulting in, for example, /path/to/photos/2019/03/11/image.jpg.
Further usage instructions are provided by using the --help option:
$ photo-import --help
Development
Running from source
There’s also a “runner” python script provided in the root of this repository for convenience when the source code is checked out locally:
$ pip install -r requirements.txt
$ python runner.py --version
0.0.3
$ ./runner.py --version
0.0.3
Commit message format
Commit messages should conform to the conventional commits standard, and to help with this you should install the commitizen tool:
$ pip install -r dev-requirements.txt
$ git add .
$ cz commit
Tests
To run the test suite locally, use nose2 for unit tests, and behave for behavioural tests:
$ pip install -r requirements.txt
$ nose2
$ python setup.py install
$ behave
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
Hashes for photo_import-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e36b9491b123a8087f15d723c1b6ed8a0a5876030f4fab929fc0dcb721c1c8df |
|
MD5 | 3db997b9549819b697baee864698512b |
|
BLAKE2b-256 | 810b0618e705c3e68086f9a6b05805bd07c59b821ec750c96ff3fbb34f8ad4d6 |