Metadata-Version: 2.2
Name: exif-database
Version: 0.1.0
Summary: Dump pictures metadata into a MongoDB database for statistics purposes
Author-email: Aloïs Micard <alois@micard.lu>
Project-URL: Homepage, https://git.creekorful.cloud/creekorful/exif-database
Project-URL: Issues, https://git.creekorful.cloud/creekorful/exif-database/issues
Project-URL: Changelog, https://git.creekorful.cloud/creekorful/exif-database/src/branch/main/Changelog.md
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: pymongo>=4.10
Requires-Dist: platformdirs>=4.3

# exif-database

Dump pictures metadata into a MongoDB database for statistics purpose

## How does it work?

This script works by scanning all files in given directory and then serialize the EXIF metadata to push them
into a MongoDB instances.

## Installation

This package is available on PyPi. You can install it using pip.

```
$ pip install exif-database
```

## Configuration

No configuration is needed. You only need to set up a MongoDB server with a dedicated collection and user
in order for the script to save the data.

[More information](https://docs.bitnami.com/aws/infrastructure/mean/configuration/create-database/).

Note: A docker compose file is provided with this repository but is only used to set up a dev environment easily.

## Executing the script(s)

This package provides two binaries:

### exif-database

This is the main binary, the one used to parse the EXIF and send them to MongoDB.

```
$ MONGO_URI=mongodb://user:pass@server/db python3 -m exif_database <path to images dir>
```

### exif-database.exiftool

This tool parse EXIF metadata of given file and output them to stdout.

```
$ python3 -m exif_database.exiftool <path to image file>
```
