exif-database/README.md
Aloïs Micard 94cc57fe7c
All checks were successful
CI / ci (push) Successful in 34s
Code cleanup
2025-02-24 08:35:06 +01:00

1.2 KiB

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.

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>