Skip to content

Teemeam/gedcom-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gedcom-tree

Visualize ancestry data in Python.

Used technologies

  • Python 3.11
  • python-gedcom
  • pydot
    • pydot uses GraphViz to render graphs as PDF, PNG, SVG, etc. Install it separately.
  • tqdm for progress meter.
  • folium visualizes locations in a Leaflet map.

Usage

Export a GEDCOM file from a genealogy software like Gramps. Store the file in the root folder.

Add pointers of selected individuals to the list in modules/linear_descendants.py to highlight lineal descendants.

Run py main.py to parse the GEDCOM file and to create a graph.

Run py map.py to parse the GEDCOM file and to create a location map. The script tries to find latitude and longitude information for each place. If a place does not have this information, the script will ascend to a higher jurisdiction level and use the coordinates associated with that jurisdiction.

Test

Test with tests/test.ged.

Tree of a test family

Notes

Python-gedcom parser supports the GEDCOM 5.5 format.

ChatGPT is a large language model developed by OpenAI that is able to understand natural language and generate text in response. It was used to provide explanations and context for the code in question.