gedcomkit (Python)
Python bindings for gedcomkit, an archival-grade GEDCOM library written in Rust: byte-preserving round-trip, encoding detection and reporting, GEDCOM 5.5 through 7.x. A node no caller touched is written back byte for byte; nothing is dropped for being unrecognized; hostile input is bounded.
import gedcomkit
doc = gedcomkit.Gedcom.parse(open("family.ged", "rb").read())
print(doc.encoding) # "Read as ANSEL, declared ANSEL"
print(len(doc), doc.version)
for person in doc.individuals():
print(person["names"], person["events"])
for finding in doc.validate():
print(finding["severity"], finding["message"])
# The family graph reads both directions of the link, so a one-sided
# file (FAMC only, no CHIL) still answers.
print(doc.parents_of("@I3@"))
# Edit one structure by the path its view carries; every untouched
# line still writes back byte for byte.
doc.set_logical_value("@I1@", [0], "Ada /Lovelace/")
open("family.ged", "wb").write(doc.to_bytes())
Build from this directory with maturin:
maturin develop # into the active virtualenv
maturin build --release # a wheel
The Rust core lives at the root of the same repository; this crate is a thin PyO3 layer over its public API.
License: AGPL-3.0-or-later, the same as the core (see LICENSE).
Metadata
Release files for gedcomkit 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gedcomkit-0.1.8.tar.gz | 253.5 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| gedcomkit-0.1.8-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details |
| gedcomkit-0.1.8-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| gedcomkit-0.1.8-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
| gedcomkit-0.1.8-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 3.4 MB
Release files / gedcomkit-0.1.8.tar.gz
| Download URL | gedcomkit-0.1.8.tar.gz |
|---|---|
| Size | 253.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
968b71f0595c8fbe45c91414335516038b9396ed873e5ebc4c7f25a5a4e21b1c
|
|
BLAKE2b-256 checksum How to use checksums |
29c520fe6469d01d9714e2baadea0db584769b5d806ff9cf1522e4a6d92772a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / gedcomkit-0.1.8-cp39-abi3-win_amd64.whl
| Download URL | gedcomkit-0.1.8-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 436.7 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
7a8c67acdfe8accf227f16028153bdfd7daed21a3bb0a8f1bda24de532426b9e
|
|
BLAKE2b-256 checksum How to use checksums |
0a1d579b4440497402b0e70444dd41715e42c011330650e766e074666ac3f03f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / gedcomkit-0.1.8-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | gedcomkit-0.1.8-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 601.9 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c455b0206bc866ba75da9d5207c6c78d4da0d0a72c65d33ddb0de5ab6949bf9e
|
|
BLAKE2b-256 checksum How to use checksums |
e784b0e151fa41ca6555b658587019832bbf62d8158a43b28b5c9a5dbba00587
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / gedcomkit-0.1.8-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | gedcomkit-0.1.8-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
81f3f10cec8f1ed1f38e255c451f4ec1be67a3424a4311a8ed393b2bcf98ef44
|
|
BLAKE2b-256 checksum How to use checksums |
730ee2934769af24c04dabfa5a091a8f4a730a788ee3725f2e44e2566dd4a0ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / gedcomkit-0.1.8-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | gedcomkit-0.1.8-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
36736e73b2baa2dff65d85273dddcb02677dc7a6508a402715161e023f69ef03
|
|
BLAKE2b-256 checksum How to use checksums |
0e142d1e25de7219f05bd9776ba5e20ce19130e918c277b0b18655c93700f0ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|