ConservationStatus¶
- class pyinaturalist.models.ConservationStatus(status_name=None, place_id=None, updater_id=None, user_id=None, **kwargs)¶
Bases:
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
uuid
Unversally 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
IUCN ID, if applicable
source_id
status
Short code for conservation status
taxon_id
Taxon ID
updated_at
Date and time the record was last updated
url
Link to data source with more details
status_name (
property
)Full name of conservation status.
display_name (
property
)Get conservation status name, code, and place in a format like:
place_id (
property
)updater_id (
property
)user_id (
property
)place_name (
property
)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__(status_name=None, place_id=None, updater_id=None, user_id=None, **kwargs)¶
Method generated by attrs for class BaseModel.
- 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).- 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
- classmethod from_json_list(value, **kwargs)¶
Initialize a collection of model objects from an API response or response results