Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FerdinandoR/radici

 
 

Repository files navigation

radici

This program creates family tree graphs from simple text files.

The input file format is very simple, you describe persons of your family line by line, children just have to follow parents in the file. Persons can be repeated as long as they keep the same name or id. An example is given in the file LouisXIVfamily.txt.

Installation

Simply clone the repo.

This script outputs a graph descriptor in DOT format. To make the image containing the graph, you will need a graph drawer such as [GraphViz] 1.

Usage

The sample family descriptor LouisXIVfamily.txt is here to show you the usage. Simply run:

$ ./familytreemaker.py -a 'Louis XIV' LouisXIVfamily.txt | dot -Tpng -o LouisXIVfamily.png

It will generate the tree from the infos in LouisXIVfamily.txt, starting from Louis XIV and saving the image in LouisXIVfamily.png.

You can see the result:

result: LouisXIVfamily.png

Things to change

  1. Generate family trees from below (i.e. tracing one's known ancestors) as well as from above (i.e. tracing one's descendants).
  2. Add places of birth/death
  3. Add support for marriages between cousins (needed for e.g. nonna Pia La Rocca and nonno Giovanni Lipari).
  4. Add some simple tests
  5. Add .png file generation from within, rather than calling graphviz externally
  6. Add generation from LaTeX of a whole .pdf document ready to print.

Things changed

  1. Ensure the code is written in python 3 rather than python 2
  2. Change family file format to .csv

About

Generates a family tree graph from a simple text file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%