semvec/pypi-packages huggingface dataset:
pycloud-skywatch 0.2.0
Python library and CLI to detect cloud coverage in satellite imagery
License: Apache-2.0
Requires Python: >=3.7,<4.0
Keywords: satellite,imagery,cloud,coverage,detection,skywatch

# PyCloud

Python library and CLI to detect cloud coverage in satellite imagery.
It is just a binding to the PyCloud API.

# Requirements
Python 3.7+

# Installation

PyCloud is available on PyPI and can be installed with pip :
```bash
pip install pycloud-skywatch
```

# Quickstart

## Command line
```shell
pycloud detect-clouds --image-path '/path/to/a/image.jpg'

+------------------------+--------------------------------------+
| ID                     | 4235e28e-d7a2-4897-a0b3-02184274c67b |
| STATUS                 | complete                             |
| DETAILS                |                                      |
| CLOUD COVER PERCENTAGE | 42.0                                 |
| INPUT URL              | input_url                            |
| OVERLAY URL            | overlay_url                          |
| CLOUD MASK URL         | cloud_mask_url                       |
+------------------------+--------------------------------------+
```

## As Python library

```python
>>> import pycloud

>>> pycloud.detect_clouds(image_path="/path-to-your-image")
{
   "id":"4235e28e-d7a2-4897-a0b3-02184274c67b",
   "status":"complete",
   "results":{
      "cloud_cover_percentage":42.0,
      "input_url":"original_image_url.png",
      "overlay_url":"image_with_cloud_mask_overlay_url.png",
      "cloud_mask_url":"cloud_mask_image_url.png"
   }
}
```