Skip to main content

GEDCOM v5 parser

Project description

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 Bob /BROWN/'
    '0 @I3@ INDI',
    '1 NAME Mary /SMITH/'
])
parser = GEDCOM5Parser()
gedcom = parser.parse_string(msg)
gedcom.indi[0].name.value == 'Bob /BROWN/'
for indi in gedcom.indi:
    print(f'{indi.name.value}')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gedcom5-0.1.7.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gedcom5-0.1.7-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file gedcom5-0.1.7.tar.gz.

File metadata

  • Download URL: gedcom5-0.1.7.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for gedcom5-0.1.7.tar.gz
Algorithm Hash digest
SHA256 afa6facb8175c3e18ebba02902732b6e6a5d8e253418652c790460b2387c241c
MD5 5c5e9f389c7262bd156ce02a3b1fe391
BLAKE2b-256 a1588e2180e19b1f3d6be0b4d8d79fc18ccf7b14130faf88d58cdbff036fd7d8

See more details on using hashes here.

File details

Details for the file gedcom5-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: gedcom5-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for gedcom5-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9e6e92251a79a7cf6ef950ff611ae28daeea66da85e1aa3765cefc0bd97bf06e
MD5 9fc6d1ccb195317fd3a6bbfd5d690ae8
BLAKE2b-256 8ce8b2005025a2e6c097c21121fdaf0390baa2b1ca82365b3a6cd38983993a1a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page