iNat Taxonomy for python and polars
Utilities for accessing the iNaturalist taxonomy via polars dataframes
Install:
pip install git+https://github.com/sammlapp/inat_taxonomy.git
Usage:
import inat_taxonomy as tax
# common names in any supported language
# (takes first match for each entry)
spanish_names = tax.vernacular_names(['Setophaga fusca','Homo sapiens'],'spanish')
# access the full polars df
tax.TAXONOMY
# check available languages
tax.list_lexicons()
# join taxonomy table with vernacular names
# note that this will create duplicate rows
# since some taxa have multiple vernacular name entries
tax_chinese = tax.add_vernacular_names('chinese-simplified')
# add another language to this same dataframe
table_with_2languages =tax.add_vernacular_names('czech',tax_chinese)
# look up higher taxonomic levels
family = tax.sp_to_level(['Setophaga fusca','Homo sapiens'], 'family')
# get scientific and common names of bird species
import polars as pl
bird_names = tax.add_vernacular_names('english').filter(pl.col('class').eq('Aves'),pl.col('taxonRank').eq('species')).select(['scientificName','vernacularName_english'])
Metadata
Release files for inat-taxonomy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| inat_taxonomy-0.1.0.tar.gz | 26.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| inat_taxonomy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.7 MB
Release files / inat_taxonomy-0.1.0.tar.gz
| Download URL | inat_taxonomy-0.1.0.tar.gz |
|---|---|
| Size | 26.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae76dd83ef0fbe9b05436d79063bf90b772791fd195e4eae2c0e5979c4231ca8
|
|
BLAKE2b-256 checksum How to use checksums |
5873ebd71f0a2132a7a340c5b6ccf8d87f5877a49389d6a04231cd2fb92e23df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Release files / inat_taxonomy-0.1.0-py3-none-any.whl
| Download URL | inat_taxonomy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 26.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aac388a6eee5d3fb082187054f83ddc19e9785471753849733605e1fd165fdc9
|
|
BLAKE2b-256 checksum How to use checksums |
bd3e13cae9304eb12d23dae6109b90ba32168edd227e2297536da12bfc49b012
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|