cloudnet-api-client 0.12.11__tar.gz → 0.12.13__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/.github/workflows/test.yml +12 -20
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/.pre-commit-config.yaml +3 -3
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/CHANGELOG.md +9 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/PKG-INFO +6 -4
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/README.md +4 -2
- cloudnet_api_client-0.12.13/cloudnet_api_client/__init__.py +15 -0
- cloudnet_api_client-0.12.13/cloudnet_api_client/client.py +1057 -0
- cloudnet_api_client-0.12.13/cloudnet_api_client/containers.py +342 -0
- cloudnet_api_client-0.12.13/cloudnet_api_client/dl.py +324 -0
- cloudnet_api_client-0.12.13/cloudnet_api_client/utils.py +439 -0
- cloudnet_api_client-0.12.13/cloudnet_api_client/version.py +3 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/pyproject.toml +6 -3
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/tests/test_client.py +78 -6
- cloudnet_api_client-0.12.11/cloudnet_api_client/__init__.py +0 -2
- cloudnet_api_client-0.12.11/cloudnet_api_client/client.py +0 -698
- cloudnet_api_client-0.12.11/cloudnet_api_client/containers.py +0 -159
- cloudnet_api_client-0.12.11/cloudnet_api_client/dl.py +0 -175
- cloudnet_api_client-0.12.11/cloudnet_api_client/utils.py +0 -30
- cloudnet_api_client-0.12.11/cloudnet_api_client/version.py +0 -1
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/.github/dataportal.env +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/.github/db.env +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/.github/docker-compose.yml +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/.github/initdb.d/init-dbs.sh +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/.github/ss.env +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/.github/workflows/publish.yml +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/.gitignore +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/LICENSE +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/cloudnet_api_client/py.typed +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/tests/data/20140205_hyytiala_classification.nc +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/tests/data/20250711_kenttarova_l3-cf_ecmwf.nc +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/tests/data/20250711_kenttarova_l3-cf_era5-1-12.nc +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/tests/data/20250711_kenttarova_l3-cf_era5-7-18.nc +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/tests/data/20250801_Magurele_CHM170137_000.nc +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/tests/data/20250803_JOYCE_WST_01m.dat +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/tests/data/20250808_Granada_CHM170119_0045_000.nc +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/tests/data/20250808_hyytiala_iwc-Z-T-method.nc +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/tests/data/20250814_bucharest_classification.nc +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/tests/data/20250821_limassol_parsivel_41582c49.nc +0 -0
- {cloudnet_api_client-0.12.11 → cloudnet_api_client-0.12.13}/tests/data/20250822_leipzig-lim_ecmwf-open.nc +0 -0
|
@@ -2,30 +2,27 @@ name: Test and lint
|
|
|
2
2
|
|
|
3
3
|
on: [push, pull_request]
|
|
4
4
|
|
|
5
|
+
concurrency:
|
|
6
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
7
|
+
cancel-in-progress: true
|
|
8
|
+
|
|
5
9
|
jobs:
|
|
6
10
|
test:
|
|
7
11
|
timeout-minutes: 5
|
|
8
12
|
strategy:
|
|
9
13
|
matrix:
|
|
10
|
-
python-version: ["3.10", "3.
|
|
14
|
+
python-version: ["3.10", "3.14"]
|
|
11
15
|
runs-on: ubuntu-latest
|
|
12
16
|
steps:
|
|
13
|
-
- name: Set up Python
|
|
14
|
-
uses: actions/setup-python@v6
|
|
15
|
-
with:
|
|
16
|
-
python-version: ${{ matrix.python-version }}
|
|
17
|
-
|
|
18
17
|
- name: Checkout code
|
|
19
18
|
uses: actions/checkout@v6
|
|
20
19
|
|
|
21
|
-
- name:
|
|
22
|
-
uses: actions/
|
|
20
|
+
- name: Set up Python
|
|
21
|
+
uses: actions/setup-python@v6
|
|
23
22
|
with:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
${{ runner.os }}-pip-${{ matrix.python-version }}-
|
|
28
|
-
${{ runner.os }}-pip-
|
|
23
|
+
python-version: ${{ matrix.python-version }}
|
|
24
|
+
cache: pip
|
|
25
|
+
cache-dependency-path: pyproject.toml
|
|
29
26
|
|
|
30
27
|
- name: Checkout fixtures
|
|
31
28
|
uses: actions/checkout@v6
|
|
@@ -41,19 +38,14 @@ jobs:
|
|
|
41
38
|
repository: actris-cloudnet/dataportal-fixtures
|
|
42
39
|
path: dataportal-fixtures
|
|
43
40
|
|
|
44
|
-
- name: Set up Docker Buildx
|
|
45
|
-
uses: docker/setup-buildx-action@v4
|
|
46
|
-
|
|
47
41
|
- name: Start dataportal
|
|
48
42
|
run: docker compose -f .github/docker-compose.yml up -d --wait
|
|
49
43
|
|
|
50
44
|
- name: Install dependencies
|
|
51
|
-
run:
|
|
52
|
-
pip install --upgrade pip
|
|
53
|
-
pip install .[dev,test]
|
|
45
|
+
run: pip install .[dev,test]
|
|
54
46
|
|
|
55
47
|
- name: Run pre-commit checks
|
|
56
|
-
if: matrix.python-version == '3.
|
|
48
|
+
if: matrix.python-version == '3.14'
|
|
57
49
|
run: pre-commit run --all-files --show-diff-on-failure
|
|
58
50
|
|
|
59
51
|
- name: Run tests
|
|
@@ -13,7 +13,7 @@ repos:
|
|
|
13
13
|
args: ["--fix", "lf"]
|
|
14
14
|
- id: trailing-whitespace
|
|
15
15
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
16
|
-
rev: v0.
|
|
16
|
+
rev: v0.17.3
|
|
17
17
|
hooks:
|
|
18
18
|
- id: ruff
|
|
19
19
|
args: ["--fix"]
|
|
@@ -31,10 +31,10 @@ repos:
|
|
|
31
31
|
hooks:
|
|
32
32
|
- id: prettier
|
|
33
33
|
- repo: https://github.com/pappasam/toml-sort
|
|
34
|
-
rev: v0.
|
|
34
|
+
rev: v0.25.0
|
|
35
35
|
hooks:
|
|
36
36
|
- id: toml-sort-fix
|
|
37
37
|
- repo: https://github.com/crate-ci/typos
|
|
38
|
-
rev: v1.
|
|
38
|
+
rev: v1.51.1
|
|
39
39
|
hooks:
|
|
40
40
|
- id: typos
|
|
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 0.12.13 – 2026-10-28
|
|
9
|
+
|
|
10
|
+
- Verify checksum on file download
|
|
11
|
+
- Test with Python 3.14
|
|
12
|
+
|
|
13
|
+
## 0.12.12 – 2026-09-15
|
|
14
|
+
|
|
15
|
+
- Add labelling_status to Site
|
|
16
|
+
|
|
8
17
|
## 0.12.11 – 2026-06-17
|
|
9
18
|
|
|
10
19
|
- Add model_id filtering to files() query
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: cloudnet-api-client
|
|
3
|
-
Version: 0.12.
|
|
3
|
+
Version: 0.12.13
|
|
4
4
|
Summary: Cloudnet API client
|
|
5
5
|
Author-email: Simo Tukiainen <simo.tukiainen@fmi.fi>
|
|
6
6
|
License-File: LICENSE
|
|
@@ -64,7 +64,9 @@ file = client.file("405cc410-1f24-4ea9-bae8-da7f22be26cb")
|
|
|
64
64
|
files = client.files(site_id="hyytiala", date="2021-01-01", product_id=["mwr", "radar"])
|
|
65
65
|
file_paths = client.download(files, "data/")
|
|
66
66
|
|
|
67
|
-
raw_files = client.raw_files(
|
|
67
|
+
raw_files = client.raw_files(
|
|
68
|
+
site_id="granada", date="2024-01", instrument_id="parsivel"
|
|
69
|
+
)
|
|
68
70
|
file_paths = client.download(raw_files, "data_raw/")
|
|
69
71
|
```
|
|
70
72
|
|
|
@@ -127,7 +129,7 @@ Both methods return a list of `dataclass` instances, `ProductMetadata` and `RawM
|
|
|
127
129
|
|
|
128
130
|
### `APIClient().filter(list[Metadata])` → `list[Metadata]`
|
|
129
131
|
|
|
130
|
-
Additional filtering of fetched metadata.
|
|
132
|
+
Additional filtering of fetched metadata which are not supported natively by the Cloudnet API.
|
|
131
133
|
|
|
132
134
|
Parameters:
|
|
133
135
|
|
|
@@ -35,7 +35,9 @@ file = client.file("405cc410-1f24-4ea9-bae8-da7f22be26cb")
|
|
|
35
35
|
files = client.files(site_id="hyytiala", date="2021-01-01", product_id=["mwr", "radar"])
|
|
36
36
|
file_paths = client.download(files, "data/")
|
|
37
37
|
|
|
38
|
-
raw_files = client.raw_files(
|
|
38
|
+
raw_files = client.raw_files(
|
|
39
|
+
site_id="granada", date="2024-01", instrument_id="parsivel"
|
|
40
|
+
)
|
|
39
41
|
file_paths = client.download(raw_files, "data_raw/")
|
|
40
42
|
```
|
|
41
43
|
|
|
@@ -98,7 +100,7 @@ Both methods return a list of `dataclass` instances, `ProductMetadata` and `RawM
|
|
|
98
100
|
|
|
99
101
|
### `APIClient().filter(list[Metadata])` → `list[Metadata]`
|
|
100
102
|
|
|
101
|
-
Additional filtering of fetched metadata.
|
|
103
|
+
Additional filtering of fetched metadata which are not supported natively by the Cloudnet API.
|
|
102
104
|
|
|
103
105
|
Parameters:
|
|
104
106
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Cloudnet API client package.
|
|
2
|
+
|
|
3
|
+
This package provides a Python client for interacting with the Cloudnet data portal API.
|
|
4
|
+
It includes functionality for fetching sites, products, instruments, models, and
|
|
5
|
+
file metadata, as well as downloading files.
|
|
6
|
+
|
|
7
|
+
Main classes:
|
|
8
|
+
APIClient: The main client class for interacting with the Cloudnet API.
|
|
9
|
+
|
|
10
|
+
Exceptions:
|
|
11
|
+
CloudnetAPIError: Exception raised for errors from the Cloudnet API.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
from .client import APIClient as APIClient
|
|
15
|
+
from .utils import CloudnetAPIError as CloudnetAPIError
|