scim2-filter-parser
A customizable parser/transpiler for SCIM2.0 filters.
Decision gist · record as of 2026-08-14
Yes. The package solves a specific, real problem (SCIM filter translation) with low install friction, active maintenance, no security vulnerabilities, and permissive licensing. It is well-suited for identity management integrations and supports modern Python versions. Install it if you need to parse SCIM filters; skip it if your system does not consume SCIM queries.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with a single runtime dependency (sly).
- Actively maintained with recent commits; last release 755 days ago but repository shows ongoing activity.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; attribution required but no copyleft obligations.
last release 2024-07-20 (755 days) · last repo commit 2026-05-08 · 30 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,782,015 downloads/mo, #2,892 on PyPI
Alternatives
Verify before relying
pip install scim2-filter-parser
from scim2_filter_parser.queries import SQLQuery
attr_map = {('emails', 'value', None): 'emails.address'}
q = SQLQuery('emails.value eq "test@example.com"', 'users', attr_map)
print(q.sql, q.params)- Whether the package handles all SCIM 2.0 filter operators and complex nested expressions reliably in production
- Performance characteristics when parsing very large or deeply nested filter expressions
- Whether Django integration (optional install) is actively maintained alongside core parser
What it is and what it does
SCIM 2.0 Filter Parser converts SCIM filter query strings—used in identity management systems to query user attributes—into executable SQL or Django ORM queries. The package breaks this translation into four stages: tokenization (lexical analysis), abstract syntax tree construction, transpilation to a target language, and query completion. It maps SCIM attribute paths (like 'emails.value' or 'name.familyName') to your database schema via a customizable attribute map, then generates parameterized SQL to prevent injection attacks.
The library is designed for programmatic use: you instantiate a SQLQuery object with your filter string, table name, attribute mapping, and optional JOIN clauses, then extract the parameterized SQL and parameter list for execution. It supports multiple database backends (with SQLite as an example of subclassing the placeholder character), and offers optional Django Q object generation for ORM-based workflows. Command-line tools are provided for debugging but are not the primary interface.
Use it for
- Convert incoming SCIM filter queries from identity providers into safe, parameterized SQL for user directory lookups
- Map SCIM attribute paths to your custom database schema without writing filter-to-SQL translation logic
- Generate Django ORM Q objects from SCIM filters to query user data in Django applications
- Build multi-table queries by specifying JOINs alongside attribute mappings for complex user schemas
- Tokenize and inspect SCIM filter syntax for validation or debugging identity provider integrations
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package solves a specific, real problem (SCIM filter translation) with low install friction, active maintenance, no security vulnerabilities, and permissive licensing. It is well-suited for identity management integrations and supports modern Python versions. Install it if you need to parse SCIM filters; skip it if your system does not consume SCIM queries.
Install
scim2-filter-parser on PyPI
Before you install
Low friction: pure Python wheel with a single runtime dependency (sly). Actively maintained with recent commits; last release 755 days ago but repository shows ongoing activity.
License in practice
MIT license permits commercial and private use with minimal restrictions; attribution required but no copyleft obligations.
Quickstart
pip install scim2-filter-parser
from scim2_filter_parser.queries import SQLQuery
attr_map = {('emails', 'value', None): 'emails.address'}
q = SQLQuery('emails.value eq "test@example.com"', 'users', attr_map)
print(q.sql, q.params)
Verify before relying
- Whether the package handles all SCIM 2.0 filter operators and complex nested expressions reliably in production
- Performance characteristics when parsing very large or deeply nested filter expressions
- Whether Django integration (optional install) is actively maintained alongside core parser
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagesly |
| Maintenance | Actively maintained 755 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,782,015 / month, #2,892 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: InternetTopic :: Software Development :: Libraries :: Python Modules |
Evidence: scim2_filter_parser-0.7.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “scim 2.0 filter parser”
- scim2-filter-parserParses SCIM 2.0 filter query strings into abstract syntax trees and…
- django-scim2Implements the SCIM 2.0 provider specification as a Django app,…
- pydantic-scimProvides Pydantic data models for SCIM (System for Cross-domain…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also scim2-server · mo-sql-parsing · odata-query · moz-sql-parser · django-scim2 · cql2 · syntaqlite · sqlalchemy-filters · sqlglot · promql-parser