absfuyu.general.human module

Absfuyu: Human

Human related stuff

Version: 5.1.0 Date updated: 10/03/2025 (dd/mm/yyyy)

class absfuyu.general.human.Human(first_name: str, last_name: str | None = None, birthday: str | datetime | None = None, birth_time: str | None = None, gender: bool | None = None, height: int | float | None = None, weight: int | float | None = None, blood_type: BloodType = BloodType.OTHER)[source]

Bases: BaseClass

Basic human data

classmethod JohnDoe() Self[source]

Dummy Human for test

Returns:

Dummy Human instance

Return type:

Human

property is_male: bool

Check if male (biological)

Returns:

  • True: Male

  • False: Female

Return type:

bool

property age: float

Calculate age based on birthday, precise to birth_time

Returns:

Age

Return type:

float

property is_adult: bool

Check if self.age >= 18

Returns:

If is adult

Return type:

bool

property bmi: float

Body Mass Index (kg/m^2)

Formula: \(\frac{weight (kg)}{height (m)^2}\)

  • BMI < 18.5: Skinny

  • 18.5 < BMI < 25: Normal

  • BMI > 30: Obesse

Returns:

BMI value

Return type:

float

update(data: dict) None[source]

Update Human data

Parameters:

data (dict) – Data

Return type:

None

class absfuyu.general.human.Person(first_name, last_name=None, birthday=None, birth_time=None, gender=None, height=None, weight=None, blood_type=BloodType.OTHER)[source]

Bases: Human

More detailed Human data

property zodiac_sign: str

Zodiac sign of Person

Returns:

Zodiac sign

Return type:

str

property zodiac_sign_13: str

Zodiac sign of Person (13 zodiac signs version)

Returns:

Zodiac sign

Return type:

str

property numerology: int

Numerology number of Person

Returns:

Numerology number

Return type:

int