""" ScoreInfo class to expose computed score info from the library """fromdataclassesimportasdict,dataclassfrom._constantsimport_PHOTOS_4_VERSION__all__=["ScoreInfo"]
[docs]@dataclass(frozen=True)classScoreInfo:"""Computed photo score info associated with a photo from the Photos library"""overall:floatcuration:floatpromotion:floathighlight_visibility:floatbehavioral:floatfailure:floatharmonious_color:floatimmersiveness:floatinteraction:floatinteresting_subject:floatintrusive_object_presence:floatlively_color:floatlow_light:floatnoise:floatpleasant_camera_tilt:floatpleasant_composition:floatpleasant_lighting:floatpleasant_pattern:floatpleasant_perspective:floatpleasant_post_processing:floatpleasant_reflection:floatpleasant_symmetry:floatsharply_focused_subject:floattastefully_blurred:floatwell_chosen_subject:floatwell_framed_subject:floatwell_timed_shot:float
[docs]defasdict(self):"""Return ScoreInfo as a dict"""returnasdict(self)