pdnd-python-client 0.1.1__tar.gz → 0.1.2__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.
- {pdnd_python_client-0.1.1/pdnd_python_client.egg-info → pdnd_python_client-0.1.2}/PKG-INFO +1 -1
- {pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2}/pdnd_client/client.py +9 -2
- {pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2/pdnd_python_client.egg-info}/PKG-INFO +1 -1
- {pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2}/pyproject.toml +1 -1
- {pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2}/LICENSE +0 -0
- {pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2}/README.md +0 -0
- {pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2}/pdnd_client/__init__.py +0 -0
- {pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2}/pdnd_client/config.py +0 -0
- {pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2}/pdnd_client/jwt_generator.py +0 -0
- {pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2}/pdnd_python_client.egg-info/SOURCES.txt +0 -0
- {pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2}/pdnd_python_client.egg-info/dependency_links.txt +0 -0
- {pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2}/pdnd_python_client.egg-info/requires.txt +0 -0
- {pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2}/pdnd_python_client.egg-info/top_level.txt +0 -0
- {pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2}/setup.cfg +0 -0
- {pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2}/tests/test_pdnd_client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pdnd-python-client
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Client Python per autenticazione e interazione con le API della Piattaforma Digitale Nazionale Dati (PDND).
|
|
5
5
|
Author-email: Francesco Loreti <francesco.loreti@isprambiente.it>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -34,9 +34,16 @@ class PDNDClient:
|
|
|
34
34
|
self.api_url = api_url
|
|
35
35
|
return True
|
|
36
36
|
|
|
37
|
-
#
|
|
37
|
+
# Imposta i filtri da utilizzare nelle richieste API.
|
|
38
|
+
# Se viene fornita una stringa, la converte in un dizionario.
|
|
38
39
|
def set_filters(self, filters) -> bool:
|
|
39
|
-
|
|
40
|
+
if isinstance(filters, str):
|
|
41
|
+
# Analizza la stringa nel formato "chiave1=val1&chiave2=val2"
|
|
42
|
+
self.filters = dict(pair.split("=", 1) for pair in filters.split("&") if "=" in pair)
|
|
43
|
+
elif isinstance(filters, dict):
|
|
44
|
+
self.filters = filters
|
|
45
|
+
else:
|
|
46
|
+
raise ValueError("I filtri devono essere una stringa o un dizionario.")
|
|
40
47
|
return True
|
|
41
48
|
|
|
42
49
|
# Questo metodo imposta la modalità di debug, che controlla se stampare un output dettagliato.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pdnd-python-client
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Client Python per autenticazione e interazione con le API della Piattaforma Digitale Nazionale Dati (PDND).
|
|
5
5
|
Author-email: Francesco Loreti <francesco.loreti@isprambiente.it>
|
|
6
6
|
License-Expression: MIT
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2}/pdnd_python_client.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2}/pdnd_python_client.egg-info/requires.txt
RENAMED
|
File without changes
|
{pdnd_python_client-0.1.1 → pdnd_python_client-0.1.2}/pdnd_python_client.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|