GeoPicTagReader
Python library to extract standardized metadata from geolocated pictures EXIF metadata.
[[TOC]]
Features
This tool allows you to:
- Analyse various EXIF variables to extract standardized metadata for geolocated pictures applications
Install
GeoPicTagReader can be installed using two methods:
- From PyPI, the Python central package repository
- Using this Git repository
From PyPI
Just launch this command:
pip install geopic_tag_reader
After this you should be able to use the CLI tool with the name geopic-tag-reader:
geopic-tag-reader --help
Alternatively, you can use pipx if you want all the script dependencies to be in a custom virtual env.
You need to install pipx, then:
pipx install geopic_tag_reader
From Git repository
Download the repository:
git clone https://gitlab.com/geovisio/geo-picture-tag-reader.git geopic_tag_reader
cd geopic_tag_reader/
To avoid conflicts, it's considered a good practice to create a virtual environment (or virtualenv). To do so, launch the following commands:
# Create the virtual environment in a folder named "env"
python3 -m venv env
# Launches utilities to make environment available in your Bash
source ./env/bin/activate
Then, install the dependencies using pip:
pip install -e .
You can also install the dev dependencies if necessary (to have lints, format, tests, ...):
pip install -e .[dev]
Then, you can use the geopic-tag-reader command:
geopic-tag-reader --help
Usage
This library can be used both from command-line or as Python module.
As command-line
To see all available commands:
geopic-tag-reader --help
Full documentation is also available here.
As Python library
In your own script, you can use:
from geopic_tag_reader import reader
from PIL import Image
# Open an image with Pillow
img = Image.open("my_picture.jpg")
# Read EXIF metadata
metadata = reader.readPictureMetadata(img)
# Print results
print(metadata)
Full documentation is also available here.
Development
Tests
Tests are run using PyTest. You can simply run this command to launch tests:
pytest
Documentation
High-level documentation is handled by Typer. You can update the generated USAGE.md file using this command:
make docs
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Note that before opening a pull requests, you may want to check formatting and tests of your changes:
make ci
License
Copyright (c) GeoVisio team 2023, released under MIT license.
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 geopic-tag-reader-0.0.1.tar.gz.
File metadata
- Download URL: geopic-tag-reader-0.0.1.tar.gz
- Upload date:
- Size: 17.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
python-requests/2.28.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69e7bb30ce827ec45196c53e68e44bf98a88e2dfa5234e67ca58b50db39b200e
|
|
| MD5 |
319e317e6af0373fd9f5e1f349a90fa0
|
|
| BLAKE2b-256 |
ce1987c3916980cef05443c41aa72e779dda9e7655c625b9003172f2afb374b8
|
File details
Details for the file geopic_tag_reader-0.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: geopic_tag_reader-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
python-requests/2.28.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27bd93983f9ddbbd42deeea1b5230e91f41e5f15a5d9dd86fe93d15ce5eb226e
|
|
| MD5 |
485702af7e2fed5ac4c7f5e7427867ff
|
|
| BLAKE2b-256 |
78ce18652b421f2e8e89e0bff05cd3c512636dfb1295363d945b8d9d6e188221
|