Skip to main content

A Python module for parsing, analyzing, and manipulating GEDCOM files.

Project description

PyPI GitHub release Build Status GEDCOM format version 5.5 Python versions 3.5 to 3.8

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.

Local development

Local development is done using pyenv and pipenv using Python 3.5.

Running tests

  1. Run pipenv install -d to install normal and dev dependencies
  2. Run tests with tox (pipenv run tox in your console)
    • For Python 3.5 run pipenv run tox -e py35 (you need to have Python 3.5 installed)
    • For Python 3.6 run pipenv run tox -e py36 (you need to have Python 3.6 installed)
    • For Python 3.7 run pipenv run tox -e py37 (you need to have Python 3.7 installed)
    • For Python 3.8 run pipenv run tox -e py38 (you need to have Python 3.8 installed)

Generating docs

  1. Run pipenv install -d to install normal and dev dependencies
  2. Run pipenv run pdoc3 --html -o docs/ gedcom --force to generate docs into the docs/ directory

To develop docs run pipenv run pdoc3 --http localhost:8000 gedcom to watch files and instantly see changes in your browser under http://localhost:8000.

Uploading a new package to PyPI

  1. Run pipenv install -d to install normal and dev dependencies
  2. Run pipenv run python3 setup.py sdist bdist_wheel to generate distribution archives
  3. Run pipenv 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-url is https://upload.pypi.org/legacy/.

pipenv run twine upload --repository-url https://upload.pypi.org/legacy/ dist/*

Version bumping (releasing)

All of the following will generate a <major>.<minor>.<patch>-dev<build> version:

# Major
pipenv run bumpversion major --message 'chore: release {new_version}'

# Minor
pipenv run bumpversion minor --message 'chore: release {new_version}'

# Patch
pipenv run bumpversion patch --message 'chore: release {new_version}'

To bump up the <build> number, run the following:

pipenv run bumpversion build --message 'chore: release {new_version}'

To do a final release of the current <major>.<minor>.<patch> part, run the following:

pipenv run bumpversion release --message 'chore: release {new_version}'

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-gedcom-2.0.0.dev3.tar.gz (31.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_gedcom-2.0.0.dev3-py2.py3-none-any.whl (33.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file python-gedcom-2.0.0.dev3.tar.gz.

File metadata

  • Download URL: python-gedcom-2.0.0.dev3.tar.gz
  • Upload date:
  • Size: 31.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.5.9

File hashes

Hashes for python-gedcom-2.0.0.dev3.tar.gz
Algorithm Hash digest
SHA256 95185b36897edc9c546ba92edfbe184cf37d2b6f20ec03c8077e0cd53d749a76
MD5 d9ec87016d8ef9368a337a0e81f98d3c
BLAKE2b-256 00ef3f5147bab67a8c66efdb1f9118595b1250300cc37576895db16747dea0a5

See more details on using hashes here.

File details

Details for the file python_gedcom-2.0.0.dev3-py2.py3-none-any.whl.

File metadata

  • Download URL: python_gedcom-2.0.0.dev3-py2.py3-none-any.whl
  • Upload date:
  • Size: 33.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.5.9

File hashes

Hashes for python_gedcom-2.0.0.dev3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 01b387dbcdd4fb9f0135420f6d0af7e800ffb88f05a1a78d145ed68416edfc04
MD5 55439681b78ca1941544ffe052f260ee
BLAKE2b-256 5365f42306748203aa0916c53088345e2ca1727aa093da98802ac4f118d548e7

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