Skip to content
Emmanuel Briot edited this page Aug 25, 2016 · 1 revision

The code of geneaprove includes several packages that could be reused in other project (although of course they tend to be related to genealogical software). As much as possible, they do not depend on django itself.

  • geneaprove/utils/date.py

    Support for parsing dates in lots of formats, including partial dates (missing day, month or year), dates in calendars other than Gregorian, date ranges, and simple date calculation ("Jan 12, 2008 - 1 month")

  • geneaprove/utils/gedcom.py

    A simple gedcom parser, which creates a in-memory representation of the gedcom file based on dict(). Missing from it is the handling of characters encoding, mostly because I do not have an example of gedcom file where the encoding is not utf8.

  • gedcom_view.py

    A simple standalone program to view GEDCOM files in a more convenient fashion: lines are indented with spaces (better showing the structure of the file), and color highlighting is used to show the various parts of the line

  • gedcom_anon.py

    An anonymizer for gedcom files. It substitutes "anonymous" for all names and file names that occur in your file, thus making it slightly safer to send this file over to report a bug. This is not fully anonym though, one might still extract information about step sisters, death of parents,... if we know you sent it and are the first person in the file.

  • gedcom_calendar.py

    An interactive, stack-based, calendar calculator.

    You can enter dates in a wide variety of formats, in multiple calendars (Gregorian, Julian and French Republican). Dates can be approximate, or even be partially unknown (missing year, month or day).

    The calendar supports date spans and ranges.

    You can calculate the day of week for a precise date.

    You can add time deltas (years, months and days) to dates and date ranges.

Clone this wiki locally