Name | Paidiverpy JSON |
Version |
0.1.1
JSON |
| download |
home_page | None |
Summary | A library to preprocess image data. |
upload_time | 2025-02-12 18:05:02 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2024 Tobias Ferreira
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
|
keywords |
data
paidiver
noc
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
[![DOI][zenodo-badge]][zenodo-link]
[![Documentation][rtd-badge]][rtd-link]
[![Pypi][pip-badge]][pip-link]
[zenodo-badge]: https://zenodo.org/badge/DOI/10.5281/zenodo.14644007.svg
[zenodo-link]: https://doi.org/10.5281/zenodo.14644007
[rtd-badge]: https://img.shields.io/readthedocs/paidiverpy?logo=readthedocs
[rtd-link]: https://paidiverpy.readthedocs.io/en/latest/?badge=latest
[pip-badge]: https://img.shields.io/pypi/v/paidiverpy
[pip-link]: https://pypi.org/project/paidiverpy/

**Paidiverpy** is a Python package designed to create pipelines for preprocessing image data for biodiversity analysis.
> **Note:** 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/
> **Note:** Comprehensive documentation is under construction.
## Installation
To install paidiverpy, run:
```bash
pip install paidiverpy
```
### Build from Source
You can install `paidiverpy` locally or on a notebook server such as JASMIN or the NOC Data Science Platform (DSP). The following steps are applicable to both environments, but steps 2 and 3 are required if you are using a notebook server.
1. Clone the repository:
```bash
# ssh
git clone git@github.com:paidiver/paidiverpy.git
# 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`:
```bash
conda init
# Command to restart the terminal. This command may not be necessary if mamba init has already been successfully run before
exec bash
conda env create -f environment.yml
conda activate Paidiverpy
```
3. (Optional) For JASMIN or DSP users, you also need to install the environment in the Jupyter IPython kernel. Execute the following command:
```bash
python -m ipykernel install --user --name Paidiverpy
```
4. Install the paidiverpy package:
Finally, you can install the paidiverpy package:
```bash
pip install -e .
```
## Package Organisation
### Configuration File
First, create a configuration file. Example configuration files for processing the sample datasets are available in the `example/config` directory. You can use these files to test the example notebooks described in the [Usage section](#usage). Note that running the examples will automatically download the sample data.
The configuration file should follow the JSON schema described in the [configuration file schema](src/paidiverpy/configuration-schema.json). An online tool to validate configuration files is available [here](https://paidiver.github.io/paidiverpy/config_check.html).
### Metadata
To use this package, you may need a metadata file, which can be an IFDO.json file (following the IFDO standard) or a CSV file. For CSV files, ensure the `filename` column uses one of the following headers: `['image-filename', 'filename', 'file_name', 'FileName', 'File Name']`.
Other columns like datetime, latitude, and longitude should follow these conventions:
- Datetime: `['image-datetime', 'datetime', 'date_time', 'DateTime', 'Datetime']`
- Latitude: `['image-latitude', 'lat', 'latitude_deg', 'latitude', 'Latitude', 'Latitude_deg', 'Lat']`
- Longitude: `['image-longitude', 'lon', 'longitude_deg', 'longitude', 'Longitude', 'Longitude_deg', 'Lon']`
Examples of CSV and IFDO metadata files are in the `example/metadata` directory.
### Layers
The package is organised into multiple layers:

The `Paidiverpy` class serves as the main container for image processing functions. It manages several subclasses for specific processing tasks: `OpenLayer`, `ConvertLayer`, `PositionLayer`, `ResampleLayer`, and `ColourLayer`.
Supporting classes include:
- `Configuration`: Parses and manages configuration files.
- `Metadata`: Handles metadata.
- `ImagesLayer`: Stores outputs from each image processing step.
The `Pipeline` class integrates all processing steps defined in the configuration file.
## Usage
While comprehensive documentation is forthcoming, you can explore various use cases through sample notebooks in the `examples/example_notebooks` directory:
- [Open and display a configuration file and a metadata file](examples/example_notebooks/config_metadata_example.ipynb)
- [Run processing steps without creating a pipeline](examples/example_notebooks/simple_processing.ipynb)
- [Run a pipeline and interact with outputs](examples/example_notebooks/pipeline.ipynb)
- [Run pipeline steps in test mode](examples/example_notebooks/pipeline_testing_steps.ipynb)
- [Create pipelines programmatically](examples/example_notebooks/pipeline_generation.ipynb)
- [Rerun pipeline steps with modified configurations](examples/example_notebooks/pipeline_interaction.ipynb)
- [Use parallelization with Dask](examples/example_notebooks/pipeline_dask.ipynb)
- [Create a LocalCluster and run a pipeline](examples/example_notebooks/pipeline_cluster.ipynb)
- [Run a pipeline using a public dataset with IFDO metadata](examples/example_notebooks/pipeline_ifdo.ipynb)
- [Run a pipeline using a data on a object store](examples/example_notebooks/pipeline_remote_data.ipynb)
- [Add a custom algorithm to a pipeline](examples/example_notebooks/pipeline_custom_algorithm.ipynb)
### Example Data
If you'd like to manually download example data for testing, you can use the following command:
```python
from paidiverpy import data
data.load(DATASET_NAME)
```
Available datasets:
- pelagic_csv
- benthic_csv
- benthic_ifdo
Example data will be automatically downloaded when running the example notebooks.
### Command-Line Arguments
Pipelines can be executed via command-line arguments. For example:
```bash
paidiverpy -c examples/config_files/config_simple.yaml
```
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 either building the container locally or pulling a pre-built image from **GitHub Container Registry (GHCR)** or **Docker Hub**.
### Build or Pull the Docker Image
You have three options to obtain the Paidiverpy Docker image:
#### **Option 1: Build the container locally**
Clone the repository and build the image:
```bash
git clone git@github.com:paidiver/paidiverpy.git
cd paidiverpy
docker build -t paidiverpy .
```
#### **Option 2: Pull from Docker Hub**
Fetch the latest image from Docker Hub:
```bash
docker pull soutobias/paidiverpy:latest
docker tag soutobias/paidiverpy:latest paidiverpy:latest
```
#### **Option 3: Pull from GitHub Container Registry (GHCR)**
Fetch the latest image from GitHub:
```bash
docker pull ghcr.io/paidiver/paidiverpy:latest
docker tag ghcr.io/paidiver/paidiverpy:latest paidiverpy:latest
```
### Running the Container
To run the container with local input, output, and metadata directories, use the following command:
```bash
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>
```
#### **Arguments Explained**
- `<INPUT_PATH>`: Local directory containing input images (as defined in the configuration file).
- `<OUTPUT_PATH>`: Local directory where processed images will be saved.
- `<METADATA_PATH>`: Local directory containing the metadata file.
- `<CONFIG_DIR>`: Local directory containing the configuration file.
- `<CONFIG_FILE>`: Name of the configuration file.
The processed images will be saved in the `output_path` specified in the configuration file.
### Running with Remote Data (Object Store)
If your input data is stored remotely (e.g., in an object store), you **do not** need to mount local volumes for input data. However, to upload processed images to an object store, you must provide authentication credentials via an environment file.
Use the following command:
```bash
docker run --rm \
-v <CONFIG_DIR>:/app/config_files/ \
--env-file .env \
paidiverpy -c /app/examples/config_files/<CONFIG_FILE>
```
#### **Environment File (`.env`)**
Create a `.env` file with your object store credentials:
```bash
OS_SECRET=your_secret
OS_TOKEN=your_token
OS_ENDPOINT=your_endpoint
```
This will allow Paidiverpy to authenticate and interact with the remote storage system.
Raw data
{
"_id": null,
"home_page": null,
"name": "Paidiverpy",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "Tobias Ferreira <tobias.ferreira@noc.ac.uk>",
"keywords": "data, paidiver, noc",
"author": null,
"author_email": "Tobias Ferreira <tobias.ferreira@noc.ac.uk>, Mojtaba Masoudi <mojtaba.masoudi@noc.ac.uk>, Van Lo\u00efc Audenhaege <loic.audenhaege@noc.ac.uk>, Erik Orenstein <erik.orenstein@noc.ac.uk>, Colin Sauze <colin.sauze@noc.ac.uk>, Jennifer Durden <jennifer.durden@noc.ac.uk>",
"download_url": "https://files.pythonhosted.org/packages/3a/e2/12d07f98579eee5f1adeb81f250dc1fbd535704790bc8a4c44678301d32c/paidiverpy-0.1.1.tar.gz",
"platform": null,
"description": "[![DOI][zenodo-badge]][zenodo-link]\n[![Documentation][rtd-badge]][rtd-link]\n[![Pypi][pip-badge]][pip-link]\n\n[zenodo-badge]: https://zenodo.org/badge/DOI/10.5281/zenodo.14644007.svg\n[zenodo-link]: https://doi.org/10.5281/zenodo.14644007\n[rtd-badge]: https://img.shields.io/readthedocs/paidiverpy?logo=readthedocs\n[rtd-link]: https://paidiverpy.readthedocs.io/en/latest/?badge=latest\n[pip-badge]: https://img.shields.io/pypi/v/paidiverpy\n[pip-link]: https://pypi.org/project/paidiverpy/\n\n\n\n\n**Paidiverpy** is a Python package designed to create pipelines for preprocessing image data for biodiversity analysis.\n\n> **Note:** 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.\n\n\n## Documentation\n\nThe official documentation is hosted on ReadTheDocs.org: https://paidiverpy.readthedocs.io/\n\n> **Note:** Comprehensive documentation is under construction.\n\n## Installation\n\nTo install paidiverpy, run:\n\n ```bash\npip install paidiverpy\n ```\n\n### Build from Source\n\nYou can install `paidiverpy` locally or on a notebook server such as JASMIN or the NOC Data Science Platform (DSP). The following steps are applicable to both environments, but steps 2 and 3 are required if you are using a notebook server.\n\n1. Clone the repository:\n\n ```bash\n # ssh\n git clone git@github.com:paidiver/paidiverpy.git\n\n # https\n # git clone https://github.com/paidiver/paidiverpy.git\n\n cd paidiverpy\n ```\n\n2. (Optional) Create a Python virtual environment to manage dependencies separately from other projects. For example, using `conda`:\n\n ```bash\n conda init\n\n # Command to restart the terminal. This command may not be necessary if mamba init has already been successfully run before\n exec bash\n\n conda env create -f environment.yml\n conda activate Paidiverpy\n ```\n\n3. (Optional) For JASMIN or DSP users, you also need to install the environment in the Jupyter IPython kernel. Execute the following command:\n\n ```bash\n python -m ipykernel install --user --name Paidiverpy\n ```\n\n4. Install the paidiverpy package:\n\n Finally, you can install the paidiverpy package:\n\n ```bash\n pip install -e .\n ```\n\n## Package Organisation\n\n### Configuration File\n\nFirst, create a configuration file. Example configuration files for processing the sample datasets are available in the `example/config` directory. You can use these files to test the example notebooks described in the [Usage section](#usage). Note that running the examples will automatically download the sample data.\n\nThe configuration file should follow the JSON schema described in the [configuration file schema](src/paidiverpy/configuration-schema.json). An online tool to validate configuration files is available [here](https://paidiver.github.io/paidiverpy/config_check.html).\n\n### Metadata\n\nTo use this package, you may need a metadata file, which can be an IFDO.json file (following the IFDO standard) or a CSV file. For CSV files, ensure the `filename` column uses one of the following headers: `['image-filename', 'filename', 'file_name', 'FileName', 'File Name']`.\n\nOther columns like datetime, latitude, and longitude should follow these conventions:\n\n- Datetime: `['image-datetime', 'datetime', 'date_time', 'DateTime', 'Datetime']`\n- Latitude: `['image-latitude', 'lat', 'latitude_deg', 'latitude', 'Latitude', 'Latitude_deg', 'Lat']`\n- Longitude: `['image-longitude', 'lon', 'longitude_deg', 'longitude', 'Longitude', 'Longitude_deg', 'Lon']`\n\nExamples of CSV and IFDO metadata files are in the `example/metadata` directory.\n\n### Layers\n\nThe package is organised into multiple layers:\n\n\n\nThe `Paidiverpy` class serves as the main container for image processing functions. It manages several subclasses for specific processing tasks: `OpenLayer`, `ConvertLayer`, `PositionLayer`, `ResampleLayer`, and `ColourLayer`.\n\nSupporting classes include:\n\n- `Configuration`: Parses and manages configuration files.\n- `Metadata`: Handles metadata.\n- `ImagesLayer`: Stores outputs from each image processing step.\n\nThe `Pipeline` class integrates all processing steps defined in the configuration file.\n\n## Usage\n\nWhile comprehensive documentation is forthcoming, you can explore various use cases through sample notebooks in the `examples/example_notebooks` directory:\n\n- [Open and display a configuration file and a metadata file](examples/example_notebooks/config_metadata_example.ipynb)\n- [Run processing steps without creating a pipeline](examples/example_notebooks/simple_processing.ipynb)\n- [Run a pipeline and interact with outputs](examples/example_notebooks/pipeline.ipynb)\n- [Run pipeline steps in test mode](examples/example_notebooks/pipeline_testing_steps.ipynb)\n- [Create pipelines programmatically](examples/example_notebooks/pipeline_generation.ipynb)\n- [Rerun pipeline steps with modified configurations](examples/example_notebooks/pipeline_interaction.ipynb)\n- [Use parallelization with Dask](examples/example_notebooks/pipeline_dask.ipynb)\n- [Create a LocalCluster and run a pipeline](examples/example_notebooks/pipeline_cluster.ipynb)\n- [Run a pipeline using a public dataset with IFDO metadata](examples/example_notebooks/pipeline_ifdo.ipynb)\n- [Run a pipeline using a data on a object store](examples/example_notebooks/pipeline_remote_data.ipynb)\n- [Add a custom algorithm to a pipeline](examples/example_notebooks/pipeline_custom_algorithm.ipynb)\n\n### Example Data\n\nIf you'd like to manually download example data for testing, you can use the following command:\n\n```python\nfrom paidiverpy import data\ndata.load(DATASET_NAME)\n```\n\nAvailable datasets:\n\n- pelagic_csv\n- benthic_csv\n- benthic_ifdo\n\nExample data will be automatically downloaded when running the example notebooks.\n\n### Command-Line Arguments\n\nPipelines can be executed via command-line arguments. For example:\n\n```bash\npaidiverpy -c examples/config_files/config_simple.yaml\n```\n\nThis runs the pipeline according to the configuration file, saving output images to the directory defined in the `output_path`.\n\n## Docker\n\nYou can run **Paidiverpy** using Docker by either building the container locally or pulling a pre-built image from **GitHub Container Registry (GHCR)** or **Docker Hub**.\n\n### Build or Pull the Docker Image\n\nYou have three options to obtain the Paidiverpy Docker image:\n\n#### **Option 1: Build the container locally**\nClone the repository and build the image:\n\n```bash\ngit clone git@github.com:paidiver/paidiverpy.git\ncd paidiverpy\ndocker build -t paidiverpy .\n```\n\n#### **Option 2: Pull from Docker Hub**\nFetch the latest image from Docker Hub:\n\n```bash\ndocker pull soutobias/paidiverpy:latest\ndocker tag soutobias/paidiverpy:latest paidiverpy:latest\n```\n\n#### **Option 3: Pull from GitHub Container Registry (GHCR)**\nFetch the latest image from GitHub:\n\n```bash\ndocker pull ghcr.io/paidiver/paidiverpy:latest\ndocker tag ghcr.io/paidiver/paidiverpy:latest paidiverpy:latest\n```\n\n### Running the Container\n\nTo run the container with local input, output, and metadata directories, use the following command:\n\n```bash\ndocker run --rm \\\n -v <INPUT_PATH>:/app/input/ \\\n -v <OUTPUT_PATH>:/app/output/ \\\n -v <METADATA_PATH>:/app/metadata/ \\\n -v <CONFIG_DIR>:/app/config_files/ \\\n paidiverpy -c /app/examples/config_files/<CONFIG_FILE>\n```\n\n#### **Arguments Explained**\n- `<INPUT_PATH>`: Local directory containing input images (as defined in the configuration file).\n- `<OUTPUT_PATH>`: Local directory where processed images will be saved.\n- `<METADATA_PATH>`: Local directory containing the metadata file.\n- `<CONFIG_DIR>`: Local directory containing the configuration file.\n- `<CONFIG_FILE>`: Name of the configuration file.\n\nThe processed images will be saved in the `output_path` specified in the configuration file.\n\n### Running with Remote Data (Object Store)\n\nIf your input data is stored remotely (e.g., in an object store), you **do not** need to mount local volumes for input data. However, to upload processed images to an object store, you must provide authentication credentials via an environment file.\n\nUse the following command:\n\n```bash\ndocker run --rm \\\n -v <CONFIG_DIR>:/app/config_files/ \\\n --env-file .env \\\n paidiverpy -c /app/examples/config_files/<CONFIG_FILE>\n```\n\n#### **Environment File (`.env`)**\nCreate a `.env` file with your object store credentials:\n\n```bash\nOS_SECRET=your_secret\nOS_TOKEN=your_token\nOS_ENDPOINT=your_endpoint\n```\n\nThis will allow Paidiverpy to authenticate and interact with the remote storage system.\n",
"bugtrack_url": null,
"license": "Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n \n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n \n 1. Definitions.\n \n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n \n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n \n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n \n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n \n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n \n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n \n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n \n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n \n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n \n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n \n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n \n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n \n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n \n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n \n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n \n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n \n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n \n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n \n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n \n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n \n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n \n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n \n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n \n END OF TERMS AND CONDITIONS\n \n APPENDIX: How to apply the Apache License to your work.\n \n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"{}\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n \n Copyright 2024 Tobias Ferreira\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n ",
"summary": "A library to preprocess image data.",
"version": "0.1.1",
"project_urls": {
"Changelog": "https://github.com/paidiver/paidiverpy/CHANGELOG.md",
"Issues": "https://github.com/paidiver/paidiverpy/issues",
"ReadTheDocs": "https://paidiverpy.readthedocs.io",
"Repository": "https://github.com/paidiver/paidiverpy"
},
"split_keywords": [
"data",
" paidiver",
" noc"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "e4e48158710db25011c68aed312ca6c2a003192a85ffdc5f3d59f2a8361fcd3f",
"md5": "5106739b5107d90907709acf08ec55d4",
"sha256": "d4453fae86264ba426aaa059bfa38fdabb4b5dd5ef0504e41b14f45518afe616"
},
"downloads": -1,
"filename": "Paidiverpy-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5106739b5107d90907709acf08ec55d4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 76167,
"upload_time": "2025-02-12T18:04:59",
"upload_time_iso_8601": "2025-02-12T18:04:59.495427Z",
"url": "https://files.pythonhosted.org/packages/e4/e4/8158710db25011c68aed312ca6c2a003192a85ffdc5f3d59f2a8361fcd3f/Paidiverpy-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "3ae212d07f98579eee5f1adeb81f250dc1fbd535704790bc8a4c44678301d32c",
"md5": "ee4f45ed3299d26aac69ad6bf9a1ac9c",
"sha256": "05ee8fe064e3d787eb59244dd4af7ee8d275db1c2184334a72366d5531016eed"
},
"downloads": -1,
"filename": "paidiverpy-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "ee4f45ed3299d26aac69ad6bf9a1ac9c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 23452274,
"upload_time": "2025-02-12T18:05:02",
"upload_time_iso_8601": "2025-02-12T18:05:02.709976Z",
"url": "https://files.pythonhosted.org/packages/3a/e2/12d07f98579eee5f1adeb81f250dc1fbd535704790bc8a4c44678301d32c/paidiverpy-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-12 18:05:02",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "paidiver",
"github_project": "paidiverpy",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "paidiverpy"
}