Skip to main content

Python wrapper for exiftool

Project description

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.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.

Getting PyExifTool

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.

Official releases are on PyPI

https://pypi.org/project/PyExifTool/

Installation

PyExifTool runs on Python 2.6 and above, including 3.x. It has been tested on Windows and Linux, and probably also runs on other Unix-like platforms.

You need an installation of the exiftool command-line tool. The code has been tested with version 8.60, but should work with version 8.40 or above (which was the first production version of exiftool featuring the -stay_open option for batch mode).

PyExifTool currently only consists of a single module, so you can simply copy or link this module to a place where Python finds it, or you can call

(It is being slowly re-factored to a module to keep exiftool.py from growing astronomically)

python setup.py install [--user|--prefix=<installation-prefix]

to automatically install that module.

Testing

Run tests to make sure it’s functional

python -m unittest -v tests/test_exiftool.py

Documentation

The documentation is available at http://smarnach.github.com/pyexiftool/.

Licence

PyExifTool is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the licence, or (at your option) any later version, or the BSD licence.

PyExifTool is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See COPYING.GPL or COPYING.BSD for more details.

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

PyExifTool-0.4.7.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

PyExifTool-0.4.7-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

Details for the file PyExifTool-0.4.7.tar.gz.

File metadata

  • Download URL: PyExifTool-0.4.7.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

File hashes

Hashes for PyExifTool-0.4.7.tar.gz
Algorithm Hash digest
SHA256 07159ad0f956019936184aa60164a444ba8e44e5eef18e7adf2a13245e78cefb
MD5 4d75b1bf31f5c47332e5e38347f78e63
BLAKE2b-256 b3803a494f283249f8ae25451d9b91734694d644b6badf8e44a0e31c7b5faaec

See more details on using hashes here.

File details

Details for the file PyExifTool-0.4.7-py3-none-any.whl.

File metadata

  • Download URL: PyExifTool-0.4.7-py3-none-any.whl
  • Upload date:
  • Size: 25.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.1

File hashes

Hashes for PyExifTool-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 08f68d6d11df5921d8b2657b5bc73d07cdfbb32ab2188d8caed604606dbc9025
MD5 e957328b0f5e8b3a9bdb27650b5d311c
BLAKE2b-256 c90fbe27b72bdf2908bbf4026acd96b8a88e3866f729faa02307ffa17bb5875d

See more details on using hashes here.

Supported by

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