exiftool

PyExifTool is a Python library to communicate with an instance of Phil Harvey’s excellent ExifTool command-line application. The library provides the class ExifTool that runs the command-line tool in batch mode and features methods to send commands to that program, including methods to extract meta-information from one or more image files. Since exiftool is run in batch mode, only a single instance needs to be launched and can be reused for many queries. This is much more efficient than launching a separate process for every single query.

The source code can be checked out from the github repository with

git clone git://github.com/sylikc/pyexiftool.git

Alternatively, you can download a tarball. There haven’t been any releases yet.

PyExifTool is licenced under GNU GPL version 3 or later, or BSD license.

Example usage:

import exiftool

files = ["a.jpg", "b.png", "c.tif"]
with exiftool.ExifToolHelper() as et:
        metadata = et.get_metadata(files)
for d in metadata:
        print("{:20.20} {:20.20}".format(d["SourceFile"],
                                 d["EXIF:DateTimeOriginal"]))

Submodules

Package Contents

exiftool.__version__ = '0.5.6'