IconPhoto¶
- class pyinaturalist.models.IconPhoto(id, uuid, attribution, attribution_name, hidden, license_code, ...) None¶
Bases:
PhotoClass used for displaying an iconic taxon in place of a taxon photo
Attributes
Methods
- __init__(id, uuid, attribution, attribution_name, hidden, license_code, ...) None¶
Method generated by attrs for class IconPhoto.
- classmethod copy(obj) BaseModel¶
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_iconic_taxon(iconic_taxon_name)¶
- classmethod from_json(value, **kwargs) Photo¶
Flatten out potentially nested photo field before initializing
- Return type:
- classmethod from_json_file(value) list[T]¶
Initialize a collection of model objects from a JSON string, file path, or file-like object
- classmethod from_json_list(value, **kwargs) list[T]¶
Initialize a collection of model objects from an API response or response results
- show(size)¶
Display the image inline in Jupyter notebooks, or with the system’s default image viewer.
Requires
ipythonin Jupyter environments, orpillowelsewhere.