PyExifTool
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.
Metadata
Release files for PyExifTool 0.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyExifTool-0.4.5.tar.gz | 11.3 kB | Without provenance | Details for PyExifTool-0.4.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyExifTool-0.4.5-py3-none-any.whl | Python 3 | none | any | Details for PyExifTool-0.4.5-py3-none-any.whl |
Total release size: 36.7 kB
Release files / PyExifTool-0.4.5.tar.gz
| Download URL | PyExifTool-0.4.5.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2041adaefbb465c0197107fccf3d46d40d21660d745f39a8eb9a7653d096b3f
|
|
BLAKE2b-256 checksum How to use checksums |
0a3643d3f946eafe6f241975d3f8472243190b69e98a5b0d5328475ff33d0de5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
|
Release files / PyExifTool-0.4.5-py3-none-any.whl
| Download URL | PyExifTool-0.4.5-py3-none-any.whl |
|---|---|
| Size | 25.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93b4e239250725b8103ed6b228342a00aa2337cf6a626e6a6433d2c4099c39be
|
|
BLAKE2b-256 checksum How to use checksums |
c9405b8a588cf0fc6da28659fa6efb7400bb42d31a3aad0b39a5e3f0119e9940
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
|
Security for PyExifTool 0.4.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.