ConservationStatus#
- class pyinaturalist.models.ConservationStatus(id=None, authority=None, created_at=None, description=None, geoprivacy=None, iucn=None, source_id=None, status=None, status_name=None, taxon_id=None, updated_at=None, url=None, place=None, updater=None, user=None)#
Bases:
pyinaturalist.models.taxon_meta.IdWrapperMixin
,pyinaturalist.models.base.BaseModel
The conservation status of a taxon in a given location, based on the schema of:
Taxon.conservation_status
from GET /taxaObservation.taxon.conservation_statuses
from GET /observationsconservation_status
from GET /observation/{id}/taxon_summary
Attributes
Name
Type
Description
id
Unique record ID
authority
Data source for conservation status
created_at
Date and time the record was created
description
Description of conservation status
geoprivacy
Default geoprivacy level; may be obscured or private for protected species
iucn
IUCD ID, if applicable
source_id
status
Short code for conservation status
Options:
LC
,NT
,VU
,EN
,CR
,EW
,EX
,S2B
status_name
Full name of conservation status
taxon_id
Taxon ID
updated_at
Date and time the record was last updated
url
Link to data source with more details
place (
LazyProperty
)Location that the conservation status applies to
updater (
LazyProperty
)User that last updated the record
user (
LazyProperty
)User that created the record
Methods
- __init__(id=None, authority=None, created_at=None, description=None, geoprivacy=None, iucn=None, source_id=None, status=None, status_name=None, taxon_id=None, updated_at=None, url=None, place=None, updater=None, user=None)#
Method generated by attrs for class ConservationStatus.
- classmethod copy(obj)#
Copy a model object. This is defined as a classmethod to easily initialize a subclass from a parent class instance. For copying an instance to the same type,
copy.deepcopy()
can be used.- Return type
- 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).
- classmethod from_json_file(value)#
Initialize a collection of model objects from a JSON string, file path, or file-like object
- classmethod from_json_list(value)#
Initialize a collection of model objects from an API response or response results