pyinat / naturtag

Tag your nature photos with iNat taxonomy and observation metadata
https://naturtag.readthedocs.io
MIT License
37 stars 4 forks source link

Add option to download taxon data from GitHub if missing #265

Closed JWCook closed 1 year ago

JWCook commented 1 year ago

Taxonomy data is included with PyInstaller packages and platform-specific installers, but not with the plain python package on PyPI (to keep package size small). This adds an option to download the missing data:

from naturtag.settings import setup

setup(overwrite=True, download=True)

I may later include this as an option in the CLI and GUI, but need to think about it some more. In particular, whether having the option to download and extract something is a potential security risk. Basically the process is:

No scripts or other executable files are downloaded.