Giter Site home page Giter Site logo

exif2db's Introduction

exif2db

Scan your photo library and store photo metadata into an Sqlite database.

Gain full control over file indexing and search! Abandon the photo management tools that do only one half and cannot do another half of work that you need.

The module scans your photo collection and populates an SQLite database with the most essential information, so that later you can use power of SQL and relational database to perform any kind of search and analysis.

python -m exif2db -d photos.db --with_hash --exclude @eaDir --exclude [Originals] --purge /volume1/Photo

Syntax

exif2db [-h] [-e EXT] [-d DATABASE] [--purge] [--with_hash] [--no_scan] [-x PATTERN] path

  path                  Path to the media library. Content will be scanned recursively.

options:
  -h, --help            show help message
  -e EXT, --ext EXT     Filter on these file name extensions, comma-separated list.
  -d DATABASE, --database DATABASE
                        Location of SQLite database. Defaults to ./sqlite.db
  --purge               Purge the database if not empty.
  --with_hash           Calculate SHA1 hash for each file
  --no_scan             Do not perform new file scan (continue after a failure).
  -x PATTERN, --exclude PATTERN
                        Exclude pattern for files and directories

The database consists of two tables: files and metadata. The first one contains just paths and is filled on the scan stage. The second one contains extracted metadata, as well as file properties and hashes (if this option was enabled).

If the database file already exists, the data will not be erased, new content will be added instead. If this is not desired, --purge key will truncate tables.

--no_scan option is meant for interrupted scans and allows to avoid population of files table.

Examples

exif2db's People

Contributors

greatvovan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.