diff --git a/Changelog.md b/Changelog.md index ae8b60d..6db0f83 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,12 @@ ## [Unreleased] +## [0.1.1] - 24/02/2025 + +### New + +- [#1] Add exiftool json output. + ## [0.1.0] - 24/02/2025 - Initial release. \ No newline at end of file diff --git a/exif_database/exiftool.py b/exif_database/exiftool.py index caad3de..48419da 100644 --- a/exif_database/exiftool.py +++ b/exif_database/exiftool.py @@ -1,7 +1,7 @@ """ exif-database.exiftool: Python wrapper around exiftool(1) """ - +import json import subprocess import sys from datetime import datetime @@ -122,4 +122,4 @@ def execute_exiftool(img_file: str) -> dict: if __name__ == '__main__': - print(execute_exiftool(sys.argv[1])) + print(json.dumps(execute_exiftool(sys.argv[1]), default=str)) diff --git a/pyproject.toml b/pyproject.toml index ded4e1d..2d9a32f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" [project] name = "exif-database" -version = "0.1.0" +version = "0.1.1" authors = [ { name = "Aloïs Micard", email = "alois@micard.lu" }, ]