Skip to main content

A CLI tool to add iNaturalist taxonomy metadata to local observation photos

Project description

Naturtag

Build status Documentation Status GitHub issues PyPI PyPI - Python Version


Contents

Summary

Naturtag is a tool for tagging image files with iNaturalist taxonomy & observation metadata. This includes a basic command-line interface, a work-in-progress desktop application, and can also be used as a python library.

Use Cases

Naturtag takes useful information from your own iNaturalist observations and embeds it in your local photo collection, mainly using XMP and EXIF metadata. This has a variety of uses, including:

Local photo organization

If you like the way you can search and filter your observations on iNaturalist.org and its mobile apps, and you wish you could do that with your local photos, naturtag can help. It can tag your photos with hierarchical keywords, which can then be used in a photo viewer or DAM such as Lightroom, FastPictureViewer, or XnViewMP.

This essentially gives you a phylogenetic tree for browsing and filtering your photos. Example in XnView:

screenshot

Photo hosting

Naturtag can also simplify tagging photos for photo hosting sites like Flickr. For that use case, this tool generates structured keywords in the same format as iNaturalist's Flickr Tagger.

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

Example of taxonomy tags on a Flickr photo page:

screenshot

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.

Installation

See GitHub Releases for downloads and Installation for platform-specific instructions.

To just install naturtag as a python package, run:

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

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

Screenshot

See Application Guide 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

See CLI documentation 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:

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 for more details.

Development Status

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

naturtag-0.7.0.tar.gz (15.8 MB view details)

Uploaded Source

Built Distribution

naturtag-0.7.0-py3-none-any.whl (67.4 kB view details)

Uploaded Python 3

File details

Details for the file naturtag-0.7.0.tar.gz.

File metadata

  • Download URL: naturtag-0.7.0.tar.gz
  • Upload date:
  • Size: 15.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b1 CPython/3.10.5 Linux/5.13.0-1031-azure

File hashes

Hashes for naturtag-0.7.0.tar.gz
Algorithm Hash digest
SHA256 9448e33aa1c32cac6c1f942b7db8ff26c968598f0955839440af416777c08d21
MD5 7f87320343675067f334bbc5f83a75f5
BLAKE2b-256 41c7e5940be155c5c4747bc9a0e6176dc4e6aef0f9685221056fe7a8077eca91

See more details on using hashes here.

File details

Details for the file naturtag-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: naturtag-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 67.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0b1 CPython/3.10.5 Linux/5.13.0-1031-azure

File hashes

Hashes for naturtag-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 542347f2793208ecd6f17001041e7896d9d0d2664a383cf140c40edd068883c7
MD5 1f2fc879d69197469c1aade8b54747b3
BLAKE2b-256 872725b466976849c426c57722e1e9357aa08dc71b39d0ceaebccd36af8d30d4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page