Generate ancestor (genealogy) chart
Project description
life_line_chart
Generate ancestor (genealogy) chart. SVG export is supported.
Getting started
Install the module and the requiredments. Open a gedcom file and generate a ancestor life line chart.
Prerequisites
You will need a gedcom file. You can use the automatically generated one from the tests directory in this repository ([tests/autogenerated.ged]).
from life_line_chart import AncestorGraph, get_gedcom_instance_container
individual_id = '@I249@'
graph = AncestorGraph(
instance_container=lambda: get_gedcom_instance_container(
'tests/autogenerated.ged'),
formatting={'total_height': 800, 'vertical_step_size':20}
)
graph.select_individuals(
graph._instances[('i', individual_id)],
generations=8
)
graph.place_selected_individuals(
graph._instances[('i', individual_id)],
None,
None,
None,
0
)
graph.define_svg_items()
graph.paint_and_save(individual_id, 'example_1.svg')
Installing
Then you will need the following modules:
- svgwrite
- pillow
- python-dateutil
pip install -r requirements.txt
Building
python setup.py bdist_wheel
Automatically generating example gedcom files requires the module
- names
Building a wheel requires with setup.py requires:
- shutil
- glob
- setuptools
- distutils
- wheel
License
This project is licensed under the MIT License - see the LICENSE file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
life_line_chart-1.2.28.tar.gz
(40.2 kB
view hashes)
Built Distribution
Close
Hashes for life_line_chart-1.2.28-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6997d1b4c7d4648566ab84b172eb0e080bf16f034caaceb489f1cd345dc5605 |
|
MD5 | e1e9887edc05ab75794304166f8e4201 |
|
BLAKE2b-256 | 341b1769750f931185ebfa07ee63601cbe371ff8f4d624c9bb72ae0a2c02f6b4 |