GedGraph
Generate genealogical charts from GEDCOM files using GraphViz.
Features
- Pedigree Charts: Visualize ancestors of an individual
- Relationship Charts: Find and visualize relationships between two individuals
- Hourglass Charts: Show ancestors and descendants or split by parental lines
- Bowtie Charts: Horizontal hourglass layout with left-right orientation
- Smart Path Finding: Automatically finds the shortest relationship path using breadth-first search
- Relationship Prioritization: Prefers blood relationships via male line, then female line, then half-blood relationships
- Multiple Path Detection: Identifies when multiple equally short paths exist
- Spouse Visualization: Shows spouses/partners alongside the direct bloodline
- Marriage Status Indicators: Solid lines for married couples, dashed lines for unmarried couples
- Flexible Date Handling: Uses birth/death dates with fallback to baptism/burial dates
- Enhanced Name Formatting: Supports GEDCOM name components (prefix, title, given, surname, suffix)
- Progress Feedback: Braille-spinner progress indicators with
--verbose,--quiet,--no-color, and--asciioptions - GraphViz Output: Generates DOT files that can be rendered to various image formats
Prerequisites
- Python 3.11+
- GraphViz (
dotcommand) installed on your system to render DOT files to images
Installation
pip install kimon-gedgraph
Development Setup
# Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install in editable mode with dev dependencies
pip install -e ".[dev]"
Usage
Pedigree Chart
Generate a pedigree chart showing ancestors of an individual:
gedgraph pedigree family.ged @I10@ -o output.dot
Options:
-g, --generations: Number of generations to include (default: 4)
Example:
gedgraph pedigree family.ged @I10@ -g 5 -o pedigree.dot
Relationship Chart
Find and visualize the relationship between two individuals:
gedgraph relationship family.ged @I10@ @I20@ -o output.dot
Options:
-d, --max-depth: Maximum search depth (default: 50)
Example:
gedgraph relationship family.ged @I1@ @I50@ -d 15 -o relationship.dot
Hourglass Chart
Visualize ancestors and descendants or split by parental lines:
# Ancestors above, descendants below
gedgraph hourglass family.ged @I10@ -v descendants -o hourglass.dot
# Father's line above, mother's line below
gedgraph hourglass family.ged @I10@ -v ancestor-split -o hourglass.dot
Options:
-g, --generations: Number of generations in each direction (default: 4)-v, --variant: Chart variant -ancestor-splitordescendants(default: ancestor-split)
Bowtie Chart
Horizontal hourglass layout with left-right orientation:
# Ancestors left, descendants right
gedgraph bowtie family.ged @I10@ -v descendants -o bowtie.dot
# Father's line left, mother's line right
gedgraph bowtie family.ged @I10@ -v ancestor-split -o bowtie.dot
Options:
-g, --generations: Number of generations in each direction (default: 4)-v, --variant: Chart variant -ancestor-splitordescendants(default: ancestor-split)
Global Options
These flags must appear before the subcommand name:
# Suppress progress output
gedgraph --quiet pedigree family.ged @I10@ -o output.dot
# Show progress with timing
gedgraph --verbose relationship family.ged @I10@ @I20@ -o output.dot
# Disable colored output
gedgraph --no-color hourglass family.ged @I10@ -o output.dot
# Use ASCII decorations instead of braille/check marks
gedgraph --ascii pedigree family.ged @I10@ -o output.dot
| Flag | Description |
|---|---|
--verbose |
Show detailed progress with timing |
-q, --quiet |
Suppress progress output |
--no-color |
Disable colored output |
--ascii / --no-ascii |
Use ASCII decorations ([OK], [!], |/-\) instead of ✓, ✗ and the braille spinner |
--ascii is for consoles whose fonts cannot draw braille — common on Windows,
where the spinner otherwise renders as a row of boxes. It can also be set with
GEDGRAPH_ASCII=1; the flag wins over the environment variable in both
directions.
Output Encoding
Names are written to stdout in the console's own encoding. When output is
redirected to a file or a pipe, UTF-8 is used instead — there is no terminal on
the other end whose encoding matters, and this is what makes names with Greek,
Cyrillic or accented characters survive gedgraph ... > out.txt.
If you pin an encoding yourself with PYTHONIOENCODING, that choice is
respected. Characters it cannot represent are escaped (Α) rather than
causing the command to fail. Generated DOT files are always UTF-8, independent
of the console.
Rendering DOT Files
Convert DOT files to images using GraphViz:
# PNG
dot -Tpng output.dot -o output.png
# PDF
dot -Tpdf output.dot -o output.pdf
# SVG
dot -Tsvg output.dot -o output.svg
Relationship Path Sorting
When multiple equally short paths exist between two individuals, GedGraph prioritizes them in this order:
- Full blood relationships via male line
- Full blood relationships via female line
- Half-blood relationships via male line
- Half-blood relationships via female line
The tool will generate charts for all paths of equal shortest length.
Example Output
The generated DOT files include:
- Comments: Generation distance, path length, and relationship description
- Color Coding:
- Start individual (coral)
- End individual (light blue)
- Direct bloodline (light green)
- Spouses/partners (light yellow)
- Labels: Names with birth/death years in (YYYY - YYYY) format
- Relationship Lines:
- Solid arrows for parent-child relationships
- Solid lines for married couples
- Dashed lines for unmarried couples
- Horizontal Alignment: Spouses are positioned next to their partners using rank constraints
Error Handling
GedGraph will exit with an error if:
- The GEDCOM file doesn't exist
- An individual ID is not found in the GEDCOM file
- No relationship exists between two individuals (for relationship charts)
Development
See DEVELOPER.md for development setup and architecture details.
License
MIT
Metadata
Release files for kimon-gedgraph 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kimon_gedgraph-1.2.1.tar.gz | 32.2 kB | With provenance | Details for kimon_gedgraph-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kimon_gedgraph-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for kimon_gedgraph-1.2.1-py3-none-any.whl |
Total release size: 51.6 kB
Release files / kimon_gedgraph-1.2.1.tar.gz
| Download URL | kimon_gedgraph-1.2.1.tar.gz |
|---|---|
| Size | 32.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1091360d494cc8673ddb5126b9985cd6939aba964dfcbf25f983f34a0363e8db
|
|
BLAKE2b-256 checksum How to use checksums |
b1537aaf8360dc67c66aea069f1b9c22a0f266da4c8162d3fd64c147142e138e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.
Transparency logRelease files / kimon_gedgraph-1.2.1-py3-none-any.whl
| Download URL | kimon_gedgraph-1.2.1-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a111a171e035af3d322bf9c61046ae9fd677a3a161cf21af683867555f67128f
|
|
BLAKE2b-256 checksum How to use checksums |
de541022f335b1c9007901a564cabdd3c967231012a4c7237f067b0f623b2ce2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.
Transparency logSecurity for kimon-gedgraph 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for kimon_gedgraph-1.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.