Skip to main content

Convert iNaturalist observation data to and from multiple formats

Project description

pyinaturalist-convert

Build status PyPI Conda PyPI - Python Versions

Work in progress!

This package provides tools to convert iNaturalist observation data to and from multiple formats. This is mainly intended for use with data from the iNaturalist API (via pyinaturalist), but also works with other iNaturalist data sources.

Formats

Import formats currently supported:

Export formats currently supported:

  • CSV, Excel, and anything else supported by tablib
  • Feather, Parquet, and anything else supported by pandas
  • GeoJSON and GPX

Installation

Install with pip:

pip install pyinaturalist-convert

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 pyinaturalist-convert[all]

Usage

Get your own observations and save to CSV:

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 and 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.2.1.tar.gz (265.4 kB view details)

Uploaded Source

Built Distribution

pyinaturalist_convert-0.2.1-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file pyinaturalist-convert-0.2.1.tar.gz.

File metadata

  • Download URL: pyinaturalist-convert-0.2.1.tar.gz
  • Upload date:
  • Size: 265.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0a2 CPython/3.9.7 Linux/5.4.0-1061-azure

File hashes

Hashes for pyinaturalist-convert-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d64a224cd9a7158b9156dc2a22592cd69e587b4b43fec41a1955055c03742dcd
MD5 6fa52955f47fc8a14cae7608e3b6f999
BLAKE2b-256 09c661a76a33e3f577efeec974c9d16a05e55fc7f41c7f3505306ba686f44f3f

See more details on using hashes here.

File details

Details for the file pyinaturalist_convert-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyinaturalist_convert-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99748a3d2c45f24e66db108e83007eb4034d810dd22184566e89837ef0aaeeb4
MD5 5d9c3162c569de88ab26c8f0b98cda37
BLAKE2b-256 69e2b8bbb3d846ae61915ca61a0ab70248c63f63802986dbb060667c56167169

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