GedcomSubElement¶
- class src.pygedcom.elements.subElements.commonEvent.GedcomCommonEvent(level: int, tag: str, sub_elements: list, value: str | None = None)¶
Bases:
GedcomElement
Common event class. It can be a birth, death, marriage, etc… Every even with a date and a place.
- Parameters:
level (int) – The level of the common event.
tag (str) – The tag of the common event.
sub_elements (list) – The sub elements of the common event.
value (str, optional) – The value of the common event, defaults to None
- Returns:
The common event.
- Return type:
- classmethod empty()¶
Return an empty common event.
- Returns:
An empty common event.
- Return type:
- get_date() GedcomDate ¶
Get the date of the common event.
- Returns:
The date of the common event.
- Return type:
- get_media() list ¶
Get the media of the common event.
- Returns:
The media of the common event.
- Return type:
list
- get_place() GedcomPlace ¶
Get the place of the common event.
- Returns:
The place of the common event.
- Return type:
- init_properties()¶
Initialize the properties of the common event.
- class src.pygedcom.elements.subElements.date.GedcomDate(level: int, tag: str, sub_elements: list, value: str | None = None)¶
Bases:
GedcomElement
The Gedcom date element.
- Parameters:
level (int) – The level of the Gedcom date element.
tag (str) – The tag of the Gedcom date element.
sub_elements (list) – The sub elements of the Gedcom date element.
value (str, optional) – The value of the Gedcom date element, defaults to None
- Returns:
The Gedcom date element.
- Return type:
- classmethod empty()¶
Return an empty Gedcom date element.
- Returns:
An empty Gedcom date element.
- Return type:
- init_properties()¶
Initialize the properties of the Gedcom date element.
- class src.pygedcom.elements.subElements.place.GedcomPlace(level: int, tag: str, sub_elements: list, value: str | None = None)¶
Bases:
GedcomElement
Class representing a place element.
- Parameters:
level (int) – The level of the place.
tag (str) – The tag of the place.
sub_elements (list) – The sub elements of the place.
value (str, optional) – The value of the place, defaults to None
- Returns:
The place.
- Return type:
- classmethod empty()¶
Return an empty place.
- Returns:
An empty place.
- Return type:
- get_export_map() GedcomMap ¶
Return the map of the place.
- Returns:
The map of the place.
- Return type:
- get_export_place_infos() list ¶
Return the place infos.
- Returns:
The place infos.
- Return type:
list
- init_properties()¶
Initialize the properties of the place. Which are location and map.
- class src.pygedcom.elements.subElements.map.GedcomMap(level: int, tag: str, sub_elements: list, value: str | None = None)¶
Bases:
GedcomElement
Class representing a Gedcom map element.
- Parameters:
level (int) – The level of the Gedcom map element.
tag (str) – The tag of the Gedcom map element.
sub_elements (list) – The sub elements of the Gedcom map element.
value (str, optional) – The value of the Gedcom map element, defaults to None
- Returns:
The Gedcom map element.
- Return type:
- classmethod empty()¶
Return an empty Gedcom map element.
- Returns:
An empty Gedcom map element.
- Return type:
- get_latitude() str ¶
Get the latitude of the Gedcom map element.
- Returns:
The latitude of the Gedcom map element.
- Return type:
str
- get_longitude() str ¶
Get the longitude of the Gedcom map element.
- Returns:
The longitude of the Gedcom map element.
- Return type:
str
- init_properties()¶
Initialize the properties of the Gedcom map element.