From 56eeede5895b66e78df4a67a791b0fba47c9f7a3 Mon Sep 17 00:00:00 2001 From: Hugo_Fournier Date: Mon, 3 Mar 2025 08:48:43 +0000 Subject: [PATCH] v0.1.2 --- .gitignore | 1 + README.md | 2 +- pygeodes/_info.py | 2 +- pygeodes/cli/cli.py | 2 +- pyproject.toml | 2 +- tests/test_env/dataframe.json | 145 ++++++++++++++++++++++++++++ tests/test_env/pygeodes-config.json | 2 +- 7 files changed, 151 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 08003f8..c5e96fd 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ poetry.lock pygeodes/data/profile.json dist/* tests/test_env/download_dir/ +*.pyc \ No newline at end of file diff --git a/README.md b/README.md index d7edf7d..79d50b0 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ To see the docs, please go to [https://CNES.github.io/pyGeodes/](https://cnes.gi ### From PyPi -You can install from PyPi by following those steps : +You can install from PyPi by following those steps: 1. Install pygeodes diff --git a/pygeodes/_info.py b/pygeodes/_info.py index 69ae285..7964ec5 100644 --- a/pygeodes/_info.py +++ b/pygeodes/_info.py @@ -1,4 +1,4 @@ -version = "0.1.1" +version = "0.1.2" name = "pygeodes" description = "A Python client for Geodes APIs" author = "CNES 2024" diff --git a/pygeodes/cli/cli.py b/pygeodes/cli/cli.py index 2161803..4ee4bdb 100644 --- a/pygeodes/cli/cli.py +++ b/pygeodes/cli/cli.py @@ -120,7 +120,7 @@ def search(args): query=query_dict, bbox=args.bbox, get_all=get_all, - collections=args.collections.strip().split(","), + collections=args.collections.strip().split(",") if args.collections is not None else None, ) dataframe = format_items(dataframe, {"identifier"}) diff --git a/pyproject.toml b/pyproject.toml index c30724a..f35b4bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pygeodes" -version = "0.1.1" +version = "0.1.2" description = "A Python client for Geodes APIs" authors = ["CNES"] readme = "README.md" diff --git a/tests/test_env/dataframe.json b/tests/test_env/dataframe.json index 4e2bfe7..7fef19a 100644 --- a/tests/test_env/dataframe.json +++ b/tests/test_env/dataframe.json @@ -246,8 +246,13 @@ "id": "1", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -487,8 +492,13 @@ "id": "2", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -728,8 +738,13 @@ "id": "3", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -969,8 +984,13 @@ "id": "4", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -1210,8 +1230,13 @@ "id": "5", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -1451,8 +1476,13 @@ "id": "6", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -1692,8 +1722,13 @@ "id": "7", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -1933,8 +1968,13 @@ "id": "8", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -2174,8 +2214,13 @@ "id": "9", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -2415,8 +2460,13 @@ "id": "10", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -2656,8 +2706,13 @@ "id": "11", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -2897,8 +2952,13 @@ "id": "12", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -3138,8 +3198,13 @@ "id": "13", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -3379,8 +3444,13 @@ "id": "14", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -3620,8 +3690,13 @@ "id": "15", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -3861,8 +3936,13 @@ "id": "16", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -4102,8 +4182,13 @@ "id": "17", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -4343,8 +4428,13 @@ "id": "18", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -4584,8 +4674,13 @@ "id": "19", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -4825,8 +4920,13 @@ "id": "20", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -5066,8 +5166,13 @@ "id": "21", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -5307,8 +5412,13 @@ "id": "22", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -5548,8 +5658,13 @@ "id": "23", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -5789,8 +5904,13 @@ "id": "24", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -6030,8 +6150,13 @@ "id": "25", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -6271,8 +6396,13 @@ "id": "26", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -6512,8 +6642,13 @@ "id": "27", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -6753,8 +6888,13 @@ "id": "28", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", @@ -6994,6 +7134,10 @@ "id": "29", "type": "Feature", "properties": { +<<<<<<< HEAD + "collection": "PEPS_S1_L1", + "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", +======= "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", "item": { @@ -13021,6 +13165,7 @@ "properties": { "id": "URN:FEATURE:DATA:gdh:90c240ef-4d27-3ba7-a763-04486761d585:V1", "collection": "PEPS_S1_L1", +>>>>>>> 83deeb697669926f4671f9b0e71a9123ae8eba47 "item": { "type": "Feature", "stac_version": "1.0.0", diff --git a/tests/test_env/pygeodes-config.json b/tests/test_env/pygeodes-config.json index 1bb4f59..92e2b84 100644 --- a/tests/test_env/pygeodes-config.json +++ b/tests/test_env/pygeodes-config.json @@ -1,7 +1,7 @@ { "api_key": null, "logging_level": "INFO", - "download_dir": "/home/ad/charlesl/Desktop/production/pygeodes/pygeodes/tests/test_env", + "download_dir": "./pygeodes/tests/test_env", "checksum_error": true, "use_async_requests": true, "aws_access_key_id": null,