Visualize ancestry data in Python.
- 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.
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 with tests/test.ged
.
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.