Skip to content

Extract data from a family tree database/file and generate a simple static website.

Notifications You must be signed in to change notification settings

samuller/ftsgen

Repository files navigation

ftsgen - Family Tree Site Generator

Extract data from a family tree database/file and generate JSON files for displaying in a simple website. Supports extracting data from a Gramps XML export or a Family Tree Builder v8+ database (an SQLite database file with a ".ftb" extension).

Example commands to extract & generate JSON data:

# generate JSON from Gramps XML export file
time ./extract.py --format gxml /path/to/data/family-extract-xml.gramps

# generate JSON from FTB database file
time ./extract.py --format ftb /path/to/data/family-database.ftb

Test and view website:

# move generated files into website directory
mkdir public/json
mv generated-data/* public/json/

# locally serve website for testing
cd public && python3 -m http.server

Setup dev environment

Install poetry:

curl -sSL https://install.python-poetry.org | python3 -

Install required python packages and activate virtual environment:

poetry shell
poetry install

About

Extract data from a family tree database/file and generate a simple static website.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published