Skip to main content
python-scim logo

scim2-sqlalchemy

Store SCIM resources in the tables of an application, with the SQLAlchemy ORM.

A mapping declares which column holds each SCIM attribute. A storage then reads, writes, filters, sorts and pages the resources for scim2-server, which serves the SCIM protocol of RFC 7643 and RFC 7644.

from scim2_models import User
from scim2_sqlalchemy import Many, ResourceMapping, SqlAlchemyStorage

users = ResourceMapping(
    User,
    Account,
    {
        "id": Account.id,
        "userName": Account.login,
        "name.givenName": Account.first_name,
        "emails": Many(Account.emails, {"value": EmailAddress.address}),
        "meta.created": Account.created_at,
        "meta.lastModified": Account.updated_at,
    },
    version=Account.revision,
)
storage = SqlAlchemyStorage({"User": users}, lambda: session)

Installation

$ pip install scim2-sqlalchemy

The asynchronous storage needs the asyncio extra:

$ pip install "scim2-sqlalchemy[asyncio]"

Documentation

The documentation builds a SCIM server over existing tables, and describes the mappings, the transactions and the public API.

Contributing

Read the contributing guide.

License

scim2-sqlalchemy is published under the terms of the Apache 2.0 license.

Metadata

Release files for scim2-sqlalchemy 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scim2-sqlalchemy 0.1.2
File Size Uploaded Provenance Actions
scim2_sqlalchemy-0.1.2.tar.gz 37.8 kB With provenance Details for scim2_sqlalchemy-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scim2-sqlalchemy 0.1.2
File Interpreter ABI Platform Actions
scim2_sqlalchemy-0.1.2-py3-none-any.whl Python 3 none any Details for scim2_sqlalchemy-0.1.2-py3-none-any.whl

Total release size: 79.4 kB

Release files / scim2_sqlalchemy-0.1.2.tar.gz

Download URL scim2_sqlalchemy-0.1.2.tar.gz
Size 37.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2ed39eb10a25f26fb312ad2ed120c6008c6f0bfbb2babb895f8b88f84921ff25
BLAKE2b-256 checksum
How to use checksums
b5cd5ea998b31f7d07f79e22e044e8b889c65c5ae39b62fc5d14609393be1d7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / scim2_sqlalchemy-0.1.2-py3-none-any.whl

Download URL scim2_sqlalchemy-0.1.2-py3-none-any.whl
Size 41.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a583c9a0d14388c1c2d963e7897e88a61fef69b6829acd559c21a705a5fad1eb
BLAKE2b-256 checksum
How to use checksums
36c584a6b5bc85bae3f827266ed05f44ffeeca042168d9088bbdba3b0673a894
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for scim2-sqlalchemy 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for scim2_sqlalchemy-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page