gedcom_reader.py
MEW 10/26/2015
Extracts name, sex, and parentage information for each individual in
the GEDCOM file. Removes individuals who are more than a defined number
of meioses from a terminal node. Retains only individuals who remain
connected to a selected person of interest. Returns:
* gedcom_dict: key: GEDCOM id; value: list
[0] Name
[1] Sex ('M' or 'F')
[2] Placeholder status (True if this is a dummy person inserted
where no information on a parent was available)
[3] Person of Interest status (True if name contains substring used
to define the person of interest)
* trio_dict: key: GEDCOM id; value: two-tuple
[0] GEDCOM id of mother
[1] GEDCOM id of father
regex inspired by Greg Hewgill's GEDCOM to XML parser:
http://stackoverflow.com/questions/1919593/is-there-a-gedcom-parser-
written-in-python
Includes sample file fugates.ged (based on Blue Fugate family)
Reads GEDCOM files such as those created by Ancestry.com's exporter. Retains name, sex, and information on the genealogical topology
License
mewahl/gedcom_reader
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Reads GEDCOM files such as those created by Ancestry.com's exporter. Retains name, sex, and information on the genealogical topology
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published