Convert iNaturalist observation data to and from multiple formats
Project description
pyinaturalist-convert
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:
- CSV (From either API results or the iNaturalist export tool)
- JSON (from API results, either via
pyinaturalist
,requests
, or another HTTP client) pyinaturalist.Observation
objects- Parquet
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
- Convert to an HTML report
- Convert to print-friendly format
- Convert to Simple Darwin Core
- Export to any SQLAlchemy-compatible database engine
- Import and convert metadata and images from iNaturalist open data on Amazon
- See also pyinaturalist-open-data, which may eventually be merged with this package
- Import and convert observation data from the iNaturalist GBIF Archive
- Import and convert taxonomy data from the iNaturalist Taxonomy Archive
- Note: see API Recommended Practices for details on which data sources are best suited to different use cases
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyinaturalist-convert-0.2.0.tar.gz
.
File metadata
- Download URL: pyinaturalist-convert-0.2.0.tar.gz
- Upload date:
- Size: 264.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0a2 CPython/3.9.6 Linux/5.4.0-1056-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c02565c8100d9bc05b63872858ec7c13f88f441c3d64c702e29e6991efc3cbd |
|
MD5 | 2b786db505375afe589566aefc377f6f |
|
BLAKE2b-256 | af1a26cccdc987c090df5fa029e2a2854c97f857bbacf4900d669c6824dab991 |
File details
Details for the file pyinaturalist_convert-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: pyinaturalist_convert-0.2.0-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0a2 CPython/3.9.6 Linux/5.4.0-1056-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97f1cc13880f86696e0d3487ed5c5e50fae73ecdc06b03e3260c2c949cd3caa5 |
|
MD5 | e9c7f08111620f3ac77d1fa434e6b09e |
|
BLAKE2b-256 | fb513211111cc3f0c348a638eee8a412a4eaf3883b4aa59ca898dbc811bb67a2 |