Skip to content

mewahl/gedcom_reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

	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)

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

No packages published

Languages