A Python module for parsing, analyzing, and manipulating GEDCOM files.
Project description
A Python module for parsing, analyzing, and manipulating GEDCOM files.
GEDCOM files contain ancestry data. The parser is currently supporting the GEDCOM 5.5 format which is detailed here.
Documentation
Documentation can be found here: https://nickreynke.github.io/python-gedcom/gedcom/index.html
Changelog
For the latest changes please have a look at the CHANGELOG.md file.
The current development process can be tracked in the develop branch.
Common problems
- When you name your script
gedcom.py, and import thegedcommodule from this package, running your script won't work because Python will try to resolve imports likegedcom.element.individualfrom within yourgedcom.pybut not from within the module from this package. Rename your file in this case. (#26)
Local development
Local development is done using uv.
Running tests
- Run
uv syncto install dependencies - Run tests with pytest (
uv run pytestin your console)
Generating docs
- Run
uv syncto install dependencies - Run
uv run pdoc3 --html -o docs/ gedcom --forceto generate docs into thedocs/directory
To develop docs run
uv run pdoc3 --http localhost:8000 gedcomto watch files and instantly see changes in your browser under http://localhost:8000.
Uploading a new package to PyPI
- Run
uv syncto install dependencies - Run
uv buildto generate distribution archives - Run
uv run twine upload --repository-url https://test.pypi.org/legacy/ dist/*to upload the archives to the Test Python Package Index repository
When the package is ready to be published to the real Python Package Index the
repository-urlishttps://upload.pypi.org/legacy/.
uv run twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
History
This module was originally based on a GEDCOM parser written by Daniel Zappala at Brigham Young University (Copyright (C) 2005) which was licensed under the GPL v2 and then continued by Mad Price Ball in 2012.
The project was taken over by Nicklas Reincke in 2018. Together with Damon Brodie a lot of changes were made and the parser was optimized.
License
Licensed under the GNU General Public License v2
Python GEDCOM Parser
Copyright (C) 2018 Damon Brodie (damon.brodie at gmail.com)
Copyright (C) 2018-2019 Nicklas Reincke (contact at reynke.com)
Copyright (C) 2016 Andreas Oberritter
Copyright (C) 2012 Madeleine Price Ball
Copyright (C) 2005 Daniel Zappala (zappala at cs.byu.edu)
Copyright (C) 2005 Brigham Young University
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_gedcom-1.1.0.tar.gz.
File metadata
- Download URL: python_gedcom-1.1.0.tar.gz
- Upload date:
- Size: 168.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18a6d8b1832e9c0e912cbfa7958941544a88d1447e753d3aaa1f9f3c5dab1e38
|
|
| MD5 |
1efc6b75983eea9c75ff3e1620a94155
|
|
| BLAKE2b-256 |
2b79f2cb205a79b4995df74f86a0f7b3b278e4910b7a337c6fa26c5f88067117
|
File details
Details for the file python_gedcom-1.1.0-py3-none-any.whl.
File metadata
- Download URL: python_gedcom-1.1.0-py3-none-any.whl
- Upload date:
- Size: 32.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98ce4f4da3949727c235e0adbe6b96360fd4840a6ccf3c8b20cab3407041f65f
|
|
| MD5 |
bf752d3e55c421dbf37a5f34fea66d56
|
|
| BLAKE2b-256 |
304190707f85cf2585f1240a773793c0deff14b22452575c582cc0b8c8bde551
|