From 10f0668d6a83836c6d60cf3fbd37d4126f0ce47b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Micard?= Date: Mon, 24 Feb 2025 12:13:09 +0100 Subject: [PATCH 1/2] exiftool: correct json serialization Closes: #1 --- exif_database/exiftool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) From 6ff3de842a50af33d4f933447d9e906edb329cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Micard?= Date: Mon, 24 Feb 2025 12:14:14 +0100 Subject: [PATCH 2/2] Release 0.1.1 --- Changelog.md | 6 ++++++ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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/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" }, ]