scim2-client 0.1.8__tar.gz → 0.1.10__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.
- {scim2_client-0.1.8 → scim2_client-0.1.10}/PKG-INFO +5 -5
- {scim2_client-0.1.8 → scim2_client-0.1.10}/README.md +2 -2
- {scim2_client-0.1.8 → scim2_client-0.1.10}/pyproject.toml +3 -3
- {scim2_client-0.1.8 → scim2_client-0.1.10}/scim2_client/__init__.py +0 -0
- {scim2_client-0.1.8 → scim2_client-0.1.10}/scim2_client/client.py +0 -0
- {scim2_client-0.1.8 → scim2_client-0.1.10}/scim2_client/errors.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: scim2-client
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.10
|
|
4
4
|
Summary: Pythonically build SCIM requests and parse SCIM responses
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: scim,scim2,provisioning,httpx,api
|
|
@@ -19,8 +19,8 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
21
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
22
|
-
Requires-Dist: httpx (>=0.24.0
|
|
23
|
-
Requires-Dist: scim2-models (>=0.
|
|
22
|
+
Requires-Dist: httpx (>=0.24.0)
|
|
23
|
+
Requires-Dist: scim2-models (>=0.2.0,<0.3.0)
|
|
24
24
|
Description-Content-Type: text/markdown
|
|
25
25
|
|
|
26
26
|
# scim2-client
|
|
@@ -53,14 +53,14 @@ Here is an example of usage:
|
|
|
53
53
|
```python
|
|
54
54
|
import datetime
|
|
55
55
|
from httpx import Client
|
|
56
|
-
from scim2_models import User,
|
|
56
|
+
from scim2_models import User, EnterpriseUser, Group, Error
|
|
57
57
|
from scim2_client import SCIMClient
|
|
58
58
|
|
|
59
59
|
client = Client(base_url=f"https://auth.example/scim/v2", headers={"Authorization": "Bearer foobar"})
|
|
60
60
|
scim = SCIMClient(client, resource_types=(User[EnterpriseUser], Group))
|
|
61
61
|
|
|
62
62
|
# Query resources
|
|
63
|
-
user = scim.query(User, "2819c223-7f76-453a-919d-413861904646")
|
|
63
|
+
user = scim.query(User[EnterpriseUser], "2819c223-7f76-453a-919d-413861904646")
|
|
64
64
|
assert user.user_name == "bjensen@example.com"
|
|
65
65
|
assert user.meta.last_updated == datetime.datetime(
|
|
66
66
|
2024, 4, 13, 12, 0, 0, tzinfo=datetime.timezone.utc
|
|
@@ -28,14 +28,14 @@ Here is an example of usage:
|
|
|
28
28
|
```python
|
|
29
29
|
import datetime
|
|
30
30
|
from httpx import Client
|
|
31
|
-
from scim2_models import User,
|
|
31
|
+
from scim2_models import User, EnterpriseUser, Group, Error
|
|
32
32
|
from scim2_client import SCIMClient
|
|
33
33
|
|
|
34
34
|
client = Client(base_url=f"https://auth.example/scim/v2", headers={"Authorization": "Bearer foobar"})
|
|
35
35
|
scim = SCIMClient(client, resource_types=(User[EnterpriseUser], Group))
|
|
36
36
|
|
|
37
37
|
# Query resources
|
|
38
|
-
user = scim.query(User, "2819c223-7f76-453a-919d-413861904646")
|
|
38
|
+
user = scim.query(User[EnterpriseUser], "2819c223-7f76-453a-919d-413861904646")
|
|
39
39
|
assert user.user_name == "bjensen@example.com"
|
|
40
40
|
assert user.meta.last_updated == datetime.datetime(
|
|
41
41
|
2024, 4, 13, 12, 0, 0, tzinfo=datetime.timezone.utc
|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "scim2-client"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.10"
|
|
8
8
|
description = "Pythonically build SCIM requests and parse SCIM responses"
|
|
9
9
|
authors = ["Yaal Coop <contact@yaal.coop>"]
|
|
10
10
|
license = "MIT"
|
|
@@ -26,8 +26,8 @@ classifiers = [
|
|
|
26
26
|
|
|
27
27
|
[tool.poetry.dependencies]
|
|
28
28
|
python = "^3.9"
|
|
29
|
-
httpx = "
|
|
30
|
-
scim2-models = "^0.
|
|
29
|
+
httpx = ">=0.24.0"
|
|
30
|
+
scim2-models = "^0.2.0"
|
|
31
31
|
|
|
32
32
|
[tool.poetry.group.doc]
|
|
33
33
|
optional = true
|
|
File without changes
|
|
File without changes
|
|
File without changes
|