diracx-client 0.0.1a24__py3-none-any.whl → 0.0.1a26__py3-none-any.whl

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.
@@ -13,7 +13,7 @@ from datetime import datetime, timezone
13
13
  import importlib.util
14
14
  import json
15
15
  import jwt
16
- import requests
16
+ import httpx
17
17
 
18
18
  from pathlib import Path
19
19
  from typing import Any, Dict, List, Optional, cast
@@ -7,8 +7,8 @@ import fcntl
7
7
  import json
8
8
  import os
9
9
  from diracx.core.utils import EXPIRES_GRACE_SECONDS, serialize_credentials
10
+ import httpx
10
11
  import jwt
11
- import requests
12
12
 
13
13
  from datetime import datetime, timezone
14
14
  from importlib.metadata import PackageNotFoundError, distribution
@@ -43,11 +43,11 @@ def get_openid_configuration(
43
43
  endpoint: str, *, verify: bool | str = True
44
44
  ) -> Dict[str, str]:
45
45
  """Get the openid configuration from the .well-known endpoint"""
46
- response = requests.get(
46
+ response = httpx.get(
47
47
  url=parse.urljoin(endpoint, ".well-known/openid-configuration"),
48
48
  verify=verify,
49
49
  )
50
- if not response.ok:
50
+ if not response.is_success:
51
51
  raise RuntimeError("Cannot fetch any information from the .well-known endpoint")
52
52
  return response.json()
53
53
 
@@ -123,7 +123,7 @@ def refresh_token(
123
123
  verify: bool | str = True,
124
124
  ) -> TokenResponse:
125
125
  """Refresh the access token using the refresh_token flow."""
126
- response = requests.post(
126
+ response = httpx.post(
127
127
  url=token_endpoint,
128
128
  data={
129
129
  "client_id": client_id,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: diracx-client
3
- Version: 0.0.1a24
3
+ Version: 0.0.1a26
4
4
  Summary: TODO
5
5
  License: GPL-3.0-only
6
6
  Classifier: Intended Audience :: Science/Research
@@ -13,8 +13,7 @@ Description-Content-Type: text/markdown
13
13
  Requires-Dist: azure-core
14
14
  Requires-Dist: diracx-core
15
15
  Requires-Dist: isodate
16
- Requires-Dist: requests
16
+ Requires-Dist: httpx
17
17
  Provides-Extra: testing
18
18
  Requires-Dist: diracx-testing; extra == "testing"
19
19
  Provides-Extra: types
20
- Requires-Dist: types-requests; extra == "types"
@@ -6,7 +6,7 @@ diracx/client/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
6
6
  diracx/client/generated/__init__.py,sha256=W6Pp6RirqNtSV_YQJ3z9uaDBS8D5jgaRct5Cd_VYDPI,854
7
7
  diracx/client/generated/_client.py,sha256=-mpbNRpCAFionjU51Ta9bbXAddlUG1FMsbXuswxyQh4,4831
8
8
  diracx/client/generated/_configuration.py,sha256=GHQujimTCX1FGKlNsF1xasEV9OEaOuWKAtfQ3ymKyK8,1936
9
- diracx/client/generated/_patch.py,sha256=ZsuUeieEbKp0OjXJz2qAW-z6W0Xt8wwb38J-RvQxfNE,1328
9
+ diracx/client/generated/_patch.py,sha256=-LIKKr5s3P-oozD0LCgGCG1Ug8EnzKhZszYUTjOFo-A,1325
10
10
  diracx/client/generated/_serialization.py,sha256=xx1ZQCrGqaBTG6N7TNUFRw7FT09rzJhpl33o6M_Fi88,86947
11
11
  diracx/client/generated/_vendor.py,sha256=mxxhXPZrTfoctsfkug4YQ57E9rWT59BMm25ZFBWhzSU,1936
12
12
  diracx/client/generated/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
@@ -26,11 +26,11 @@ diracx/client/generated/operations/__init__.py,sha256=KMYBno-tRVf6j-L-xEEEcwUMyB
26
26
  diracx/client/generated/operations/_operations.py,sha256=r8F92Xa-TWvO6Z8Y_5vjq9l9X8sEu-mi0PGF8woNnjI,84601
27
27
  diracx/client/generated/operations/_patch.py,sha256=FvemlcswH_zZkdyoGObyTwRnwTsYIZJa3seO66C2BQI,4202
28
28
  diracx/client/patches/__init__.py,sha256=8mzMyg1Kd9lJH1K7DYJ6FgjkTJgPRJmF0sYmuFv5wcs,468
29
- diracx/client/patches/utils.py,sha256=7VaGp7IoAMMfotW3N9BrMb7h59mHjfkGgwFnLnIdNEs,10733
29
+ diracx/client/patches/utils.py,sha256=OXJx-jSwou-BQm3PrOaZgRWLj-8EFXgjTDVms6uWdN4,10732
30
30
  diracx/client/patches/aio/__init__.py,sha256=qIy1qj8HzaZDEU2PCjEHjFbylwfYRAM0i90WEDs2WuQ,471
31
31
  diracx/client/patches/aio/utils.py,sha256=Bno4DntLGWEB88UO9eaBtZjG8K3QAJNaT2RI-_mQWgc,5949
32
- diracx_client-0.0.1a24.dist-info/METADATA,sha256=DZCi5tL6z__VdEsREjut-GmafP9oyWsJA7XpWNKAPGA,676
33
- diracx_client-0.0.1a24.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
34
- diracx_client-0.0.1a24.dist-info/entry_points.txt,sha256=NP67B7z-VIy8vEG3ZYtOAyxZqLtrOAD5hh2pA2AFBKI,123
35
- diracx_client-0.0.1a24.dist-info/top_level.txt,sha256=vJx10tdRlBX3rF2Psgk5jlwVGZNcL3m_7iQWwgPXt-U,7
36
- diracx_client-0.0.1a24.dist-info/RECORD,,
32
+ diracx_client-0.0.1a26.dist-info/METADATA,sha256=D-z8nz1QnuJd6bCfiTU4rM7fyL_eSLVltiuqIB4ykEg,625
33
+ diracx_client-0.0.1a26.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
34
+ diracx_client-0.0.1a26.dist-info/entry_points.txt,sha256=NP67B7z-VIy8vEG3ZYtOAyxZqLtrOAD5hh2pA2AFBKI,123
35
+ diracx_client-0.0.1a26.dist-info/top_level.txt,sha256=vJx10tdRlBX3rF2Psgk5jlwVGZNcL3m_7iQWwgPXt-U,7
36
+ diracx_client-0.0.1a26.dist-info/RECORD,,