Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: alpha

GEDCOM-X Python Toolkit (gedcom-x alpha 0.5.13)

class-based Python implementation of the GEDCOM-X data model.

⚠️ Project Goals

This project is currently in alpha.
While the core GEDCOM-X classes and serialization are functional, some features may not be fully implemented or may not behave exactly as expected.

Features

Feature Implimentation Level Description
Class Based Gedcom-X Mostly Implimented Some types need to be completed (ex. 'Group')
Gedcom-X Extensibility Mostly Implimented uses decorators and schema to register custom types/fields
Gedcom-X Serialization Mostly Implimented JSON Only, edge case handling needs work
Gedcom-X -> GEDCOM 5 Not Implimented
Gedcom 5 Read\Parse Mostly Implimented edge TAG abd extensions not fully implimented
Gedcom 5 Editing Partialy Implimented Editing at tag (element) level, with helper functions
Gedcom 5 Writing Fully Implimented
GEDCOM 5 -> Gedcom-X Mostly Implimented edge TAG abd extensions not fully implimented
Gedcom-X -> GEDCOM 7 Not Implimented
Gedcom 7 Read\Parse Mostly Implimented edge TAG abd extensions not fully implimented
Gedcom 7 Editing Partialy Implimented Editing at tag (element) level, with helper functions
Gedcom 7 Writing Not Implimented Needs to be built using gx7 schema checks
  • Certain GEDCOM 5/7 tags are not yet mapped (MAP, _DATE, _TEXT, _PHOTO, FSID, SSN) inlcuding most extended _TAGS
  • Some classes may be missing methods or fields
  • Error handling and validation are still evolving
  • Backward compatibility is not guaranteed until the first stable release

✅ What You Can Do

  • Create and manipulate GEDCOM-X objects in Python
  • Serialize and deserialize data to/from JSON
  • Experimentally convert GEDCOM 5x & 7 files into GEDCOM-X JSON
  • Extend GedcomX to handle new types or custom attributes

❌ What You Can’t Do (Yet)

  • Rely on complete coverage of all GEDCOM 5/7 tags
  • Expect perfect compliance with the GEDCOM-X specification
  • Serialize and deserialize data to/from XML
  • Assume strong validation or error recovery on malformed input
  • Use it as a drop-in replacement for production genealogy software
  • Write GEDCOM-X to GEDCOM 5x / 7
  • Create Graphs from Genealogies

Contributors and testers are welcome — feedback will help stabilize the library!


This library aims to provide:

  • Python classes for every GEDCOM-X type (Person, Fact, Source, etc.)
  • Extensibility, with current GEDCOM RS etc, extension built in
  • Serialization and Deserialization to/from GEDCOM-X JSON
  • Utilities to convert GEDCOM 5x & 7 GEDCOM Files into GEDCOM-X and back
  • Type-safe field definitions and extensibility hooks for future tags

Features

  • Complete GEDCOM-X Class Coverage
    Each GEDCOM-X type is represented as a Python class with fields and types.

  • Serialization / Deserialization
    Centralized serialization/deserialization using schema that can register extended types and properties

  • Type Checking & Enum Validation
    Uses Python type hints and enums to ensure correct values (e.g. FactType, EventType, ConfidenceLevel).

  • Composable / Nestable Classes
    Nested objects (e.g. Person → Name → NameForm → TextValue) are constructed and validated recursively.

  • GEDCOM 7 → GEDCOM-X Conversion
    Experimental parser to read GEDCOM 7 files and convert them into structured GEDCOM-X JSON.


Installation

Clone the repository and install dependencies:

git clone https://github.com/yourusername/gedcom-x.git
cd gedcom-x
pip install -r requirements.txt

or

pip install gedcom-x

Examples

Create a Person Gedcom-X Type
import json
from gedcomx import Person, Name, NameForm, TextValue

person = Person(
    id="P-123",
    names=[Name(
        nameForms=[NameForm(
            fullText=TextValue(value="John Doe")
        )]
    )]
)

print(json.dumps(person._as_dict_,indent=4))
{
    "id": "P-123",
    "lang": "en",
    "private": false,
    "living": false,
    "gender": {
        "lang": "en",
        "type": "http://gedcomx.org/Unknown"
    },
    "names": [
        {
            "lang": "en",
            "nameForms": [
                {
                    "lang": "en",
                    "fullText": {
                        "lang": "en",
                        "value": "John Doe"
                    }
                }
            ]
        }
    ]
}

Metadata

Release files for gedcom-x 0.5.14

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

Source distribution (sdist)

Source distribution for gedcom-x 0.5.14
File Size Uploaded Provenance Actions
gedcom_x-0.5.14.tar.gz 139.6 kB Without provenance Details for gedcom_x-0.5.14.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gedcom-x 0.5.14
File Interpreter ABI Platform Actions
gedcom_x-0.5.14-py3-none-any.whl Python 3 none any Details for gedcom_x-0.5.14-py3-none-any.whl

Total release size: 304.4 kB

Release files / gedcom_x-0.5.14.tar.gz

Download URL gedcom_x-0.5.14.tar.gz
Size 139.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d44b5790f0d93419013a1d1ae025d8acb7863a604bf98a7698b99fa985a10e79
BLAKE2b-256 checksum
How to use checksums
e1495ffd99bbd34a19f502762a508c4bfe1de746e7546b67de0d1982ac4b504d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release files / gedcom_x-0.5.14-py3-none-any.whl

Download URL gedcom_x-0.5.14-py3-none-any.whl
Size 164.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98ca09175357f2cd3aaf8a26524b9399039331655236bf92aa8c6acc9e12d9cb
BLAKE2b-256 checksum
How to use checksums
d03e99699537d792e43f708df31c3338825cbefb7cf79c380ef881eb912831fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Security for gedcom-x 0.5.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.14 This release

2 release files No provenance

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