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.14
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.14.tar.gz | 278.5 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| gedcomkit-0.1.14-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details |
| gedcomkit-0.1.14-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.14-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
| gedcomkit-0.1.14-cp39-abi3-macosx_10_12_x86_64.whl | CPython 3.9 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 3.5 MB
Release files / gedcomkit-0.1.14.tar.gz
| Download URL | gedcomkit-0.1.14.tar.gz |
|---|---|
| Size | 278.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60e4dc9b9542ca3c9ef1fc6be9521674eedd157a248224770fc0cf851f0633a3
|
|
BLAKE2b-256 checksum How to use checksums |
267dc7cf351e16e6698ed1148dd2f7446a0d8ee9c502766876c68b84b617828f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / gedcomkit-0.1.14-cp39-abi3-win_amd64.whl
| Download URL | gedcomkit-0.1.14-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 455.9 kB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
fc9864ec20ed204ccfe07e0c5f3eba389caa1f821b0761b5c07365323bfeca0d
|
|
BLAKE2b-256 checksum How to use checksums |
3e3c60426ccaff416c8cce938e6909b75d0be7e2600c5a7635e725b21e262952
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / gedcomkit-0.1.14-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | gedcomkit-0.1.14-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 621.1 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c6d909a2ec48af4211f2784dd27be3195a819a1610254b46f49826e4ea8b72ff
|
|
BLAKE2b-256 checksum How to use checksums |
b27a11b3380ad58502b2580fa0c99792096d954f61db9f39e25c309b16e600a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / gedcomkit-0.1.14-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | gedcomkit-0.1.14-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 |
88f98685a713aceff00f5830963b08ae7c82f5190be19c86f1d724f4126f3ff1
|
|
BLAKE2b-256 checksum How to use checksums |
3f4c4a51e12d7542c8c9b9846dd5bf683451b6198769a18bd5b268f5e2f1a14f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / gedcomkit-0.1.14-cp39-abi3-macosx_10_12_x86_64.whl
| Download URL | gedcomkit-0.1.14-cp39-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.9 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
ca33272790f49336257c6dca8fb6d1faff59361b8f538194f251a2bdbf7cf7e0
|
|
BLAKE2b-256 checksum How to use checksums |
19f260785a2ac865b7af6115d7fc43337ddd7ffb5b9c97bd119f6c2496441c9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|