osmose.fishbase

FishBase/SeaLifeBase trait bootstrap client.

Downloads the rfishbase-5 parquet-snapshot tables from Source Cooperative (valid TLS, HTTP range) and queries them locally. Data is CC-BY-NC (Carl Boettiger / FishBase.org); fetched at runtime (not redistributed).

Functions

fetch_traits(spec_code, db)

Aggregate each mapped trait to median/n/min-max for a species.

resolve_species(name, *[, db])

Resolve a scientific or common name to candidate SpecMatch(es).

Classes

SpecMatch(spec_code, scientific_name, ...)

TraitEstimate(value, n, min, max, unit)

Exceptions

FishBaseError

Base for FishBase client errors.

FishBaseNoMatch

A name resolved to no record in either database.

FishBaseUnavailable

Network / HTTP / parse failure reaching the data source.