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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pdnd-python-client
3
- Version: 0.1.10
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
- ![Python Security Audit](https://github.com/isprambiente/pdnd-python-client/actions/workflows/security-audit.yml/badge.svg)
22
- ![Python CI](https://github.com/isprambiente/pdnd-python-client/actions/workflows/python-ci.yml/badge.svg)
20
+ ![Python CI](https://img.shields.io/github/actions/workflow/status/isprambiente/pdnd-python-client/python-ci.yml?label=Python%20CI)
21
+ ![Security Audit](https://img.shields.io/github/actions/workflow/status/isprambiente/pdnd-python-client/security-audit.yml?label=Security%20Audit)
23
22
  ![License](https://img.shields.io/github/license/isprambiente/pdnd-python-client)
24
23
  ![Python Version](https://img.shields.io/pypi/pyversions/pdnd-python-client)
25
24
  ![Latest PyPI Version](https://img.shields.io/pypi/v/pdnd-python-client)
25
+ ![Downloads](https://pepy.tech/badge/pdnd-python-client)
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
- ![Python Security Audit](https://github.com/isprambiente/pdnd-python-client/actions/workflows/security-audit.yml/badge.svg)
4
- ![Python CI](https://github.com/isprambiente/pdnd-python-client/actions/workflows/python-ci.yml/badge.svg)
2
+ ![Python CI](https://img.shields.io/github/actions/workflow/status/isprambiente/pdnd-python-client/python-ci.yml?label=Python%20CI)
3
+ ![Security Audit](https://img.shields.io/github/actions/workflow/status/isprambiente/pdnd-python-client/security-audit.yml?label=Security%20Audit)
5
4
  ![License](https://img.shields.io/github/license/isprambiente/pdnd-python-client)
6
5
  ![Python Version](https://img.shields.io/pypi/pyversions/pdnd-python-client)
7
6
  ![Latest PyPI Version](https://img.shields.io/pypi/v/pdnd-python-client)
7
+ ![Downloads](https://pepy.tech/badge/pdnd-python-client)
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pdnd-python-client
3
- Version: 0.1.10
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
- ![Python Security Audit](https://github.com/isprambiente/pdnd-python-client/actions/workflows/security-audit.yml/badge.svg)
22
- ![Python CI](https://github.com/isprambiente/pdnd-python-client/actions/workflows/python-ci.yml/badge.svg)
20
+ ![Python CI](https://img.shields.io/github/actions/workflow/status/isprambiente/pdnd-python-client/python-ci.yml?label=Python%20CI)
21
+ ![Security Audit](https://img.shields.io/github/actions/workflow/status/isprambiente/pdnd-python-client/security-audit.yml?label=Security%20Audit)
23
22
  ![License](https://img.shields.io/github/license/isprambiente/pdnd-python-client)
24
23
  ![Python Version](https://img.shields.io/pypi/pyversions/pdnd-python-client)
25
24
  ![Latest PyPI Version](https://img.shields.io/pypi/v/pdnd-python-client)
25
+ ![Downloads](https://pepy.tech/badge/pdnd-python-client)
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,6 +1,6 @@
1
1
  [project]
2
2
  name = "pdnd-python-client"
3
- version = "0.1.10"
3
+ version = "0.1.13"
4
4
  description = "Client Python per autenticazione e interazione con le API della Piattaforma Digitale Nazionale Dati (PDND)."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"