Skip to main content

Pyinaturalist extensions to convert iNaturalist observation data to and from multiple formats

Project description

pyinaturalist-convert

This is an incomplete work in progress!

Pyinaturalist extensions to convert iNaturalist observation data to and from multiple formats.

Formats

Import formats currently supported:

  • CSV (Currently from API results only, but see planned features below)
  • JSON (either from a requests.Response or pyinaturalist results)
  • parquet

Export formats currently supported:

  • CSV
  • Excel (xlsx)
  • GPX (experimental)
  • parquet
  • pandas DataFrame

Installation

Note: PyPI release coming soon.

pip install git+https://github.com/JWCook/pyinaturalist-convert.git

To keep things modular, many format-specific dependencies are not installed by default, so you may need to install some more packages depending on which formats you want. See pyproject.toml for the full list (TODO: docs on optional dependencies).

To install all of the things:

pip install git+https://github.com/JWCook/pyinaturalist-convert.git#egg=pyinaturalist-convert[all]

Usage

Basic usage example:

from pyinaturalist import get_observations
from pyinaturalist_convert import to_csv

observations = get_observations(user_id='my_username')
to_csv(observations, 'my_observations.csv')

Planned/possible features

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

pyinaturalist-convert-0.0.1.tar.gz (183.8 kB view hashes)

Uploaded Source

Built Distribution

pyinaturalist_convert-0.0.1-py3-none-any.whl (9.7 kB view hashes)

Uploaded Python 3

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