budosystems.models.people.Person

class Person

Bases: Contactable

An individual person.

This Entity stores information about the person’s name, contact information.

title: th.OptStr
first_name: th.OptStr
middle_name: th.OptStr
last_name: th.OptStr
suffix: th.OptStr
date_of_birth: th.OptDate
gender: th.Optional[Gender]
start_date: th.Optional[date]
property age_delta: timedelta | None

Calculates the age as a datetime.timedelta

Returns:

The age as a

property age_years: int | None

Calculates the age in years and returns the result. :return: The age in years of the person, or None if there’s no date of birth.

property name_fields: List[str]
Returns:

List of fields used to compose the name.

property names_list: list[str]
Returns:

List of name components.

property ranks: list[Rank]
Returns:

The rank history of this student.

__init__(*, id_name: str = _Nothing.NOTHING, entity_id: UUID = <singleton MissingUUID>, phone_numbers: ContactList[PhoneNumber] = _Nothing.NOTHING, email_addresses: ContactList[EmailAddress] = _Nothing.NOTHING, physical_addresses: ContactList[PhysicalAddress] = _Nothing.NOTHING, title: th.OptStr, first_name: th.OptStr, middle_name: th.OptStr, last_name: th.OptStr, suffix: th.OptStr, date_of_birth: th.OptDate, gender: th.Optional[Gender], start_date: th.Optional[date]) None

Method generated by attrs for class Person.