Global Names Resolver

gn.datasources()

Get data sources for the Global Names Resolver.

Retrieve data sources used in Global Names Index, see
http://gni.globalnames.org/ for information.

Usage:

# all data sources
from pytaxize import gn
gn.gnr.datasources()
gn.resolve(source=None, format='json', resolve_once='false', with_context='false', best_match_only='false', header_only='false', preferred_data_sources='false', http='get')

Uses the Global Names Resolver to resolve scientific names

Parameters:
  • names – List of taxonomic names
  • source – Source to pull from, one of x, y, z
  • format – One of json or xml
  • resolve_once – Logical, true or false
  • with_context – Return context with taxonomic names
  • best_match_only – Logical, if true (default) return the best match only
  • header_only – Return header only, logical
  • preferred_data_sources – Return only preferred data sources.
  • http – The HTTP method to use, one of “get” or “post”. Default=”get”

Usage:

from pytaxize import gn
gn.resolve('Helianthus annus')
gn.resolve(['Helianthus annus','Poa annua'])

Global Names Index

gn.parse()

Uses the Global Names Index to parse scientific names

Parameters:names – List of scientific names.

Usage:

from pytaxize import gn
gn.gni.parse(names = ['Cyanistes caeruleus','Helianthus annuus'])
gn.search(per_page=30, page=1)

Search for names against the Global names index

Parameters:
  • search_term – Search term
  • per_page – Items to return per page
  • page – Page to return

Usage:

from pytaxize import gn
gn.gni.search(search_term = 'ani*')
gn.details(all_records=1)

Usage:

from pytaxize import gn
gn.gni.details(id = 17802847)