Convert iNaturalist observation data to and from multiple formats
Project description
pyinaturalist-convert
This is an incomplete 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 (Currently from API results only, but see planned features below)
- JSON (either from a
requests.Response
orpyinaturalist
results) - parquet
Export formats currently supported:
- CSV
- Excel (xlsx)
- GPX (experimental)
- HDF5
- Feather
- Parquet
- pandas DataFrame
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
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 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 observation data from the iNaturalist export tool and convert it to be compatible with observation data from the iNaturalist API
- 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 observation data from theiNaturalist 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.1.0.tar.gz
.
File metadata
- Download URL: pyinaturalist-convert-0.1.0.tar.gz
- Upload date:
- Size: 249.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.4.0-1051-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6338f2cdbe6d68deda3bc663c3e995b37b9d334f1924451a0763d1cf58eb295 |
|
MD5 | 68e0584455d7fc73dac3a9f719e2cae3 |
|
BLAKE2b-256 | 9039c7247d3cd3dd96fa4986e6f240bc45c02a0eef2510503656f73a269672de |
File details
Details for the file pyinaturalist_convert-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pyinaturalist_convert-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.4.0-1051-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd717311364635d4409282176903a8507c10722b867d48ea37dc865d391703e6 |
|
MD5 | beee936ff556f1c25317fd859dcddb6e |
|
BLAKE2b-256 | 16a665b75f509f2838dce864ea1a8627b0064424a47123aaeaae25b1f498273b |