Teemeam / gedcom-tree

Ancestry data visualization.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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. Note that this script assumes that the GEDCOM file has latitude and longitude information for each place. If a place does not have this information, the script will not plot it on the map.

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.

About

Ancestry data visualization.


Languages

Language:Python 100.0%