coldp


Namecoldp JSON
Version 2024.12.3 PyPI version JSON
download
home_pageNone
SummaryPython tools for working with taxonomic checklists organised as Catalogue of Life Data Package (COLDP) format
upload_time2024-12-28 03:32:46
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT License Copyright (c) [2024] [Donald Hobern] 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 coldp catalogue of life taxonomic checklist
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # py-coldp
 Python tools for working with taxonomic checklists organised as Catalogue of Life Data Package (COLDP) format

# Overview
py-coldp is a Python package to facilitate creation, manipulation, editing and serialisation of taxonomic checklists in the [Catalogue of Life Data Package](https://github.com/CatalogueOfLife/coldp ) format.

The package includes two classes:
* **COLDP** - A COLDP package loaded as a set of Pandas dataframes
* **NameBundle** - A helper class to simplify addition of taxon names with sets of associated synonyms to a COLDP instance

# Class: COLDP
The main **COLDP** class instantiates a COLDP package in memory as a set of Pandas dataframes. An instance may be initialised from the contents of a folder containing a set of COLDP-compliant CSV or tab-delimited data files or alternatively can be initialised as an empty instance in memory. The class includes many methods for inserting new data, editing existing records and querying the contents of the package. The instance can then be saved as a set of CSV files in a named folder .

# Class: NameBundle

The **NameBundle** class brings together a scientific name and its synonyms so that these can be added together and the COLDP package can automatically manage their relationships NameBundle objects are normally created using the COLDP.**start_name_bundle()** method. 

At minimum a NameBundle is initialised with a dictionary holding a set of COLDP name record values. The scientific name represented by this dictionary should be the accepted name for a species or other taxon. Synonyms may then be added to the NameBundle. 

Once all names are included, the NameBundle can be added to the COLDP object via the COLDP.**add_names()** method. This adds name, taxon and synonym records for the set of names supplied. COLDP options may expand the set of added synonyms to include variant formats or may trigger the addition of one or taxa that are implicit in the accepted name. 

The COLDP object will automatically manage record identifiers and the basionymID for any name records that are combinations of another name in the set.

# Installation
```console
pip install py-coldp
```

# Documentation
[Browsable documentation for COLDP version: 2024.12.3](https://html-preview.github.io/?url=https://github.com/dhobern/py-coldp/blob/main/docs/build/html/index.html)

[PDF documentation for COLDP version: 2024.12.3](https://github.com/dhobern/py-coldp/blob/main/docs/build/simplepdf/COLDP.pdf)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "coldp",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "COLDP, Catalogue of Life, taxonomic checklist",
    "author": null,
    "author_email": "Donald Hobern <dhobern@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/ca/11/f42bffbd3358df24077228c06491cf68abc8be25c8b1023aa51c56c6cced/coldp-2024.12.3.tar.gz",
    "platform": null,
    "description": "# py-coldp\n Python tools for working with taxonomic checklists organised as Catalogue of Life Data Package (COLDP) format\n\n# Overview\npy-coldp is a Python package to facilitate creation, manipulation, editing and serialisation of taxonomic checklists in the [Catalogue of Life Data Package](https://github.com/CatalogueOfLife/coldp ) format.\n\nThe package includes two classes:\n* **COLDP** - A COLDP package loaded as a set of Pandas dataframes\n* **NameBundle** - A helper class to simplify addition of taxon names with sets of associated synonyms to a COLDP instance\n\n# Class: COLDP\nThe main **COLDP** class instantiates a COLDP package in memory as a set of Pandas dataframes. An instance may be initialised from the contents of a folder containing a set of COLDP-compliant CSV or tab-delimited data files or alternatively can be initialised as an empty instance in memory. The class includes many methods for inserting new data, editing existing records and querying the contents of the package. The instance can then be saved as a set of CSV files in a named folder .\n\n# Class: NameBundle\n\nThe **NameBundle** class brings together a scientific name and its synonyms so that these can be added together and the COLDP package can automatically manage their relationships NameBundle objects are normally created using the COLDP.**start_name_bundle()** method. \n\nAt minimum a NameBundle is initialised with a dictionary holding a set of COLDP name record values. The scientific name represented by this dictionary should be the accepted name for a species or other taxon. Synonyms may then be added to the NameBundle. \n\nOnce all names are included, the NameBundle can be added to the COLDP object via the COLDP.**add_names()** method. This adds name, taxon and synonym records for the set of names supplied. COLDP options may expand the set of added synonyms to include variant formats or may trigger the addition of one or taxa that are implicit in the accepted name. \n\nThe COLDP object will automatically manage record identifiers and the basionymID for any name records that are combinations of another name in the set.\n\n# Installation\n```console\npip install py-coldp\n```\n\n# Documentation\n[Browsable documentation for COLDP version: 2024.12.3](https://html-preview.github.io/?url=https://github.com/dhobern/py-coldp/blob/main/docs/build/html/index.html)\n\n[PDF documentation for COLDP version: 2024.12.3](https://github.com/dhobern/py-coldp/blob/main/docs/build/simplepdf/COLDP.pdf)\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) [2024] [Donald Hobern]  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.",
    "summary": "Python tools for working with taxonomic checklists organised as Catalogue of Life Data Package (COLDP) format",
    "version": "2024.12.3",
    "project_urls": {
        "Homepage": "https://github.com/dhobern/py-coldp",
        "Issues": "https://github.com/dhobern/py-coldp/issues"
    },
    "split_keywords": [
        "coldp",
        " catalogue of life",
        " taxonomic checklist"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eccc5cd05870123f1d1be6c9b1708902fb3bcac57d4ce35421dcb778f45fcd6b",
                "md5": "625ca64639fbd162e6e7f7a5caee904d",
                "sha256": "b210ee903a7a66346bef913bba3c87fcf54135b2bd74c29900b1585501a159df"
            },
            "downloads": -1,
            "filename": "coldp-2024.12.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "625ca64639fbd162e6e7f7a5caee904d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 35499,
            "upload_time": "2024-12-28T03:32:41",
            "upload_time_iso_8601": "2024-12-28T03:32:41.683391Z",
            "url": "https://files.pythonhosted.org/packages/ec/cc/5cd05870123f1d1be6c9b1708902fb3bcac57d4ce35421dcb778f45fcd6b/coldp-2024.12.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ca11f42bffbd3358df24077228c06491cf68abc8be25c8b1023aa51c56c6cced",
                "md5": "acbd61955aaaf78fec8a1cc126d1677e",
                "sha256": "d7cd849726443cc8d363206a229bddd8ba00db2a1f707de4666a8b9e44d58476"
            },
            "downloads": -1,
            "filename": "coldp-2024.12.3.tar.gz",
            "has_sig": false,
            "md5_digest": "acbd61955aaaf78fec8a1cc126d1677e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 3419839,
            "upload_time": "2024-12-28T03:32:46",
            "upload_time_iso_8601": "2024-12-28T03:32:46.542874Z",
            "url": "https://files.pythonhosted.org/packages/ca/11/f42bffbd3358df24077228c06491cf68abc8be25c8b1023aa51c56c6cced/coldp-2024.12.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-28 03:32:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dhobern",
    "github_project": "py-coldp",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "coldp"
}
        
Elapsed time: 2.00570s