pyged - GEDCOM parser and report generator
This project provides the pyged package for python.
providing a portfolio of scripts as well as two library
modules.
pyged.gedcomis a simple GEDCOM parser librarypyged.reportis a library to produce reports, particularly in TeX format, from GEDCOM files parsed by the above library.
The report generator is original work, while the GEDCOM parser was originally a fork of dijxtra's project, which in turn was based on another project. Several changes have been made to the parser, with an object oriented data model mirroring the GEDCOM model. It still only recognises a subset of GEDCOM 5.5 tags.
Documentation and Examples
- Documentation under
docs/ - Examples under
examples/
Documentation and examples are generally long out of date. (TODO)
If you want to use pyged, please get in touch and I'll see
what I can do in terms of documentation.
License
All code is licensed under GPL v.3 or newer.
Some comments on design
First of all, many attempts have been made to simplify the
code.
In particular, this is evident in the gedcom module.
We have a new common superclass of the
Gedcom and Line classes, to unify the structure
and provide some related functionality once and for all.
Several attributes from the Gedcom class have been
removed, and are instead generated on the fly by accessor methods.
Some objects which used to be lists are now generators instead, based on the idea that most of the time, all you want is the iterator.
The parser methods have been simplified and also changed to comply more closely with the Gedcom standard. Whitespace in the value field is no longer stripped, and whitespace is now allowed inside xref strings.
In this simplification, we have strived to retain compatibility.
However, in the case of the event classes, this was not possible.
The comma separated place strings are now split into a list of
strings, to make it easier to use the hierarchical structure
recommended by Gedcom. To represent dates, we have created a
new Date class to handle the many forms of approximate
dates supported in Gedcom. All use of event objects must be
updated accordingly.
Version History
- v0.2.1. Bugfix in metadata
- v0.2.0. First version released on PyPI - still rudimentary and undocumented.
- v0.1.1. Preliminary version, debugging the packaging info for PyPI
- v0.1. Unreleased versions, available on github.
Metadata
Release files for pyged 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyged-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for pyged-0.2.1-py3-none-any.whl |
Release files / pyged-0.2.1-py3-none-any.whl
| Download URL | pyged-0.2.1-py3-none-any.whl |
|---|---|
| Size | 59.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dab83fd7559bc0ac5ab902c5032a53799b122e13af8c2ddb5e23027cd9d1bd1b
|
|
BLAKE2b-256 checksum How to use checksums |
9dfd56a0c087d6a062c8ce5f671ff5caee0d8661e29b809a6a29905ec495ac16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for pyged 0.2.1
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.