permisapi-client 0.7.1__tar.gz → 0.7.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.
- {permisapi_client-0.7.1 → permisapi_client-0.7.2}/PKG-INFO +1 -1
- {permisapi_client-0.7.1 → permisapi_client-0.7.2}/permisapi_client/__init__.py +1 -1
- {permisapi_client-0.7.1 → permisapi_client-0.7.2}/permisapi_client/client.py +8 -1
- {permisapi_client-0.7.1 → permisapi_client-0.7.2}/pyproject.toml +1 -1
- {permisapi_client-0.7.1 → permisapi_client-0.7.2}/.gitignore +0 -0
- {permisapi_client-0.7.1 → permisapi_client-0.7.2}/README.md +0 -0
- {permisapi_client-0.7.1 → permisapi_client-0.7.2}/permisapi_client/exceptions.py +0 -0
- {permisapi_client-0.7.1 → permisapi_client-0.7.2}/tests/test_client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: permisapi-client
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.2
|
|
4
4
|
Summary: Client Python officiel pour PermisAPI : permis de construire France en API REST.
|
|
5
5
|
Project-URL: Homepage, https://permisapi.fr
|
|
6
6
|
Project-URL: Documentation, https://permisapi.fr/docs
|
|
@@ -13,7 +13,7 @@ from permisapi_client.exceptions import error_from_response
|
|
|
13
13
|
|
|
14
14
|
DEFAULT_BASE_URL = "https://api.permisapi.fr"
|
|
15
15
|
DEFAULT_TIMEOUT = 15.0
|
|
16
|
-
USER_AGENT = "permisapi-client-python/0.7.
|
|
16
|
+
USER_AGENT = "permisapi-client-python/0.7.2"
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
def _raise_for_status(resp: httpx.Response) -> None:
|
|
@@ -63,6 +63,13 @@ class _PermitsResource:
|
|
|
63
63
|
Champs autorises : date_reelle_autorisation, date_depot,
|
|
64
64
|
an_depot, superficie_terrain. Prefixe `-` pour descendant.
|
|
65
65
|
Tout autre champ retourne 422 (et non ignore silencieusement).
|
|
66
|
+
|
|
67
|
+
Filtre `min_score` (Pro+ uniquement) : retourne uniquement les
|
|
68
|
+
permits avec un Score Opportunite MDB >= N (0-100). Use case
|
|
69
|
+
marchand de biens : shortliste les top opportunites en 1 call
|
|
70
|
+
au lieu de fetch + filter cote client. Cout quota special :
|
|
71
|
+
`limit` unites au lieu de 1 (anti-abus, equivalent a N calls
|
|
72
|
+
/score). Header X-RateLimit-Cost confirme.
|
|
66
73
|
"""
|
|
67
74
|
return self._c._get("/v1/permits", params=params)
|
|
68
75
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|