python-xmp-toolkit
XMP I/O wrapping Exempi
What it is and what it does
Python XMP Toolkit is a ctypes wrapper around Exempi, a C/C++ library for working with XMP metadata. It allows you to read and write XMP metadata embedded in various file formats. The library is developed by ESA/Hubble, ESO, and CRS4, and it ties Python code to Adobe's XMP standard through Exempi, ensuring that XMP standard updates can be incorporated with minimal effort.
The package depends only on pytz at runtime and installs as a pure Python wheel, but it requires the Exempi C library to be present on your system to function. The codebase has been stable since its first release in 2012, though releases are infrequent; the repository remains active and the package is marked as production-stable.
Use it for:
- Extract metadata from image files in batch processing workflows.
- Embed or update XMP tags in photos during digital asset management operations.
- Read custom XMP properties from documents to integrate metadata into cataloging systems.
- Automate metadata synchronization between XMP-aware applications and external systems.
- Validate XMP metadata in media archives or publishing workflows.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Read and write XMP metadata in image and document files by wrapping the Exempi C library through ctypes.
Yes, if you need XMP metadata access and Exempi is available on your system. The package is stable, permissively licensed, and has low install friction. However, the aging maintenance status (261 days since last release) and the hard dependency on a native C library mean you should verify Exempi availability in your deployment environment and confirm Python version compatibility before committing to it in production.
Install
python-xmp-toolkit on PyPI
pip
pip install python-xmp-toolkituv
uv add python-xmp-toolkitpoetry
poetry add python-xmp-toolkitInstalling python-xmp-toolkit
Before you install
Low friction installation with a single runtime dependency (pytz). The package is marked as aging—last release was 261 days ago—but the repository remains active with a recent commit on 2025-11-26, suggesting maintenance is sporadic rather than abandoned.
License in practice
Licensed under a permissive BSD license, allowing use in both open-source and proprietary projects without copyleft obligations.
Quickstart
pip install python-xmp-toolkit
import python_xmp_toolkit
# See documentation at python-xmp-toolkit.readthedocs.org for usage examples
Requires Exempi (a C/C++ library) to be installed on the system; the Python package is a ctypes wrapper and cannot function without the underlying native library.
Verify before relying
- Which file formats are supported for XMP metadata reading and writing.
- Whether the package works with modern Python versions (requires_python is unspecified).
- Current test coverage and whether the test suite passes on recent Python releases.
- Specific API methods and usage patterns for reading and writing metadata.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — pytz |
| Maintenance | aging — 261 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 97,680/month — #13,133 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: python_xmp_toolkit-2.1.0-py2.py3-none-any.whl
Keywords: XMP, metadata, multimedia, development, utilities
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
pyexiv2pyexiv2 reads and writes image metadata (EXIF,…
copyleft · top 15,000 on PyPI
tifffileRead and write TIFF files and TIFF-like formats…
permissive · top 1,000 on PyPI
libmagicProvides Python bindings to the libmagic…
copyleft · top 15,000 on PyPI
PyAVMPyAVM reads, writes, and embeds Astronomy…
permissive · top 15,000 on PyPI
pillow-heifpillow-heif adds HEIF/HEIC image format support…
copyleft · top 5,000 on PyPI
psd-toolspsd-tools reads and writes Adobe Photoshop…
permissive · top 15,000 on PyPI
pyprctlProvides a pure-Python interface to Linux's…
permissive · top 15,000 on PyPI
pymp4Parses and builds MP4 box structures from…
permissive · top 5,000 on PyPI
tinytagReads metadata (artist, title, duration,…
permissive · top 5,000 on PyPI
pymediainfopymediainfo extracts detailed metadata from…
permissive · top 5,000 on PyPI