Skip to main content

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

Browsable documentation for COLDP version: 2025.1.1

PDF documentation for COLDP version: 2025.1.1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coldp-2025.1.1.tar.gz (738.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coldp-2025.1.1-py3-none-any.whl (35.5 kB view details)

Uploaded Python 3

File details

Details for the file coldp-2025.1.1.tar.gz.

File metadata

  • Download URL: coldp-2025.1.1.tar.gz
  • Upload date:
  • Size: 738.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for coldp-2025.1.1.tar.gz
Algorithm Hash digest
SHA256 a73402f6a50d00102133dbdac1ba7f386126914c91d83648f3fec83ed4e70680
MD5 fa934585db8984a5cdeb45cfc8546abd
BLAKE2b-256 01f9d87145b99cf38b4bb6256c9f4f95e7c5d4cc6a14e170693027ba41a778e6

See more details on using hashes here.

File details

Details for the file coldp-2025.1.1-py3-none-any.whl.

File metadata

  • Download URL: coldp-2025.1.1-py3-none-any.whl
  • Upload date:
  • Size: 35.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for coldp-2025.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ffe75c879e05e0fe1d5f9d10dc1aca35f001e5c60d227c96ed6105151cea4d3f
MD5 2177f9618a95ae6073725a87e6019b49
BLAKE2b-256 2c6d9d96319ce8485c49a1206989e7b17e93618cb066c9a0497ac8b201402186

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page