Skip to main content

GEDCOM v5

Parser for GEDCOM v5 files

Specifications

https://www.gedcom.org/gedcom.html

Samples

https://www.gedcom.org/samples.html

Usage Example

from gedcom5.parser import GEDCOM5Parser

msg = '\n'.join([
    '0 @I1@ INDI',
    '1 NAME Bob /BROWN/',
    '2 FAMC @F1@',
    '0 @F1@ FAM',
    '1 HUSB @I2@',
    '1 WIFE @I3@',
    '0 @I2@ INDI',
    '1 NAME Mary /BROWN/',
    '1 NAME Mary /MARTIN/',
    '0 @I3@ INDI',
    '1 NAME Mary /SMITH/',
])
parser = GEDCOM5Parser()
gedcom = parser.parse_string(msg)
assert gedcom.indi[0].name[0].value == 'Bob /BROWN/'
expected = ['1 NAME Bob /BROWN/', '1 NAME Mary /BROWN/', '1 NAME Mary /SMITH/']
for index, indi in enumerate(gedcom.indi):
    assert f'{indi.name[0]}' == expected[index]
assert f'{gedcom.indi[1].name[1]}' == '1 NAME Mary /MARTIN/'
assert gedcom.indi[1].name[1].value == 'Mary /MARTIN/'

Release files for gedcom5 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gedcom5 0.2.0
File Size Uploaded
gedcom5-0.2.0.tar.gz 18.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gedcom5 0.2.0
File Interpreter ABI Platform
gedcom5-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 32.9 kB

Release files / gedcom5-0.2.0.tar.gz

Download URL gedcom5-0.2.0.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
16abd233b254b7c223d1ecdb62f5bf549eedbc7afb7ebdcea912bc5eebe99246
BLAKE2b-256 checksum
How to use checksums
a240be95a6ac45380216fc27c37cb6720c107d117b0c5e25fcdc9027c333a302
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release files / gedcom5-0.2.0-py3-none-any.whl

Download URL gedcom5-0.2.0-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
438bbd3e09be06a63ac0f06600ef6dffec3ae771f402d0f20428504f1994b8d0
BLAKE2b-256 checksum
How to use checksums
fd7214eb01406035003faa0b6f51dadd9969184b2e0101cd53f7a009c68f1413
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page