pydantic-scim2


Namepydantic-scim2 JSON
Version 0.2.1 PyPI version JSON
download
home_pagehttps://github.com/yaal-coop/pydantic-scim2
SummarySCIM2 models for pydantic
upload_time2024-05-27 10:22:49
maintainerNone
docs_urlNone
authorYaal Coop
requires_python<4.0,>=3.9
licenseApache
keywords scim scim2 provisioning pydantic
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pydantic-scim2

Pydantic models for SCIM2 schemas defined in [RFC7643](https://www.rfc-editor.org/rfc/rfc7643) and [RFC7644](https://www.rfc-editor.org/rfc/rfc7644).
This library provide utilities to parse and produce SCIM2 payloads.

## Installation

```shell
pip install pydantic-scim2
```

## Usage

Check the [tutorial](https://pydantic-scim2.readthedocs.io/en/latest/tutorial.html) and the [reference](https://pydantic-scim2.readthedocs.io/en/latest/reference.html) for more details.

```python
from pydantic_scim2 import User
import datetime

payload = {
    "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
    "id": "2819c223-7f76-453a-919d-413861904646",
    "userName": "bjensen@example.com",
    "meta": {
        "resourceType": "User",
        "created": "2010-01-23T04:56:22Z",
        "lastModified": "2011-05-13T04:42:34Z",
        "version": 'W\\/"3694e05e9dff590"',
        "location": "https://example.com/v2/Users/2819c223-7f76-453a-919d-413861904646",
    },
}

user = User.model_validate(payload)
assert user.user_name == "bjensen@example.com"
assert user.meta.created == datetime.datetime(
    2010, 1, 23, 4, 56, 22, tzinfo=datetime.timezone.utc
)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/yaal-coop/pydantic-scim2",
    "name": "pydantic-scim2",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "scim, scim2, provisioning, pydantic",
    "author": "Yaal Coop",
    "author_email": "contact@yaal.coop",
    "download_url": "https://files.pythonhosted.org/packages/33/fc/aed4822d615638816c383b85c6276265d689583212884dd51cd4def1f22d/pydantic_scim2-0.2.1.tar.gz",
    "platform": null,
    "description": "# pydantic-scim2\n\nPydantic models for SCIM2 schemas defined in [RFC7643](https://www.rfc-editor.org/rfc/rfc7643) and [RFC7644](https://www.rfc-editor.org/rfc/rfc7644).\nThis library provide utilities to parse and produce SCIM2 payloads.\n\n## Installation\n\n```shell\npip install pydantic-scim2\n```\n\n## Usage\n\nCheck the [tutorial](https://pydantic-scim2.readthedocs.io/en/latest/tutorial.html) and the [reference](https://pydantic-scim2.readthedocs.io/en/latest/reference.html) for more details.\n\n```python\nfrom pydantic_scim2 import User\nimport datetime\n\npayload = {\n    \"schemas\": [\"urn:ietf:params:scim:schemas:core:2.0:User\"],\n    \"id\": \"2819c223-7f76-453a-919d-413861904646\",\n    \"userName\": \"bjensen@example.com\",\n    \"meta\": {\n        \"resourceType\": \"User\",\n        \"created\": \"2010-01-23T04:56:22Z\",\n        \"lastModified\": \"2011-05-13T04:42:34Z\",\n        \"version\": 'W\\\\/\"3694e05e9dff590\"',\n        \"location\": \"https://example.com/v2/Users/2819c223-7f76-453a-919d-413861904646\",\n    },\n}\n\nuser = User.model_validate(payload)\nassert user.user_name == \"bjensen@example.com\"\nassert user.meta.created == datetime.datetime(\n    2010, 1, 23, 4, 56, 22, tzinfo=datetime.timezone.utc\n)\n```\n",
    "bugtrack_url": null,
    "license": "Apache",
    "summary": "SCIM2 models for pydantic",
    "version": "0.2.1",
    "project_urls": {
        "Documentation": "https://pydantic-scim2.readthedocs.io",
        "Homepage": "https://github.com/yaal-coop/pydantic-scim2",
        "Repository": "https://github.com/yaal-coop/pydantic-scim2"
    },
    "split_keywords": [
        "scim",
        " scim2",
        " provisioning",
        " pydantic"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "46f69bbe8d6881e1b564026ffbe947c1023caed923e563bd282e32b25cc1b928",
                "md5": "506626fa1d88ca9404e92d3c98dd564e",
                "sha256": "206a32eb5680ef17fc897e1167ee581340d7dd4dc0ac5cbe0b72a3590db0a2da"
            },
            "downloads": -1,
            "filename": "pydantic_scim2-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "506626fa1d88ca9404e92d3c98dd564e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 22597,
            "upload_time": "2024-05-27T10:22:47",
            "upload_time_iso_8601": "2024-05-27T10:22:47.223463Z",
            "url": "https://files.pythonhosted.org/packages/46/f6/9bbe8d6881e1b564026ffbe947c1023caed923e563bd282e32b25cc1b928/pydantic_scim2-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "33fcaed4822d615638816c383b85c6276265d689583212884dd51cd4def1f22d",
                "md5": "81d436a97c7f0253d7af933503d414e7",
                "sha256": "6a2bcefdeeae7e8bb519285f1d5c66cf54b82d78b5b199668cd18a4c41af671b"
            },
            "downloads": -1,
            "filename": "pydantic_scim2-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "81d436a97c7f0253d7af933503d414e7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 16479,
            "upload_time": "2024-05-27T10:22:49",
            "upload_time_iso_8601": "2024-05-27T10:22:49.074251Z",
            "url": "https://files.pythonhosted.org/packages/33/fc/aed4822d615638816c383b85c6276265d689583212884dd51cd4def1f22d/pydantic_scim2-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-27 10:22:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yaal-coop",
    "github_project": "pydantic-scim2",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pydantic-scim2"
}
        
Elapsed time: 0.29165s