gedcom5


Namegedcom5 JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
SummaryGEDCOM v5 parser
upload_time2024-06-25 09:17:36
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseCopyright © 2023 David <c0d3@gpobox.net> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords gedcom
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # GEDCOM v5

Parser for GEDCOM v5 files

## Specifications

https://www.gedcom.org/gedcom.html

## Samples

https://www.gedcom.org/samples.html

## Usage Example

    from gedcom5.parser import GEDCOM5Parser

    msg = '\n'.join([
        '0 @I1@ INDI',
        '1 NAME Bob /BROWN/',
        '2 FAMC @F1@',
        '0 @F1@ FAM',
        '1 HUSB @I2@',
        '1 WIFE @I3@',
        '0 @I2@ INDI',
        '1 NAME Mary /BROWN/',
        '1 NAME Mary /MARTIN/',
        '0 @I3@ INDI',
        '1 NAME Mary /SMITH/',
    ])
    parser = GEDCOM5Parser()
    gedcom = parser.parse_string(msg)
    assert gedcom.indi[0].name[0].value == 'Bob /BROWN/'
    expected = ['1 NAME Bob /BROWN/', '1 NAME Mary /BROWN/', '1 NAME Mary /SMITH/']
    for index, indi in enumerate(gedcom.indi):
        assert f'{indi.name[0]}' == expected[index]
    assert f'{gedcom.indi[1].name[1]}' == '1 NAME Mary /MARTIN/'
    assert gedcom.indi[1].name[1].value == 'Mary /MARTIN/'

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "gedcom5",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": "David <c0d3@gpobox.net>",
    "keywords": "gedcom",
    "author": null,
    "author_email": "David <c0d3@gpobox.net>",
    "download_url": "https://files.pythonhosted.org/packages/a2/40/be95a6ac45380216fc27c37cb6720c107d117b0c5e25fcdc9027c333a302/gedcom5-0.2.0.tar.gz",
    "platform": null,
    "description": "# GEDCOM v5\n\nParser for GEDCOM v5 files\n\n## Specifications\n\nhttps://www.gedcom.org/gedcom.html\n\n## Samples\n\nhttps://www.gedcom.org/samples.html\n\n## Usage Example\n\n    from gedcom5.parser import GEDCOM5Parser\n\n    msg = '\\n'.join([\n        '0 @I1@ INDI',\n        '1 NAME Bob /BROWN/',\n        '2 FAMC @F1@',\n        '0 @F1@ FAM',\n        '1 HUSB @I2@',\n        '1 WIFE @I3@',\n        '0 @I2@ INDI',\n        '1 NAME Mary /BROWN/',\n        '1 NAME Mary /MARTIN/',\n        '0 @I3@ INDI',\n        '1 NAME Mary /SMITH/',\n    ])\n    parser = GEDCOM5Parser()\n    gedcom = parser.parse_string(msg)\n    assert gedcom.indi[0].name[0].value == 'Bob /BROWN/'\n    expected = ['1 NAME Bob /BROWN/', '1 NAME Mary /BROWN/', '1 NAME Mary /SMITH/']\n    for index, indi in enumerate(gedcom.indi):\n        assert f'{indi.name[0]}' == expected[index]\n    assert f'{gedcom.indi[1].name[1]}' == '1 NAME Mary /MARTIN/'\n    assert gedcom.indi[1].name[1].value == 'Mary /MARTIN/'\n",
    "bugtrack_url": null,
    "license": "Copyright \u00a9 2023 David <c0d3@gpobox.net>  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \u201cSoftware\u201d), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "GEDCOM v5 parser",
    "version": "0.2.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/bbc6502/gedcom5/issues",
        "Homepage": "https://github.com/bbc6502/gedcom5"
    },
    "split_keywords": [
        "gedcom"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fd7214eb01406035003faa0b6f51dadd9969184b2e0101cd53f7a009c68f1413",
                "md5": "778f3e22c7bc72721760a966c650e69a",
                "sha256": "438bbd3e09be06a63ac0f06600ef6dffec3ae771f402d0f20428504f1994b8d0"
            },
            "downloads": -1,
            "filename": "gedcom5-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "778f3e22c7bc72721760a966c650e69a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 14189,
            "upload_time": "2024-06-25T09:17:34",
            "upload_time_iso_8601": "2024-06-25T09:17:34.893084Z",
            "url": "https://files.pythonhosted.org/packages/fd/72/14eb01406035003faa0b6f51dadd9969184b2e0101cd53f7a009c68f1413/gedcom5-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a240be95a6ac45380216fc27c37cb6720c107d117b0c5e25fcdc9027c333a302",
                "md5": "457408cd8206b21fc28d513a8ef2067f",
                "sha256": "16abd233b254b7c223d1ecdb62f5bf549eedbc7afb7ebdcea912bc5eebe99246"
            },
            "downloads": -1,
            "filename": "gedcom5-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "457408cd8206b21fc28d513a8ef2067f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 18749,
            "upload_time": "2024-06-25T09:17:36",
            "upload_time_iso_8601": "2024-06-25T09:17:36.571504Z",
            "url": "https://files.pythonhosted.org/packages/a2/40/be95a6ac45380216fc27c37cb6720c107d117b0c5e25fcdc9027c333a302/gedcom5-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-25 09:17:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "bbc6502",
    "github_project": "gedcom5",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "gedcom5"
}
        
Elapsed time: 0.24829s