Open Sustainable Technology

A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

Browse accepted projects | Review proposed projects | Propose new project | Open Issues

Naturtag

A tool for nature photographers that adds useful metadata to describe the organisms in your photos.
https://github.com/pyinat/naturtag

biodiversity biodiversity-data cli darwin-core dwc exif hierarchical-keywords inaturalist iptc photography taxonomy xmp

Last synced: about 19 hours ago
JSON representation

Repository metadata

Tag your nature photos with iNat taxonomy and observation metadata

README

        

# Naturtag

[![Build status](https://github.com/pyinat/naturtag/workflows/Test/badge.svg?branch=main)](https://github.com/pyinat/naturtag/actions)
[![Documentation Status](https://readthedocs.org/projects/naturtag/badge/?version=stable)](https://naturtag.readthedocs.io/en/stable/)
[![GitHub issues](https://img.shields.io/github/issues/pyinat/naturtag)](https://github.com/pyinat/naturtag/issues)
[![PyPI](https://img.shields.io/pypi/v/naturtag?color=blue)](https://pypi.org/project/naturtag)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/naturtag)](https://pypi.org/project/naturtag)


[![](assets/icons/naturtag-gh-preview.png)](https://naturtag.readthedocs.io)

## Contents
- [Summary](#summary)
- [Use Cases](#use-cases)
- [Installation](#installation)
- [Usage](#usage)
- [GUI](#gui)
- [CLI](#cli)
- [Library](#library)
- [Development Status](#development-status)

## Summary
Naturtag is a tool for nature photographers that adds useful metadata to describe the organisms in
your photos. It includes a **desktop application**, a **command-line interface**, and can also be
used as a **python library**. It is mainly intended for use with [iNaturalist](https://www.inaturalist.org), but can also be used independently.

Naturtag gathers complete observation metadata (for iNaturalist observation photos), or just taxonomy metadata (for everything else). It then embeds this information in your local photo collection using
[XMP](https://en.wikipedia.org/wiki/Extensible_Metadata_Platform) and
[EXIF](https://en.wikipedia.org/wiki/Exif) metadata.

## Use Cases
This image metadata has a variety of uses, including:

### Local photo organization
Naturtag can tag your photos with **hierarchical keywords** (aka structured keywords), which
are supported by some photo viewers/editors like
[**Lightroom**](https://millennialdiyer.com/articles/photography/lightroom-keyword-hierarchy/),
[**FastPictureViewer**](https://www.fastpictureviewer.com),
[**Photo Mechanic**](https://www.photometadata.org/META-Tutorials-Photo-Mechanic-Applying-Keywords),
[**digiKam**](https://www.digikam.org), and
[**XnViewMP**](https://www.xnview.com/en/xnviewmp).

This basically gives you a taxonomic tree for browsing and filtering your photos.

Example in XnView

![screenshot](assets/screenshots/xnview.png)

### Photo hosting
Naturtag can also simplify tagging photos for photo hosting sites like Flickr. For that use case, this
tool generates semi-structured keywords in the same format as
[iNaturalist's Flickr Tagger](https://www.inaturalist.org/taxa/flickr_tagger).

Example search using these tags: https://www.flickr.com/photos/tags/taxonomy:class=arachnida

Example of taxonomy tags on Flickr

![screenshot](assets/screenshots/flickr.png)

### Other biodiversity tools
Finally, naturtag can improve interoperability with other tools and systems that interact with biodiversity
data. For example, in addition to iNaturalist you might submit some observations to another
platform with a more specific focus, such as **eBird**, **BugGuide**, or **Mushroom Observer**.
For that use case, this tool supports [Simple Darwin Core](https://dwc.tdwg.org/simple).

## Installation
See [GitHub Releases](https://github.com/pyinat/naturtag/releases) for downloads and
[Installation](https://naturtag.readthedocs.io/en/stable/installation.html)
for platform-specific instructions.

To just install naturtag as a python package, run:
```bash
pip install naturtag
```

## Usage

### GUI
The main interface for this project is still a work in progress.

It includes an interface for selecting and tagging images:

![Screenshot](assets/screenshots/image-selector.png)

And tools to search and browse species to tag your images with:

![Screenshot](assets/screenshots/taxon-search.png)

See [Application Guide](https://naturtag.readthedocs.io/en/stable/app.html) for more details.

### CLI
Naturtag also includes a command-line interface. It takes an observation or species, plus some image
files, and generates EXIF and XMP metadata to write to those images. You can see it in action here:
[![asciicast](https://asciinema.org/a/0a6gzpt7AI9QpGoq0OGMDOxqi.svg)](https://asciinema.org/a/0a6gzpt7AI9QpGoq0OGMDOxqi)

See [CLI documentation](https://naturtag.readthedocs.io/en/stable/cli.html) for more details.

### Library
You can also import `naturtag` as a python library, and use its main features in your own scripts or
applications. Basic example:
```python
from naturtag import tag_images, refresh_tags

# Tag images with full observation metadata
tag_images(['img1.jpg', 'img2.jpg'], observation_id=1234)

# Refresh previously tagged images with latest observation and taxonomy metadata
refresh_tags(['~/observations/'], recursive=True)
```

See [API Reference](https://naturtag.readthedocs.io/en/stable/reference.html) for more details.

## Development Status
* See [Issues](https://github.com/pyinat/naturtag/issues) for planned features and current progress.
* If you have any problems, suggestions, or questions about naturtag, you can:
* [Create an issue](https://github.com/pyinat/naturtag/issues/new/choose)
* [Create a discussion](https://github.com/orgs/pyinat/discussions)
* Ping me (**@jcook**) on the [iNaturalist Community Forum](https://forum.inaturalist.org/c/general/14).
* When I'm not working on this, I'm often working on other libraries that naturtag benefits from, including
[pyinaturalist](https://pyinaturalist.readthedocs.io),
[pyinaturalist-convert](https://github.com/pyinat/pyinaturalist-convert), and
[requests-cache](https://requests-cache.readthedocs.io).


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 2 days ago

Total Commits: 553
Total Committers: 4
Avg Commits per committer: 138.25
Development Distribution Score (DDS): 0.016

Commits in past year: 53
Committers in past year: 3
Avg Commits per committer in past year: 17.667
Development Distribution Score (DDS) in past year: 0.038

Name Email Commits
Jordan Cook j****k@p****m 544
Jordan Cook J****k@p****m 4
dependabot[bot] 4****] 4
Kian-Meng Ang k****g@c****g 1

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 82
Total pull requests: 87
Average time to close issues: 5 months
Average time to close pull requests: 16 days
Total issue authors: 5
Total pull request authors: 3
Average comments per issue: 0.3
Average comments per pull request: 0.56
Merged pull request: 38
Bot issues: 0
Bot pull requests: 68

Past year issues: 6
Past year pull requests: 52
Past year average time to close issues: 22 minutes
Past year average time to close pull requests: 14 days
Past year issue authors: 2
Past year pull request authors: 3
Past year average comments per issue: 0.17
Past year average comments per pull request: 0.52
Past year merged pull request: 24
Past year bot issues: 0
Past year bot pull requests: 42

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/pyinat/naturtag

Top Issue Authors

  • JWCook (78)
  • andrew-taylor (1)
  • arky (1)
  • maxogden (1)
  • mihow (1)

Top Pull Request Authors

  • dependabot[bot] (68)
  • JWCook (17)
  • kianmeng (2)

Top Issue Labels

  • ui (39)
  • data (23)
  • performance (11)
  • cli (10)
  • idea (7)
  • bug (6)
  • logistics (5)
  • docs (1)
  • question (1)
  • enhancement (1)

Top Pull Request Labels

  • dependencies (52)
  • python (45)
  • github_actions (7)
  • ui (6)
  • data (5)
  • bug (4)
  • logistics (4)
  • enhancement (3)
  • performance (2)
  • cli (1)

Dependencies

.github/workflows/deploy.yml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • actions/download-artifact v3 composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v3 composite
  • snok/install-poetry v1.3.3 composite
  • softprops/action-gh-release v1 composite
.github/workflows/test.yml actions
  • actions/cache v3 composite
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • pre-commit/action v3.0.0 composite
  • snok/install-poetry v1.3.3 composite
poetry.lock pypi
  • 113 dependencies
pyproject.toml pypi
  • babel >=2.0 develop
  • coverage ^7.0 develop
  • nox ^2023.4 develop
  • nox-poetry ^1.0 develop
  • pre-commit ^3.1 develop
  • prettyprinter ^0.18.0 develop
  • pyinstaller ^5.12 develop
  • pytest ^7.3 develop
  • pytest-cov >=3.0 develop
  • pytest-xdist >=2.2 develop
  • attrs >=21.2
  • click >=8.0
  • click-help-colors >=0.9
  • furo ^2023.3
  • linkify-it-py ^2.0
  • myst-parser ^1.0
  • pillow >=10.0
  • pyexiv2 >=2.6.2
  • pyinaturalist >=0.18
  • pyinaturalist-convert >=0.6.1
  • pyqtdarktheme ^2.1.0
  • pyside6 6.5.0
  • python >=3.10,<3.11
  • pyyaml >=6.0
  • qtawesome ^1.1.1
  • sphinx ^5.2
  • sphinx-autodoc-typehints ^1.17
  • sphinx-copybutton >=0.5
  • sphinx-design >=0.2
  • sphinxcontrib-apidoc ^0.3
  • sqlalchemy ^2.0.8
  • tablib ^3.0

Score: 5.961005339623274