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.9.tar.gz (18.5 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.9-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gedcom5-0.1.9.tar.gz
Algorithm Hash digest
SHA256 f3c0297a9f211902f6f4144420d4e8a47f2b8867ad5fbbe35d02f5de16e8f9dc
MD5 58cfa298b52449bf691dc8ddd3afee9c
BLAKE2b-256 6ecf860dda836e689b4829a0c22a76547dddf733b9d59fa3f322462ba6d5246b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gedcom5-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 1b56845eea7bc44fc053b32fe1832690227cc0b2cc5440a3d761ae9382659d56
MD5 85ca1388193b0222733a30cfa3ac2e80
BLAKE2b-256 d6c9618db6e7020299be18142204e74a79a8ed98691a156863580302cde994cf

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