Module gedcom.element

Module containing all relevant elements generated by a Parser. An element represents a line within GEDCOM data.

Expand source code
# -*- coding: utf-8 -*-

# Python GEDCOM Parser
#
# Copyright (C) 2018 Damon Brodie (damon.brodie at gmail.com)
# Copyright (C) 2018-2019 Nicklas Reincke (contact at reynke.com)
# Copyright (C) 2016 Andreas Oberritter
# Copyright (C) 2012 Madeleine Price Ball
# Copyright (C) 2005 Daniel Zappala (zappala at cs.byu.edu)
# Copyright (C) 2005 Brigham Young University
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Further information about the license: http://www.gnu.org/licenses/gpl-2.0.html

"""
Module containing all relevant elements generated by a `gedcom.parser.Parser`.
An element represents a line within GEDCOM data.
"""

__all__ = [
    "element",
    "family",
    "file",
    "individual",
    "object",
    "root"
]

Sub-modules

gedcom.element.element

Base GEDCOM element

gedcom.element.family

GEDCOM element consisting of tag GEDCOM_TAG_FAMILY

gedcom.element.file

GEDCOM element consisting of tag GEDCOM_TAG_FILE

gedcom.element.individual

GEDCOM element consisting of tag GEDCOM_TAG_INDIVIDUAL

gedcom.element.object

GEDCOM element consisting of tag GEDCOM_TAG_OBJECT

gedcom.element.root

Virtual GEDCOM root element containing all logical records as children