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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyinaturalist-convert-0.0.1.tar.gz
  • Upload date:
  • Size: 183.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.4.0-1047-azure

File hashes

Hashes for pyinaturalist-convert-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a58feea063548ab44b7cd713502d7912472b6c56439dbfed6a0fe4c181265ff2
MD5 87a5c04735b8c1c3c16ace8927ec1ead
BLAKE2b-256 761acee35842ad6048e399299d20a3eb32d8c02218b53befb1b5315a41aaeb6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyinaturalist_convert-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 07b2b99e29345c8066576ae8f65ff70b69c0cf91d027571abe16f2ef45d53811
MD5 bcd1ab8c940acdc57f86d93fdb5ab8c9
BLAKE2b-256 bc3a2a55e3aee5a15f867ca91af39e92a5e93e495aef983d122f91806e5a3757

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