From a0eaf03682154109910158b72ead99a7bb1c5d06 Mon Sep 17 00:00:00 2001 From: Ziga Cernigoj Date: Fri, 27 Oct 2023 15:29:05 +0200 Subject: [PATCH] update sentinelhub.py with updates for SH auth --- rest/Pipfile | 2 +- rest/Pipfile.lock | 141 ++++++++++++++++++++++++---------------------- 2 files changed, 76 insertions(+), 67 deletions(-) diff --git a/rest/Pipfile b/rest/Pipfile index 10b8c5c2..d34db6c1 100644 --- a/rest/Pipfile +++ b/rest/Pipfile @@ -25,7 +25,7 @@ requests = "==2.27.1" flask-cors = "==3.0.10" honeycomb-beeline = "==3.2.0" pg-to-evalscript = "==0.2.8" -sentinelhub = "==3.6.3" +sentinelhub = "==3.9.2" isodate = "==0.6.1" pyjwt = {extras = ["crypto"], version = "==2.3.0"} cryptography = "==36.0.1" diff --git a/rest/Pipfile.lock b/rest/Pipfile.lock index 89f85c29..d1e0ce02 100644 --- a/rest/Pipfile.lock +++ b/rest/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "73203f614ce9187603be99b84b2b0507b49e49583d2a1ad0dfff04002fc99427" + "sha256": "805af6fb2e808b97915aeae61bf17a0669a65a0eaa2a486cb27809080a57fe9b" }, "pipfile-spec": 6, "requires": { @@ -446,37 +446,37 @@ }, "netcdf4": { "hashes": [ - "sha256:0050e49889c357ae0a73f96e2b9988f250396689b78142de88a39ac8b1e702aa", - "sha256:08a7efab50d5a4da6227244e544a74f676b732ccdff2b8a4678174c15a3f8dff", - "sha256:0a2cd2e2a9da98f1838e1edfeb011b840a434e04d156052b936ffe49f5298126", - "sha256:1a950b3d8fcffca05e371a4cb64dc76580375588d1fca43b788192f409108ebe", - "sha256:1c2395c53a37717b1047650e1c9de68a3d69542bb25df5c594e1e14e9480bb18", - "sha256:2c5cad50d4e6e5a3b35c76862c58393ddf93baa44de98b6e040ac21896145881", - "sha256:2dcf74f7b15ae6105c09df93af22ad61366a288fbb329fdbe3b9606c56c788f5", - "sha256:3e3efefdb9fc936503e89ff5b40b33f2c96527bae1e9672a2d369c5f7cb30bbd", - "sha256:422077c7303cb17cbe8b9ace965cafda1f9d4c9b035809fc5c87091e7ff4d606", - "sha256:4d6bcdf27fd611eaec891f4281caf5c56bbad6f5fc245ce3e6dd2dc4fc3fad56", - "sha256:541286ce7318033b326da2e4325f08037b561887d5fd25d12c2b0cad74eb1edc", - "sha256:59eba11eac34f9c7bd209121b26954c71ff69a2eb2838d2ac339b39ea60a95c0", - "sha256:6620f7962daff02df2fbcbc8f7af53edf21512bc7f5697d846d424a094f96345", - "sha256:66da6542cbc7a6045cd1d979397dfd5a3f6c880c76d52b8f98bb108c82ee8c6e", - "sha256:695cd0a40df49b4218350686c44e13b3a4671e53ee33faf7439a89940cbccc68", - "sha256:74a3e720a9764d13d669763c1f3c73f3f719ef181dccecad062440eea03f069e", - "sha256:8eff69acdf250ebaf817cc9bbfb457d241f92f989c7f9cca33eb29985c0f9797", - "sha256:b21d47c23edd02ff83160c8ccc1e4d4946a91d454b246e7f63d7a6d63901707c", - "sha256:b368fc185cac7d8890a8cf1016488cd252a144008144d06a615925b09bf8d67e", - "sha256:b599a3b5c0d0e3affa70d7954c2b0c4ab7d7bdb52b0e413c811da9725982de33", - "sha256:c67bc7fafced3f9370fdef6ce7abe235a771bed7ebe534f4ba3c84d9689dae23", - "sha256:c85f77599c61a88d512d6536e181ff1c01fd16f4740367e4f8e5cacb36500293", - "sha256:c99a3d476242d489da26f71e318ddd314723ca766f4db11270863a764b107bc3", - "sha256:e582e6e41b27fc3a3296239afe065941bda60118d585df0ad41603f6f962888e", - "sha256:eb19c51fa090b562be4f87ff736b629ffafc03d7bf1fa10f623f957d49417b4f", - "sha256:f7b4ab3f0cd28a6685031e8b9be00c3047b4256da576c9de540440d013a31cea", - "sha256:f9b7ad3f66d50970fa1bd5509c52bb8a99740c8a79fafa83bfd0bc7348b6ab5a" + "sha256:0187646e3348e7a8cd654617dda65517df138042c94c2fcc6682ff7c8c6654dc", + "sha256:081e9043ac6160989f60570928eabe803c88ce7df1d3f79f2345dc48f68ef752", + "sha256:10d2ac9ae1308ca837d86c6dc304ec455a85bdba0f2175e222844a54589168dc", + "sha256:111357d9e12eb79e8d58bfd91bc6b230d35b17a0ebd8c546d17416e8ceebea49", + "sha256:18255b8b283d32d3900092f29c67e53aa25bd8f0dfe7adde59fe782d865a381c", + "sha256:19e16c63cdd7c0dbffe284a4a65f226ba1026f476f35cbedd099b4792b395f69", + "sha256:1c5fede0b34c0a02a1b9e84116bfb3fcd2f80124a651d4836e72b785d10e2f15", + "sha256:2455e9d35fde067e6a6bdc24aa9d44962235a071cec49904d1589e298c23dcd3", + "sha256:2c210794d96431d92b5992e46ad8a9f97237bf6d6956f8816978a03dc0fa18c3", + "sha256:3aaceea2097d292bad398d9f9b4fe403efa7b1568fcfa6faba9b67b1630027f9", + "sha256:3de5512b9270aa6472e4f3aa2bf895a7364c1d4f8667ce3b82e8232197d4fec8", + "sha256:4609dd62d14798c9524327287091875449d68588c128abb768fc0c76c4a28165", + "sha256:4a8300451d7542d3c4ff1dcccf5fb1c7d44bdd1dc08ec77dab04416caf13cb1f", + "sha256:53050562bac84738bbd121fbbee9593d074579f5d6fdaafcb981abeb5c964225", + "sha256:574d7742ab321e5f9f33b5b1296c4ad4e5c469152c17d4fc453d5070e413e596", + "sha256:824881d0aacfde5bd982d6adedd8574259c85553781e7b83e0ce82b890bfa0ef", + "sha256:938c062382406bca9198b16adddd87c09b00521766b138cdfd11c95546eefeb8", + "sha256:9a63a2be2f80977ac23bb0aa736c565011fd4639097ce0922e01b0dc38015df2", + "sha256:9b47b22dda5b25ba6291f97634d7ac67b0a843f8ae5c9d9d5813c15364f66d0a", + "sha256:9e5edfed673005f47f8d2fbea9c72c382b085dd358ac3c20ca743a563ed7b90e", + "sha256:a1ab5dabac27d25fcc82c52dc29a74a6585e865208cce35f4e285df83d3df0b2", + "sha256:a27db2701feef31201c9b20b04a9579196edc20dfc339ca423c7b81e462d6e14", + "sha256:ad1101d538077152b866782e44458356981526bf2ea9cc07930bf28b589c82a7", + "sha256:b20971a164431f6eca1d24df8aa153db15c2c1b9630e83ccc5cf004e8ac8151d", + "sha256:b994afce2ca4073f6b757385a6c0ffec25ecaae2b8821535b303c7cdbf6de42b", + "sha256:d23b97cbde2bf413fadc4697c5c255a0436511c02f811e127e0fb12f5b882a4c", + "sha256:de4dc973fae9e2bbdf42e094125e423a4c25393172a61958314969b055a38889" ], "index": "pypi", "markers": "python_version >= '3.7'", - "version": "==1.6.4" + "version": "==1.6.5" }, "numcodecs": { "hashes": [ @@ -566,34 +566,34 @@ }, "pandas": { "hashes": [ - "sha256:02304e11582c5d090e5a52aec726f31fe3f42895d6bfc1f28738f9b64b6f0614", - "sha256:0489b0e6aa3d907e909aef92975edae89b1ee1654db5eafb9be633b0124abe97", - "sha256:05674536bd477af36aa2effd4ec8f71b92234ce0cc174de34fd21e2ee99adbc2", - "sha256:25e8474a8eb258e391e30c288eecec565bfed3e026f312b0cbd709a63906b6f8", - "sha256:29deb61de5a8a93bdd033df328441a79fcf8dd3c12d5ed0b41a395eef9cd76f0", - "sha256:366da7b0e540d1b908886d4feb3d951f2f1e572e655c1160f5fde28ad4abb750", - "sha256:3bcad1e6fb34b727b016775bea407311f7721db87e5b409e6542f4546a4951ea", - "sha256:4c3f32fd7c4dccd035f71734df39231ac1a6ff95e8bdab8d891167197b7018d2", - "sha256:4cdb0fab0400c2cb46dafcf1a0fe084c8bb2480a1fa8d81e19d15e12e6d4ded2", - "sha256:4f99bebf19b7e03cf80a4e770a3e65eee9dd4e2679039f542d7c1ace7b7b1daa", - "sha256:58d997dbee0d4b64f3cb881a24f918b5f25dd64ddf31f467bb9b67ae4c63a1e4", - "sha256:75ce97667d06d69396d72be074f0556698c7f662029322027c226fd7a26965cb", - "sha256:84e7e910096416adec68075dc87b986ff202920fb8704e6d9c8c9897fe7332d6", - "sha256:9e2959720b70e106bb1d8b6eadd8ecd7c8e99ccdbe03ee03260877184bb2877d", - "sha256:9e50e72b667415a816ac27dfcfe686dc5a0b02202e06196b943d54c4f9c7693e", - "sha256:a0dbfea0dd3901ad4ce2306575c54348d98499c95be01b8d885a2737fe4d7a98", - "sha256:b407381258a667df49d58a1b637be33e514b07f9285feb27769cedb3ab3d0b3a", - "sha256:b8bd1685556f3374520466998929bade3076aeae77c3e67ada5ed2b90b4de7f0", - "sha256:c1f84c144dee086fe4f04a472b5cd51e680f061adf75c1ae4fc3a9275560f8f4", - "sha256:c747793c4e9dcece7bb20156179529898abf505fe32cb40c4052107a3c620b49", - "sha256:cc1ab6a25da197f03ebe6d8fa17273126120874386b4ac11c1d687df288542dd", - "sha256:dc3657869c7902810f32bd072f0740487f9e030c1a3ab03e0af093db35a9d14e", - "sha256:f5ec7740f9ccb90aec64edd71434711f58ee0ea7f5ed4ac48be11cfa9abf7317", - "sha256:fecb198dc389429be557cde50a2d46da8434a17fe37d7d41ff102e3987fd947b", - "sha256:ffa8f0966de2c22de408d0e322db2faed6f6e74265aa0856f3824813cf124363" + "sha256:021f09c15e1381e202d95d4a21ece8e7f2bf1388b6d7e9cae09dfe27bd2043d1", + "sha256:02954e285e8e2f4006b6f22be6f0df1f1c3c97adbb7ed211c6b483426f20d5c8", + "sha256:08d287b68fd28906a94564f15118a7ca8c242e50ae7f8bd91130c362b2108a81", + "sha256:24057459f19db9ebb02984c6fdd164a970b31a95f38e4a49cf7615b36a1b532c", + "sha256:25c9976c17311388fcd953cb3d0697999b2205333f4e11e669d90ff8d830d429", + "sha256:3223f997b6d2ebf9c010260cf3d889848a93f5d22bb4d14cd32638b3d8bba7ad", + "sha256:3f76280ce8ec216dde336e55b2b82e883401cf466da0fe3be317c03fb8ee7c7d", + "sha256:52867d69a54e71666cd184b04e839cff7dfc8ed0cd6b936995117fdae8790b69", + "sha256:52897edc2774d2779fbeb6880d2cfb305daa0b1a29c16b91f531a18918a6e0f3", + "sha256:5aa6b86802e8cf7716bf4b4b5a3c99b12d34e9c6a9d06dad254447a620437931", + "sha256:5b40c9f494e1f27588c369b9e4a6ca19cd924b3a0e1ef9ef1a8e30a07a438f43", + "sha256:65177d1c519b55e5b7f094c660ed357bb7d86e799686bb71653b8a4803d8ff0d", + "sha256:6ae6ffbd9d614c20d028c7117ee911fc4e266b4dca2065d5c5909e401f8ff683", + "sha256:7ad20d24acf3a0042512b7e8d8fdc2e827126ed519d6bd1ed8e6c14ec8a2c813", + "sha256:83c166b9bb27c1715bed94495d9598a7f02950b4749dba9349c1dd2cbf10729d", + "sha256:851b5afbb0d62f6129ae891b533aa508cc357d5892c240c91933d945fff15731", + "sha256:8d0382645ede2fde352da2a885aac28ec37d38587864c0689b4b2361d17b1d4c", + "sha256:a6cf8fcc8a63d333970b950a7331a30544cf59b1a97baf0a7409e09eafc1ac38", + "sha256:bbd98dcdcd32f408947afdb3f7434fade6edd408c3077bbce7bd840d654d92c6", + "sha256:d594e2ce51b8e0b4074e6644758865dc2bb13fd654450c1eae51201260a539f1", + "sha256:e78507adcc730533619de07bfdd1c62b2918a68cd4419ea386e28abf7f6a1e5c", + "sha256:e7f12b2de0060b0b858cfec0016e7d980ae5bae455a1746bfcc70929100ee633", + "sha256:e90c95abb3285d06f6e4feedafc134306a8eced93cb78e08cf50e224d5ce22e2", + "sha256:eff794eeb7883c5aefb1ed572e7ff533ae779f6c6277849eab9e77986e352688", + "sha256:fc4944dc004ca6cc701dfa19afb8bdb26ad36b9bed5bcec617d2a11e9cae6902" ], "markers": "python_version >= '3.9'", - "version": "==2.1.1" + "version": "==2.1.2" }, "pg-to-evalscript": { "hashes": [ @@ -904,11 +904,12 @@ }, "sentinelhub": { "hashes": [ - "sha256:6d02a86e9ab7b20ca72908a669c7dfe2626f02887a5a78273881ae9b89e772e5" + "sha256:3936474ea9b99d3575fd59ccb12adf0e2e60a9e317830197cda3e7af35057761", + "sha256:f7229d7f54b0a43287d0eb3200cea1ff4936ad29a60f259ce5135e065822b35f" ], "index": "pypi", - "markers": "python_version >= '3.7'", - "version": "==3.6.3" + "markers": "python_version >= '3.8'", + "version": "==3.9.2" }, "setuptools": { "hashes": [ @@ -1018,6 +1019,14 @@ "markers": "python_version >= '3.7'", "version": "==2.0.1" }, + "tomli-w": { + "hashes": [ + "sha256:9f2a07e8be30a0729e533ec968016807069991ae2fd921a78d42f429ae5f4463", + "sha256:f463434305e0336248cac9c2dc8076b707d8a12d019dd349f5c1e382dd1ae1b9" + ], + "markers": "python_version >= '3.7'", + "version": "==1.0.0" + }, "tqdm": { "hashes": [ "sha256:d302b3c5b53d47bce91fea46679d9c3c6508cf6332229aa1e7d8653723793386", @@ -1028,11 +1037,11 @@ }, "troposphere": { "hashes": [ - "sha256:4f8703667a61ded61f061042eb054c061014c9c3ad64957e344019225c954490", - "sha256:7deef2ecb753197c766a143adfef980b9be357eb99644c37a9eed45f9ce53a19" + "sha256:26cc10b0a8a6e12839bda9608d1af0bada993533a3250bd6e20a9fc904626528", + "sha256:6fe6fe5e032194ca8c037395eb6e3623205de1154c5fe53537bf8d797fa8fd6d" ], - "markers": "python_full_version >= '3.7.0'", - "version": "==4.4.1" + "markers": "python_version >= '3.8'", + "version": "==4.5.1" }, "typing-extensions": { "hashes": [ @@ -1792,11 +1801,11 @@ }, "troposphere": { "hashes": [ - "sha256:4f8703667a61ded61f061042eb054c061014c9c3ad64957e344019225c954490", - "sha256:7deef2ecb753197c766a143adfef980b9be357eb99644c37a9eed45f9ce53a19" + "sha256:26cc10b0a8a6e12839bda9608d1af0bada993533a3250bd6e20a9fc904626528", + "sha256:6fe6fe5e032194ca8c037395eb6e3623205de1154c5fe53537bf8d797fa8fd6d" ], - "markers": "python_full_version >= '3.7.0'", - "version": "==4.4.1" + "markers": "python_version >= '3.8'", + "version": "==4.5.1" }, "typing-extensions": { "hashes": [