Skip to main content

Dump pictures metadata into a MongoDB database for statistics purposes

Project description

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>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exif_database-0.1.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

exif_database-0.1.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file exif_database-0.1.0.tar.gz.

File metadata

  • Download URL: exif_database-0.1.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for exif_database-0.1.0.tar.gz
Algorithm Hash digest
SHA256 91f17194778771ab32c3fbbf1ae6bd9595402631cd236da07d76c9f608f59d12
MD5 95e9c4ef388eb6f2086d3f7c92d7efdd
BLAKE2b-256 853320c41823c9e538b3e454c1520f4b9cabad6381d5e2ffb1c03f2d06fe9807

See more details on using hashes here.

File details

Details for the file exif_database-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: exif_database-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for exif_database-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2696e6259f6895f8561765547c35507884d1d5373ae0c911d83e47257585444e
MD5 19973df2eb19142e8dc165e9a735b8f2
BLAKE2b-256 baef89c106465d3da624786614dbd5f5fc16e2f20a8f5dd100155161ce87f574

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page