Gramps is written in python, and the source code is here: https://github.com/gramps-project/gramps
I have use it for years.
There are some add on packages here: https://pypi.org/search/?q=gramps
I have use it for years.
There are some add on packages here: https://pypi.org/search/?q=gramps