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 | Provenance | Actions |
|---|---|---|---|---|
| inat_taxonomy-0.1.0.tar.gz | 26.3 MB | Without provenance | Details for inat_taxonomy-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| inat_taxonomy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for inat_taxonomy-0.1.0-py3-none-any.whl |
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
|
Security for inat-taxonomy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.