GEDCOM Relationship Report

GEDCOM Relationship Report is a Python-based tool that creates relationship reports from a GEDCOM file exported from Gramps.

The project was created to show the relationship and relationship path from a selected proband to the people in the proband's biological family line. Any person in the GEDCOM file can be selected as the proband.

In the English Gramps interface, the proband corresponds to the Home Person.

If more than one person has the same name, the script displays the matching people and lets you select the correct person by ID.

Requirements

Instructions for creating the required GEDCOM filter are available here:

https://myown-project.dk/guides/gramps-tags-filters/gedcom-filter/index.html

The filter excludes a child recorded with a non-birth relationship and the related family branch unless a biological connection also exists. This is necessary because family relationship names would otherwise be incorrect.

Tested platforms

Tested with:

macOS has not been tested.

Included files

The release package contains:

The files Maren_Iversen.html and Maren_Iversen.xlsx are example reports created from the included test data.

relationship_names.xlsx contains the relationship names and the corresponding relationship paths used by the script, for example children, parents, siblings, nieces, grandparents, uncles and first cousins.

Before using your own data

You may review the example files:

This makes it possible to see the expected result before using your own family tree.

Export from Gramps

  1. Open Gramps and your family tree.
  2. Export the family tree as a GEDCOM file.
  3. Under Person filter, select the GEDCOM filter created for this project.
  4. Select Calculate Preview and verify that significantly fewer people are included.
  5. Save the exported file in the same working folder as relationship.py.
  6. Close the family tree and Gramps.

The GEDCOM file is only read by the Python script and is not modified.

Run the report

Open the working folder in a terminal and run:

python relationship.py

Enter the full and correct name of the person who should be used as the proband.

If several people have the same name, the script displays the matching people and lets you select the correct person by ID.

The script creates a subfolder named:

relationship-report-output

Three report files are created in this folder:

The filenames are based on the selected proband.

Output files

HTML

The HTML report contains:

The report can be opened locally in a web browser.

Search is available for:

XLSX

The XLSX report contains the same main report columns as the HTML version.

It can be opened in a spreadsheet application, where all columns can be searched and sorted using the application's normal spreadsheet functions.

JSON

The JSON file contains:

Roles and Path are reserved for later use and do not currently contain report data.

Limitations

Support

For questions and troubleshooting, see:

https://myown-project.dk/support/index.html