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://sylikc.github.io/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.
Release files for PyExifTool 0.4.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PyExifTool-0.4.13.tar.gz | 28.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyExifTool-0.4.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 54.5 kB
Release files / PyExifTool-0.4.13.tar.gz
| Download URL | PyExifTool-0.4.13.tar.gz |
|---|---|
| Size | 28.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c59c502dab4aa7dd0708e91d4a30cd06c10b08cd7daa1c86b6fe85330cec1293
|
|
BLAKE2b-256 checksum How to use checksums |
93d78c12cd910019124041fe5b823ebd448f250a0b6998f5006f25bc98a99550
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6
|
Release files / PyExifTool-0.4.13-py3-none-any.whl
| Download URL | PyExifTool-0.4.13-py3-none-any.whl |
|---|---|
| Size | 25.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fda35484325eecd150364160665baadc90cf330288d2048665505ad8ba5b4fc2
|
|
BLAKE2b-256 checksum How to use checksums |
b140e72225ece9fc83c669627df08b976db7c341c34006b41c4fb235a4354eb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6
|