Dump pictures metadata into a MongoDB database for statistics purposes https://pypi.org/project/exif-database/
Find a file
Aloïs Micard 6ff3de842a
All checks were successful
CD / ci (push) Successful in 35s
CI / ci (push) Successful in 28s
Release 0.1.1
2025-02-24 12:14:31 +01:00
.forgejo/workflows Code cleanup 2025-02-24 08:35:06 +01:00
exif_database exiftool: correct json serialization 2025-02-24 12:13:19 +01:00
.gitignore Code cleanup 2025-02-24 08:35:06 +01:00
Changelog.md Release 0.1.1 2025-02-24 12:14:31 +01:00
docker-compose.yml Rework to provide directory instead of file 2024-11-14 17:34:56 +01:00
LICENSE.txt Code cleanup 2025-02-24 08:35:06 +01:00
pyproject.toml Release 0.1.1 2025-02-24 12:14:31 +01:00
README.md Code cleanup 2025-02-24 08:35:06 +01:00
requirements.txt Code cleanup 2025-02-24 08:35:06 +01:00

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>