
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Generate ancestor and descendants (genealogy) chart. SVG export is supported.
Install the module and the requiredments. Open a gedcom file and generate a ancestor life line chart.
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 DescendantChart, AncestorChart
from life_line_chart.GedcomInstanceContainer import get_gedcom_instance_container
individual_id = '@I249@'
chart = AncestorChart(
instance_container=get_gedcom_instance_container(
'tests/autogenerated.ged'),
formatting={'total_height': 800, 'horizontal_step_size':20}
)
chart.set_chart_configuration({'root_individuals': [
{'individual_id': individual_id, 'generations': 8}
]})
chart.update_chart()
chart.paint_and_save('example_1.svg')
individual_id = '@I2@'
chart = DescendantChart(
instance_container=get_gedcom_instance_container(
'tests/autogenerated.ged'),
formatting={
'total_height': 400,
'horizontal_step_size':70,
'relative_line_thickness':0.2}
)
chart.set_chart_configuration({'root_individuals': [
{'individual_id': individual_id, 'generations': 2}
]})
chart.update_chart()
chart.paint_and_save('example_2.svg')
individual_id = '@I2@'
chart = DescendantChart(
instance_container=get_gedcom_instance_container(
'tests/autogenerated.ged'),
positioning={
'chart_layout': 'cactus'
},
formatting={
'total_height': 400,
'birth_label_active': False,
'death_label_letter_y_offset': -3,
'line_weighting': 'number_of_descendants',
'horizontal_step_size':70,
'relative_line_thickness':0.2}
)
chart.set_chart_configuration({'root_individuals': [
{'individual_id': individual_id, 'generations': 3}
]})
chart.update_chart()
chart.paint_and_save('example_3.svg')
Then you will need the following modules:
pip install -r requirements.txt
python setup.py bdist_wheel
Automatically generating example gedcom files requires the module
Building a wheel requires with setup.py requires:
This project is licensed under the MIT License - see the LICENSE file for details
FAQs
Generate ancestor (genealogy) chart
We found that life-line-chart demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.