A lightweight package to read metadata from Sony .ARW files
Project description
MyArwReader
A lightweight Python package to read metadata from Sony .ARW files.
Overview
MyArwReader provides a simple interface to extract metadata from .ARW files using the pyexiftool library. It supports accessing all metadata tags (EXIF, XMP, IPTC, etc.) or specific tags like ISO, camera model, or timestamp.
Installation
pip install path/to/MyArwReader-0.1.0-py3-none-any.whl
Requirements
Python: 3.6 or higher
pyexiftool: Installed automatically as a dependency
exiftool: Must be installed separately and available in your system PATH. Download from the official ExifTool website and follow the installation instructions.
Usage
Basic Example
Extract specific metadata tags from an .ARW file:
from MyArwReader import ARWReader
file_path = "path/to/your/file.ARW"
reader = ARWReader(file_path)
print(f"File: {reader.file_path}")
print(f"ISO: {reader.get_tag('EXIF:ISO')}")
print(f"Camera: {reader.get_tag('EXIF:Model')}")
print(f"DateTimeOriginal: {reader.get_tag('EXIF:DateTimeOriginal')}")
Full Metadata Example
from MyArwReader import ARWReader
reader = ARWReader("path/to/your/file.ARW")
metadata = reader.get_metadata()
print(metadata)
Batch Processing Example
Process multiple .ARW files in a directory:
import os
from MyArwReader import ARWReader
arw_dir = "path/to/your/arw/files"
file_paths = [os.path.join(arw_dir, f) for f in os.listdir(arw_dir) if f.lower().endswith('.arw')]
for file_path in file_paths:
reader = ARWReader(file_path)
print(f"File: {reader.file_path}")
print(f"ISO: {reader.get_tag('EXIF:ISO')}")
print(f"Camera: {reader.get_tag('EXIF:Model')}")
print(f"DateTimeOriginal: {reader.get_tag('EXIF:DateTimeOriginal')}")
print()
Methods
get_metadata(): Returns a dictionary of all metadata tags.
get_tag(tag): Returns the value of a specific tag (e.g., 'EXIF:ISO') or None if not found. For a list of Sony-specific EXIF tags, see the Sony Tag ID documentation. https://exiftool.org/TagNames/Sony.html
Notes
Ensure your .ARW file paths are valid; a FileNotFoundError will be raised if the file doesn’t exist.
Install exiftool separately and ensure it’s in your system PATH for pyexiftool to work. See the ExifTool download page for the latest version. https://exiftool.org/
License
This project is licensed under the MIT License. See the LICENSE file for details.
Author
ARWEnthusiast
MIT License
Copyright (c) 2025 ARWEnthusiast
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file myarwreader-0.1.1.tar.gz.
File metadata
- Download URL: myarwreader-0.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4126944f5004e30612ce00e1a7ca5e501f90fdda8f4f6b8d924cc9f92a16333f
|
|
| MD5 |
9282b9297762cc6026720942f77b632c
|
|
| BLAKE2b-256 |
55efa8a82ca5f7e432243e2aec767c2c4ca1067e0ae6c2f9f58df2cc1185e5d5
|
File details
Details for the file myarwreader-0.1.1-py3-none-any.whl.
File metadata
- Download URL: myarwreader-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7b57398f476bafe3cbb47bd9445f5b6de9781f92aa0883086d3ee802b70548e
|
|
| MD5 |
607f017a48d588c569d0688ec22b477a
|
|
| BLAKE2b-256 |
ae61c581ab0ba3c70179c8802c7d265de9220406c330070301b61cc01de99c1c
|