Top

ancestry.Gedcom module

Module variables

var PLACE_TOTAL_KEY

Classes

class Gedcom

Routines to Read/Parse and Write GEDCOM ancestry files (focused on PLACE entries).

Ancestors (in MRO)

  • Gedcom
  • ancestry.AncestryFile.AncestryFile
  • builtins.object

Static methods

def __init__(

self, in_path, out_suffix, cache_d, progress)

Routines to Read/Parse and Write GEDCOM ancestry files focused on place entries.

Args:

in_path:
out_suffix:
cache_d:
progress:

def build_person_dictionary(

self)

Read gedcom and extract Person names This is used to do lookup from ID to name

def clear_date(

self)

def close(

self)

def collect_event_details(

self)

Collect details for events with places - last name, event date, and tag in GEDCOM file.

def get_name(

self, nam, depth=0)

def get_next_place(

self)

def open(

self, in_path)

def parse_line(

self, line)

Called by read_and_parse_line for each line in file. Parse line and returns each place entry in self.value with self.tag set to PLAC

Args:

line: GEDCOM line

Returns:

Sets tag, level, value and label based on GEDCOM line contents

def peak_next_line(

self)

Return a peak at next line but dont move forward in file

def progress(

self, msg, percent)

Display progress update

def read_and_parse_line(

self)

def set_date(

self, date)

Set Date and Parse string for date/year and set Gedcom year of event

def write_asis(

self, entry)

Write out a line as-is. Put together the pieces: level, Label, tag, value

Args:

entry: not used

def write_lat_lon(

self, lat, lon)

Write out a GEDCOM PLACE MAP entry with latitude and longitude.

Args:

lat:
lon:

def write_updated(

self, value, place)

Write out a line with updated values. Put together the pieces: level, Label, tag, value

Args:

value: The new item value to write out
place: Not used

Instance variables

var person_cd