naturtag


Namenaturtag JSON
Version 0.8.0 PyPI version JSON
download
home_pagehttps://github.com/pyinat/naturtag
SummaryTag your nature photos with iNat taxonomy and observation metadata
upload_time2024-10-10 18:47:14
maintainerNone
docs_urlNone
authorJordan Cook
requires_python<3.13,>=3.10
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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)


<!-- RTD-IGNORE -->
<br />

[![](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)
<!-- END-RTD-IGNORE -->

## 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.

<details>
<summary><b>Example in XnView</b></summary>

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

### 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

<details>
<summary><b>Example of taxonomy tags on Flickr</b></summary>

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

### 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
Naturtag is primarily a desktop application. 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.

Example:
```bash
# Tag images with metadata from observation ID 5432
nt tag -o 5432 img1.jpg img2.jpg

# Refresh previously tagged images with latest observation and taxonomy metadata
nt refresh -r ~/observations
```
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=5432)

# 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).


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pyinat/naturtag",
    "name": "naturtag",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.13,>=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "Jordan Cook",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/6d/7e/e8e9068baa3f6f5e8579d5070581f9e8b1fce6e2d3304ef705a9aac8607b/naturtag-0.8.0.tar.gz",
    "platform": null,
    "description": "# Naturtag\n\n[![Build status](https://github.com/pyinat/naturtag/workflows/Test/badge.svg?branch=main)](https://github.com/pyinat/naturtag/actions)\n[![Documentation Status](https://readthedocs.org/projects/naturtag/badge/?version=stable)](https://naturtag.readthedocs.io/en/stable/)\n[![GitHub issues](https://img.shields.io/github/issues/pyinat/naturtag)](https://github.com/pyinat/naturtag/issues)\n[![PyPI](https://img.shields.io/pypi/v/naturtag?color=blue)](https://pypi.org/project/naturtag)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/naturtag)](https://pypi.org/project/naturtag)\n\n\n<!-- RTD-IGNORE -->\n<br />\n\n[![](assets/icons/naturtag-gh-preview.png)](https://naturtag.readthedocs.io)\n\n## Contents\n- [Summary](#summary)\n- [Use Cases](#use-cases)\n- [Installation](#installation)\n- [Usage](#usage)\n  - [GUI](#gui)\n  - [CLI](#cli)\n  - [Library](#library)\n- [Development Status](#development-status)\n<!-- END-RTD-IGNORE -->\n\n## Summary\nNaturtag is a tool for nature photographers that adds useful metadata to describe the organisms in\nyour photos. It includes a **desktop application**, a **command-line interface**, and can also be\nused as a **python library**. It is mainly intended for use with [iNaturalist](https://www.inaturalist.org), but can also be used independently.\n\nNaturtag 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\n[XMP](https://en.wikipedia.org/wiki/Extensible_Metadata_Platform) and\n[EXIF](https://en.wikipedia.org/wiki/Exif) metadata.\n\n## Use Cases\nThis image metadata has a variety of uses, including:\n\n### Local photo organization\nNaturtag can tag your photos with **hierarchical keywords** (aka structured keywords), which\nare supported by some photo viewers/editors like\n[**Lightroom**](https://millennialdiyer.com/articles/photography/lightroom-keyword-hierarchy/),\n[**FastPictureViewer**](https://www.fastpictureviewer.com),\n[**Photo Mechanic**](https://www.photometadata.org/META-Tutorials-Photo-Mechanic-Applying-Keywords),\n[**digiKam**](https://www.digikam.org), and\n[**XnViewMP**](https://www.xnview.com/en/xnviewmp).\n\nThis basically gives you a taxonomic tree for browsing and filtering your photos.\n\n<details>\n<summary><b>Example in XnView</b></summary>\n\n![screenshot](assets/screenshots/xnview.png)\n</details>\n\n### Photo hosting\nNaturtag can also simplify tagging photos for photo hosting sites like Flickr. For that use case, this\ntool generates semi-structured keywords in the same format as\n[iNaturalist's Flickr Tagger](https://www.inaturalist.org/taxa/flickr_tagger).\n\nExample search using these tags: https://www.flickr.com/photos/tags/taxonomy:class=arachnida\n\n<details>\n<summary><b>Example of taxonomy tags on Flickr</b></summary>\n\n![screenshot](assets/screenshots/flickr.png)\n</details>\n\n### Other biodiversity tools\nFinally, naturtag can improve interoperability with other tools and systems that interact with biodiversity\ndata. For example, in addition to iNaturalist you might submit some observations to another\nplatform with a more specific focus, such as **eBird**, **BugGuide**, or **Mushroom Observer**.\nFor that use case, this tool supports [Simple Darwin Core](https://dwc.tdwg.org/simple).\n\n## Installation\nSee [GitHub Releases](https://github.com/pyinat/naturtag/releases) for downloads and\n[Installation](https://naturtag.readthedocs.io/en/stable/installation.html)\nfor platform-specific instructions.\n\nTo just install naturtag as a python package, run:\n```bash\npip install naturtag\n```\n\n## Usage\n\n### GUI\nNaturtag is primarily a desktop application. It includes an interface for selecting and tagging images:\n\n![Screenshot](assets/screenshots/image-selector.png)\n\nAnd tools to search and browse species to tag your images with:\n\n![Screenshot](assets/screenshots/taxon-search.png)\n\nSee [Application Guide](https://naturtag.readthedocs.io/en/stable/app.html) for more details.\n\n### CLI\nNaturtag also includes a command-line interface. It takes an observation or species, plus some image\nfiles, and generates EXIF and XMP metadata to write to those images.\n\nExample:\n```bash\n# Tag images with metadata from observation ID 5432\nnt tag -o 5432 img1.jpg img2.jpg\n\n# Refresh previously tagged images with latest observation and taxonomy metadata\nnt refresh -r ~/observations\n```\nYou can see it in action here:\n[![asciicast](https://asciinema.org/a/0a6gzpt7AI9QpGoq0OGMDOxqi.svg)](https://asciinema.org/a/0a6gzpt7AI9QpGoq0OGMDOxqi)\n\nSee [CLI documentation](https://naturtag.readthedocs.io/en/stable/cli.html) for more details.\n\n### Library\nYou can also import `naturtag` as a python library, and use its main features in your own scripts or\napplications. Basic example:\n```python\nfrom naturtag import tag_images, refresh_tags\n\n# Tag images with full observation metadata\ntag_images(['img1.jpg', 'img2.jpg'], observation_id=5432)\n\n# Refresh previously tagged images with latest observation and taxonomy metadata\nrefresh_tags(['~/observations/'], recursive=True)\n```\n\nSee [API Reference](https://naturtag.readthedocs.io/en/stable/reference.html) for more details.\n\n## Development Status\n* See [Issues](https://github.com/pyinat/naturtag/issues) for planned features and current progress.\n* If you have any problems, suggestions, or questions about naturtag, you can:\n  * [Create an issue](https://github.com/pyinat/naturtag/issues/new/choose)\n  * [Create a discussion](https://github.com/orgs/pyinat/discussions)\n  * Ping me (**@jcook**) on the [iNaturalist Community Forum](https://forum.inaturalist.org/c/general/14).\n* When I'm not working on this, I'm often working on other libraries that naturtag benefits from, including\n  [pyinaturalist](https://pyinaturalist.readthedocs.io),\n  [pyinaturalist-convert](https://github.com/pyinat/pyinaturalist-convert), and\n  [requests-cache](https://requests-cache.readthedocs.io).\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Tag your nature photos with iNat taxonomy and observation metadata",
    "version": "0.8.0",
    "project_urls": {
        "Documentation": "https://naturtag.readthedocs.io",
        "Homepage": "https://github.com/pyinat/naturtag",
        "Repository": "https://github.com/pyinat/naturtag"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c9063b664e684a815ae10f62520b301be0db31dca9d1d842479253e2fc92edf3",
                "md5": "cf7e4d2146b26ae8dd2cf4f2000ae888",
                "sha256": "007a0ad41ac4ddab5e596e95308ae6eed6bd1834cc27edca5f7f28d49eb46993"
            },
            "downloads": -1,
            "filename": "naturtag-0.8.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cf7e4d2146b26ae8dd2cf4f2000ae888",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.10",
            "size": 93491,
            "upload_time": "2024-10-10T18:47:12",
            "upload_time_iso_8601": "2024-10-10T18:47:12.852586Z",
            "url": "https://files.pythonhosted.org/packages/c9/06/3b664e684a815ae10f62520b301be0db31dca9d1d842479253e2fc92edf3/naturtag-0.8.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6d7ee8e9068baa3f6f5e8579d5070581f9e8b1fce6e2d3304ef705a9aac8607b",
                "md5": "21de3d5b0d34c87247a531ba69c732ad",
                "sha256": "585f2b879bdee8e91bd78b9a2ce32cb61b407ca1e94c770e1792476a9f22b3c1"
            },
            "downloads": -1,
            "filename": "naturtag-0.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "21de3d5b0d34c87247a531ba69c732ad",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.10",
            "size": 14409337,
            "upload_time": "2024-10-10T18:47:14",
            "upload_time_iso_8601": "2024-10-10T18:47:14.813796Z",
            "url": "https://files.pythonhosted.org/packages/6d/7e/e8e9068baa3f6f5e8579d5070581f9e8b1fce6e2d3304ef705a9aac8607b/naturtag-0.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-10 18:47:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pyinat",
    "github_project": "naturtag",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "naturtag"
}
        
Elapsed time: 1.42139s