$npx skillfedfor your agent

agent-framework-purview

Microsoft Purview (Graph dataSecurityAndGovernance) integration for Microsoft Agent Framework.

With conditionsPyPI Application FrameworksReleased Jul 2026448.5K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — agent_framework_purview-1.0.0b260730-py3-none-any.whl
v1.0.0b260730 · released 2026-07-30 · Python >=3.10 · 3 runtime deps: agent-framework-core, azure-core, httpx

Yes, if you are building agents on the Microsoft Agent Framework and have Purview configured in your Azure tenant. The middleware integrates cleanly, adds low install friction, and solves a real compliance problem. However, the Beta status and recent release date mean you should expect API changes and test thoroughly before production use. Not applicable if you lack Purview infrastructure or are not using the Microsoft Agent Framework.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Microsoft Azure subscription with Purview configured and Microsoft 365 E5 license; also requires Entra app registration with dataSecurityAndGovernance Graph permissions.
  • Low install friction with a pure Python wheel and three runtime dependencies (agent-framework-core, azure-core, httpx).
  • Package is in active development with recent releases; marked Beta status and released just 15 days ago, so expect ongoing changes.

License · maintenance · safety

permissive license (permissive) — MIT license (permissive); you can use, modify, and distribute this package freely with minimal restrictions.

last release 2026-07-30 (15 days) · last repo commit 2026-08-14 · 12,804 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 448,526 downloads/mo, #6,599 on PyPI

Verify before relying

pip install agent-framework-purview

from agent_framework.microsoft import PurviewPolicyMiddleware, PurviewSettings
from azure.identity import InteractiveBrowserCredential

middleware = PurviewPolicyMiddleware(
    credential=InteractiveBrowserCredential(),
    settings=PurviewSettings(app_name="My App")
)
  • Whether custom cache providers can integrate with external storage systems beyond the default in-memory provider.
  • Performance impact of policy evaluation on agent throughput under high-volume scenarios.
  • Exact behavior when both prompt and response violations occur in the same run.
Same gist for agents: .md · .json

What it is and what it does

agent-framework-purview is a middleware layer that integrates Microsoft Purview's data governance engine into the Microsoft Agent Framework. It intercepts both user prompts and model responses, evaluating them against centrally managed Data Loss Prevention (DLP) and security policies before allowing them to proceed. When a violation is detected, the middleware blocks the content and substitutes a system message, preventing sensitive data from reaching the LLM or leaving your system.

The package handles authentication via azure-identity credentials, includes built-in caching (4-hour default TTL, 200MB default size) to reduce API calls, and supports both synchronous and asynchronous credential flows. Configuration is done through PurviewSettings, which lets you customize blocked messages, set cache parameters, and scope policies by application location. It's designed to work with any Agent or orchestration using the standard Agent Framework middleware pipeline.

Use it for

  • Prevent sensitive customer data, PII, or trade secrets from being sent to an LLM by blocking prompts that violate DLP policies.
  • Audit and log all AI interactions in Purview for compliance, eDiscovery, and insider risk management without rewriting agent logic.
  • Block model responses containing regulated data (e.g., financial records, health information) before they leave your system.
  • Enforce centrally managed security policies across multiple agents without duplicating policy logic in each agent.
  • Test agent behavior under governance constraints using Purview's policy simulation and offline evaluation features.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are building agents on the Microsoft Agent Framework and have Purview configured in your Azure tenant.

The middleware integrates cleanly, adds low install friction, and solves a real compliance problem. However, the Beta status and recent release date mean you should expect API changes and test thoroughly before production use. Not applicable if you lack Purview infrastructure or are not using the Microsoft Agent Framework.

Install

agent-framework-purview on PyPI

Before you install

Low install friction with a pure Python wheel and three runtime dependencies (agent-framework-core, azure-core, httpx). Package is in active development with recent releases; marked Beta status and released just 15 days ago, so expect ongoing changes.

Requires Microsoft Azure subscription with Purview configured and Microsoft 365 E5 license; also requires Entra app registration with dataSecurityAndGovernance Graph permissions.

License in practice

MIT license (permissive); you can use, modify, and distribute this package freely with minimal restrictions.

Quickstart

pip install agent-framework-purview

from agent_framework.microsoft import PurviewPolicyMiddleware, PurviewSettings
from azure.identity import InteractiveBrowserCredential

middleware = PurviewPolicyMiddleware(
    credential=InteractiveBrowserCredential(),
    settings=PurviewSettings(app_name="My App")
)

Verify before relying

  • Whether custom cache providers can integrate with external storage systems beyond the default in-memory provider.
  • Performance impact of policy evaluation on agent throughput under high-volume scenarios.
  • Exact behavior when both prompt and response violations occur in the same run.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
agent-framework-coreazure-corehttpx
MaintenanceActively maintained 15 days since the last release
Last repo commit
First released
Downloads448,526 / month, #6,599 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaFramework :: Pydantic :: 2Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed

Evidence: agent_framework_purview-1.0.0b260730-py3-none-any.whl

Tags

Capabilities
purview dlp policy enforcementagent framework governance middlewareazure data loss preventionprompt response content filteringmicrosoft purview integrationagent security policy middlewaredata governance for ai agents
Topics
governance-middlewaredlp-enforcementazure-integration

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 › “purview dlp policy enforcement”

  • agent-framework-purviewAdds Microsoft Purview data governance and DLP policy enforcement to…
  • oslo.policyoslo.policy enforces role-based access control (RBAC) policies across…
  • sqlalchemy-adapterBridges PyCasbin access-control policies with SQLAlchemy-supported…

Give your agent the search over MCP, or paste the wish link into any chat.

More Application Frameworks packages

fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
textual Worth it
PyPI · Application Frameworks · released Jun 2026

Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.

Install it if you're developing CLI tools, dashboards, or interactive terminal applications.

MITpure Python
443.6Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
mcp Worth it
PyPI · Application Frameworks · released Jul 2026

Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.

Install it if you need to build or connect to servers.

MITpure Python · 3.10+
319.3Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo

See also agent-framework-openai · agent-framework-ollama · agent_governance_toolkit · agent-framework-copilotstudio · agent-framework-claude · cpex · agent-framework-foundry-local · agent-framework · agent-framework-durabletask · pyapacheatlas

Further reading