sckott / pytaxize

python port of taxize (taxonomy toolbelt) for R
https://sckott.github.io/pytaxize/
MIT License
34 stars 13 forks source link

Gbif ids #60

Closed Daniel-Davies closed 4 years ago

Daniel-Davies commented 4 years ago

Description

I have added the ability to query GBIF for Ids. The code follows the same style as the previous entries for NCBI and ITIS. The API used to query GBIF for this information can be found here: https://www.gbif.org/developer/species. The user must provide a list of species name (or single name) and a rank.

Related Issue

54

Example

x = Ids("panthera tigris") x.gbif() x.extract_ids() => {'panthera tigris':[100388673,...]}

Tests

Passing

sckott commented 4 years ago

Dont worry about the failing test, i'll fix that after merging.

I was thinking we'd actually use pygbif here instead of re-implementing - e.g, this method https://pygbif.readthedocs.io/en/latest/modules/species.html#pygbif.species.name_usage i think is the one you are using - Thoughts?

sckott commented 4 years ago

thanks