Identification

class pyinaturalist.models.Identification(id=None, body=None, category=None, created_at=NOTHING, current=None, current_taxon=None, disagreement=None, hidden=None, own_observation=None, previous_observation_taxon_id=None, taxon_change=None, taxon_id=None, uuid=None, vision=None, taxon=None, user=None)

Bases: pyinaturalist.models.base.BaseModel

An observation identification, based on the schema of GET /identifications.

Attributes

Name

Type

Description

id

int

Unique record ID

body

str

Comment text

category

str

Identification category

Options: improving, supporting, leading, maverick

created_at

datetime

Date and time the identification was added

current

bool

Indicates if the identification is the currently accepted one

current_taxon

bool

disagreement

bool

Indicates if this identification disagrees with previous ones

hidden

bool

own_observation

bool

Indicates if the indentifier is also the observer

previous_observation_taxon_id

int

Previous observation taxon ID

taxon_change

bool

taxon_id

int

Identification taxon ID

uuid

str

Universally unique identifier

vision

bool

Indicates if the taxon was selected from computer vision results

taxon (LazyProperty)

Taxon

Identification taxon

user (LazyProperty)

User

User that added the indentification

Methods

__init__(id=None, body=None, category=None, created_at=NOTHING, current=None, current_taxon=None, disagreement=None, hidden=None, own_observation=None, previous_observation_taxon_id=None, taxon_change=None, taxon_id=None, uuid=None, vision=None, taxon=None, user=None)

Method generated by attrs for class Identification.

classmethod from_json(value, **kwargs)

Initialize a single model object from an API response or response result.

Omits any invalid fields and None values, so default factories are used instead (e.g. for empty dicts and lists).

Return type

TypeVar(T, bound= BaseModel)

classmethod from_json_file(value)

Initialize a collection of model objects from a JSON string, file path, or file-like object

Return type

List[TypeVar(T, bound= BaseModel)]

classmethod from_json_list(value)

Initialize a collection of model objects from an API response or response results

Return type

List[TypeVar(T, bound= BaseModel)]

to_json()

Convert this object back to JSON (dict) format

Return type

Dict[str, Any]