Gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes the basic features of Exiv2 available to GNOME applications.
At the time of writing, the current version in Debian unstable/testing is 0.4.1. On 1 October 2012, upstream version 0.5.0 was released, with support for GObject Introspection and shipped with a Python module, to allow gexiv2 to be used from Python.
This is important, because the existing Python bindings for Exiv2 (pyexiv2) will not (or cannot) be ported to Python 3. Gexiv2 0.5.0 fills this gap.
Debian.dev-zero.nl now hosts Gexiv2 packages with GObject Introspection support, but only for Wheezy. The source package is also available. The binary package named ‘gir1.2-gexiv2-0.4’ is new, and contains all the magic.
To use it, do something like this:
#!/usr/bin/python from gi.repository import GExiv2 from pprint import pprint metadata = GExiv2.Metadata('/path/to/image') pprint (metadata.get_tags()) pprint (metadata.get_gps_info()) # and so on...
In the mean time, I have filed a wishlist bug report with Debian to ask version 0.5.0 to be included in Debian.
Update, 8 January 2013
I didn’t check in a while, but is seems that GExiv2 0.5.0 with GI support entered experimental on November 28th, 2012.