Skip to main content
Paidiverpy

lifecycle License Documentation DOIlink Pypi covlink

Paidiverpy is a Python package designed to create pipelines for preprocessing image data for biodiversity analysis.

IMPORTANT: This package is still in active development, and frequent updates and changes are expected. The API and features may evolve as we continue improving it.

Documentation

The official documentation is hosted on ReadTheDocs.org: https://paidiverpy.readthedocs.io/

IMPORTANT: Comprehensive documentation is under construction.

Installation

To install paidiverpy, run:

pip install paidiverpy

Build from Source

  1. Clone the repository:

    # https
    git clone https://github.com/paidiver/paidiverpy.git
    cd paidiverpy
  2. (Optional) Create a Python virtual environment to manage dependencies separately from other projects. For example, using conda:

    conda env create -f environment.yml
    conda activate Paidiverpy
  3. Install the paidiverpy package:

    pip install -e .

Usage

You can run your preprocessing pipeline using Paidiverpy in several ways, typically requiring just one to three lines of code:

Python Package

Install the package and utilize it in your Python scripts.

# Import the Pipeline class
from paidiverpy.pipeline import Pipeline

# Instantiate the Pipeline class with the configuration file path
# Please refer to the documentation for the configuration file format
pipeline = Pipeline(config_file_path="../examples/config_files/config_simple2.yml")

# Run the pipeline
pipeline.run()

You can export the output images to the specified output directory:

pipeline.save_images(image_format="png")

Command Line Interface (CLI)

Pipelines can be executed via command-line arguments. For example:

paidiverpy -c "examples/config_files/config_simple.yml"

This runs the pipeline according to the configuration file, saving output images to the directory defined in the output_path.

Docker

You can run Paidiverpy using Docker by pulling a pre-built image from GitHub Container Registry (GHCR) or Docker Hub.

docker pull ghcr.io/paidiver/paidiverpy:latest
docker tag ghcr.io/paidiver/paidiverpy:latest paidiverpy:latest

To run the container, use the following command:

docker run --rm \
  -v <INPUT_PATH>:/app/input/ \
  -v <OUTPUT_PATH>:/app/output/ \
  -v <METADATA_PATH>:/app/metadata/ \
  -v <CONFIG_DIR>:/app/config_files/ \
  paidiverpy -c /app/examples/config_files/<CONFIG_FILE>

Example Data

If you’d like to manually download example data for testing, you can use the following command:

`python from paidiverpy.utils.data import PaidiverpyData PaidiverpyData().load(DATASET_NAME) `

Available datasets:

  • plankton_csv: Plankton dataset with CSV file metadata

  • benthic_csv: Benthic dataset with CSV file metadata

  • benthic_ifdo: Benthic dataset with IFDO metadata

  • nef_raw: Sample images in Nef format (raw images) with CSV file metadata

  • benthic_raw_images: Benthic dataset in raw format with CSV file metadata

Example data will be automatically downloaded when running the example notebooks.

IMPORTANT: Please check the documentation for more information about Paidiverpy: https://paidiverpy.readthedocs.io/

Contributing to paidiverpy

Want to support or improve paidiverpy? Check out our contribution guide to learn how to get started.

Acknowledgements

This project was supported by the UK Natural Environment Research Council (NERC) through the Tools for automating image analysis for biodiversity monitoring (AIAB) Funding Opportunity, reference code UKRI052.

Metadata

Release files for Paidiverpy 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Paidiverpy 0.4.0
File Size Uploaded Provenance Actions
paidiverpy-0.4.0.tar.gz 23.5 MB With provenance Details for paidiverpy-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Paidiverpy 0.4.0
File Interpreter ABI Platform Actions
paidiverpy-0.4.0-py3-none-any.whl Python 3 none any Details for paidiverpy-0.4.0-py3-none-any.whl

Total release size: 23.7 MB

Release files / paidiverpy-0.4.0.tar.gz

Download URL paidiverpy-0.4.0.tar.gz
Size 23.5 MB
Tags Source
SHA-256 checksum
How to use checksums
726410b624f63b7861cea6d1f0161f5f8d864218650bddb32fc283ba9852d8c3
BLAKE2b-256 checksum
How to use checksums
21690ae893b233a3b4ea9105164b0f8d480d5210006de9d64245ee1fc22a4f11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / paidiverpy-0.4.0-py3-none-any.whl

Download URL paidiverpy-0.4.0-py3-none-any.whl
Size 164.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf8adfa8231f894becd3f70ff56826985b1b57c472cd65cf8cd55bc1b88dccf5
BLAKE2b-256 checksum
How to use checksums
1a77b4d1aff3778f5de8c34051a172015a7054d20e394882247ccadf73d2ca81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for Paidiverpy 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for paidiverpy-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page