Compatibility
sqlguardllm depends on exactly one library: sqlglot, pinned to
>=30.0,<31. That range is what decides whether sqlguardllm can share a Python environment with
another project. The Compatibility workflow checks it every Monday, and on every change to
pyproject.toml, by resolving sqlguardllm next to the latest release of each target
(scripts/compat_check.py).
It only resolves; nothing is installed.
Result
Measured on 2026-11-30 with sqlguardllm 0.5.0a8 on Python 3.12:
| Target | Latest | Installs with sqlguardllm | Why |
|---|---|---|---|
| crewai-tools | 1.15.47 | yes | no conflicting sqlglot pin |
| agno | 3.2.1 | yes | no conflicting sqlglot pin |
| mcp-alchemy | 2026.10.15.202659 | yes | no conflicting sqlglot pin |
| langchain-community | 0.4.2 | yes | no conflicting sqlglot pin |
| pandasai | 3.0.0 | no | pandasai 3.0.0 requires sqlglot>=25.0.3,<26; sqlguardllm requires sqlglot>=30.0,<31 |
The pandasai row needs care. The resolver fails for the latest pandasai (its sqlglot range
>=25.0.3,<26 excludes sqlglot 30), yet plain pip install pandasai sqlguardllm can still succeed by
falling back to pandasai 2.2, a much older release. That is why the check pins the latest version
of each target. Until pandasai widens its sqlglot range, depending on sqlguardllm from pandasai
is not possible; a self-contained check built on their own sqlglot is the alternative.
sqlglot support policy
- sqlguardllm supports one sqlglot major at a time, today 30.x. The upper bound is deliberate: sqlglot changes its tree between majors, and the guard is a security control that is tested against the exact tree it receives.
- When sqlglot publishes a new major, the guard is run against it (the adversarial corpus, the fuzz profile and the conformance suite) before the range moves. Moving the range is a minor release of sqlguardllm.
- A new sqlglot minor or patch inside the supported major is covered by the weekly CI run.
- If a project you depend on pins an older sqlglot, the check above tells you before you install.
Stability of the core API
The surface other libraries are expected to use is Guard, Policy, Guard.check(),
Guard.enforce(), CheckResult and the violation codes. Violation codes never change within a
major version. While the package is in alpha, pin the exact version in your integration test and
read the changelog before
upgrading. A beta that freezes this surface is tracked in
issue #166.