Statistics project
Family Statistics
Family Statistics turns selected Gramps data into a clean web report that can be viewed locally or published alongside a family history website.
Installation
Filters and tags
The examples use a Gramps person tag named
ProfileTag
.
You may use your own filter and tag, but the tag must contain the same set of persons as the filter used for the reports. A guide for creating a person tag from a filter is available under ProfileTag – step 3 .
The selected tag name is read from the Gramps Tag Report and displayed dynamically on the statistics page, for example:
Selected filter: ProfileTag
.
Requirements
- Gramps 5.2 or later.
- Gramps running in English when the reports are created.
- Date format YYYY-MM-DD (ISO) for reports that contain date fields.
- Python 3.x.
-
Python package
beautifulsoup4.
If BeautifulSoup is not installed, run:
python -m pip install beautifulsoup4
Tested: Gramps 6.0.8 on Windows 11 and Zorin OS 18.1 Core. macOS has not been tested.
Files
The main package contains
index.html
,
statistics.py
,
statistics.css
,
statistics.js
,
README.md
,
RELEASE_NOTES.md
and
LICENSE
.
The
example
folder contains a standalone
index.html
with embedded fictional data. It can be opened directly in a browser and does not require
statistics.json
, localhost or a web server.
The normal
index.html
uses
statistics.json
and must therefore be opened through localhost or a web server.