e8a2f0b5a4af595faed0d949d59cb354091e65de
Creates core project structure for converting GEDCOM genealogy files to Obsidian-compatible markdown notes Implements key components: - GEDCOM file parsing - Individual data extraction - Markdown note generation - Alphabetical index creation Includes comprehensive documentation and CLI interface for easy usage
GEDCOM to Markdown Converter
Convert GEDCOM genealogy files to Obsidian-compatible markdown notes with WikiLinks.
Features
- Complete Individual Notes: Generates detailed markdown notes for each person
- WikiLinks: All relationships use
[[WikiLinks]]format for Obsidian - Comprehensive Data: Captures births, deaths, marriages, events, physical attributes, images, and notes
- Multiple Marriages: Supports individuals with multiple spouses
- Life Stories: Extracts long-form narratives and stories
- Global Index: Creates an alphabetical index of all individuals
- Proper Naming: Files named as "FamilyName FirstName BirthYear.md"
Installation
pip install -r requirements.txt
Usage
python src/main.py path/to/family.ged output/directory
Options
--no-index: Skip creating the index file--verboseor-v: Enable detailed logging
Example
python src/main.py examples/Stammbaum_Kucera.ged examples/files --verbose
This will create:
- One markdown file per person in
examples/files/ - An
Index.mdfile with alphabetical listing
Output Format
Each person gets a markdown note with sections for:
- Attributes: Name, birth, death, physical characteristics
- Life Events: Occupations, education, residences, etc.
- Families: Marriages with dates, places, and children
- Parents: Links to parent notes
- Images: Media references from GEDCOM
- Notes: Long-form stories and narratives
Project Structure
src/
├── gedcom_parser.py # GEDCOM file parsing
├── individual.py # Person data model
├── markdown_generator.py # Note generation
├── index_generator.py # Index file creation
└── main.py # CLI entry point
Requirements
- Python 3.7+
- python-gedcom==1.0.0
Line Ending Issue
Important: Some GEDCOM files exported from macOS applications may use old Mac-style line endings (CR only). If the parser finds 0 individuals, convert line endings first:
python -c "
with open('file.ged', 'rb') as f:
content = f.read()
with open('file.ged', 'wb') as f:
f.write(content.replace(b'\r', b'\n'))
"
Description
This is a Python-based GEDCOM (genealogical data) parser that converts family tree data into Obsidian-compatible Markdown notes with WikiLinks. The project extracts comprehensive genealogical data including relationships, events, images, and long-form narratives.
8.7 MiB
0 Stars
1 Watchers
0 Forks