pdnd-python-client 0.1.10__tar.gz → 0.1.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.
- {pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/PKG-INFO +5 -4
- {pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/README.md +4 -3
- {pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/pdnd_client/client.py +4 -0
- {pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/pdnd_python_client.egg-info/PKG-INFO +5 -4
- {pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/pyproject.toml +1 -1
- {pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/LICENSE +0 -0
- {pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/pdnd_client/__init__.py +0 -0
- {pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/pdnd_client/config.py +0 -0
- {pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/pdnd_client/jwt_generator.py +0 -0
- {pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/pdnd_python_client.egg-info/SOURCES.txt +0 -0
- {pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/pdnd_python_client.egg-info/dependency_links.txt +0 -0
- {pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/pdnd_python_client.egg-info/requires.txt +0 -0
- {pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/pdnd_python_client.egg-info/top_level.txt +0 -0
- {pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/setup.cfg +0 -0
- {pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/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.13
|
|
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
|
|
@@ -17,12 +17,12 @@ Requires-Dist: requests-mock; extra == "dev"
|
|
|
17
17
|
Dynamic: license-file
|
|
18
18
|
|
|
19
19
|
# PDND Python Client
|
|
20
|
-
|
|
21
|
-

|
|
20
|
+

|
|
21
|
+

|
|
23
22
|

|
|
24
23
|

|
|
25
24
|

|
|
25
|
+

|
|
26
26
|
|
|
27
27
|
Client Python per autenticazione e interazione con le API della Piattaforma Digitale Nazionale Dati (PDND).
|
|
28
28
|
|
|
@@ -203,6 +203,7 @@ Opzioni:
|
|
|
203
203
|
Default: produzione
|
|
204
204
|
--config Specifica il percorso completo del file di configurazione
|
|
205
205
|
--debug Abilita output dettagliato
|
|
206
|
+
--pretty Abilita output dei json formattandoli in modo leggibile
|
|
206
207
|
--api-url URL dell’API da chiamare dopo la generazione del token
|
|
207
208
|
--api-url-filters Filtri da applicare all'API (es. ?parametro=valore)
|
|
208
209
|
--status-url URL dell’API di status per verificare la validità del token
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# PDND Python Client
|
|
2
|
-
|
|
3
|
-

|
|
2
|
+

|
|
3
|
+

|
|
5
4
|

|
|
6
5
|

|
|
7
6
|

|
|
7
|
+

|
|
8
8
|
|
|
9
9
|
Client Python per autenticazione e interazione con le API della Piattaforma Digitale Nazionale Dati (PDND).
|
|
10
10
|
|
|
@@ -185,6 +185,7 @@ Opzioni:
|
|
|
185
185
|
Default: produzione
|
|
186
186
|
--config Specifica il percorso completo del file di configurazione
|
|
187
187
|
--debug Abilita output dettagliato
|
|
188
|
+
--pretty Abilita output dei json formattandoli in modo leggibile
|
|
188
189
|
--api-url URL dell’API da chiamare dopo la generazione del token
|
|
189
190
|
--api-url-filters Filtri da applicare all'API (es. ?parametro=valore)
|
|
190
191
|
--status-url URL dell’API di status per verificare la validità del token
|
|
@@ -37,6 +37,10 @@ class PDNDClient:
|
|
|
37
37
|
# Imposta i filtri da utilizzare nelle richieste API.
|
|
38
38
|
# Se viene fornita una stringa, la converte in un dizionario.
|
|
39
39
|
def set_filters(self, filters) -> bool:
|
|
40
|
+
if not filters:
|
|
41
|
+
self.filters = {}
|
|
42
|
+
return True
|
|
43
|
+
|
|
40
44
|
if isinstance(filters, str):
|
|
41
45
|
# Analizza la stringa nel formato "chiave1=val1&chiave2=val2"
|
|
42
46
|
self.filters = dict(pair.split("=", 1) for pair in filters.split("&") if "=" in pair)
|
{pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/pdnd_python_client.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pdnd-python-client
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.13
|
|
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
|
|
@@ -17,12 +17,12 @@ Requires-Dist: requests-mock; extra == "dev"
|
|
|
17
17
|
Dynamic: license-file
|
|
18
18
|
|
|
19
19
|
# PDND Python Client
|
|
20
|
-
|
|
21
|
-

|
|
20
|
+

|
|
21
|
+

|
|
23
22
|

|
|
24
23
|

|
|
25
24
|

|
|
25
|
+

|
|
26
26
|
|
|
27
27
|
Client Python per autenticazione e interazione con le API della Piattaforma Digitale Nazionale Dati (PDND).
|
|
28
28
|
|
|
@@ -203,6 +203,7 @@ Opzioni:
|
|
|
203
203
|
Default: produzione
|
|
204
204
|
--config Specifica il percorso completo del file di configurazione
|
|
205
205
|
--debug Abilita output dettagliato
|
|
206
|
+
--pretty Abilita output dei json formattandoli in modo leggibile
|
|
206
207
|
--api-url URL dell’API da chiamare dopo la generazione del token
|
|
207
208
|
--api-url-filters Filtri da applicare all'API (es. ?parametro=valore)
|
|
208
209
|
--status-url URL dell’API di status per verificare la validità del token
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/pdnd_python_client.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/pdnd_python_client.egg-info/requires.txt
RENAMED
|
File without changes
|
{pdnd_python_client-0.1.10 → pdnd_python_client-0.1.13}/pdnd_python_client.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|