Python tools for working with taxonomic checklists organised as Catalogue of Life Data Package (COLDP) format
Project description
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 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
pip install py-coldp
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file coldp-2024.6.2.tar.gz
.
File metadata
- Download URL: coldp-2024.6.2.tar.gz
- Upload date:
- Size: 3.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6167cace2885956d7b90a95b84254b27b40a447118250fe488462d5ff0518062 |
|
MD5 | 82c256c26175044bc32ed5718ab91940 |
|
BLAKE2b-256 | 0b4f82fe5195fb695b6f914d64b35d7e3efd4acb1156cebe82a869d7acf3335e |
File details
Details for the file coldp-2024.6.2-py3-none-any.whl
.
File metadata
- Download URL: coldp-2024.6.2-py3-none-any.whl
- Upload date:
- Size: 35.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff0609c45129fa03e10d6e1cedc6fcf94f1e5b11b45d5d15ddfadccd40b18f51 |
|
MD5 | 494b0b59e63813750cf3cda588def1cf |
|
BLAKE2b-256 | 27806fee20037cbfef12b3ce9176a654bd0550c5de1019181dd4d8de8e76c853 |