$npx skillfedfor your agent

redis-entraid

Entra ID credentials provider implementation for Redis-py client

With conditionsPyPI DatabaseReleased Jun 2026998.9K downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — redis_entraid-1.2.1-py3-none-any.whl
v1.2.1 · released 2026-06-03 · Python >=3.10 · 5 runtime deps: redis, PyJWT, msal, azure-identity, requests

Yes, if you are running Python 3.10+ and connecting to Azure Redis services. The package eliminates password management overhead and integrates cleanly with Azure's identity ecosystem. No known vulnerabilities, active maintenance, and low install friction. The only gotcha is that Entra ID authentication must be enabled on your Azure Redis instance and your identity must be granted access—this is an Azure configuration requirement, not a package limitation.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Azure Redis instance must have Entra ID authentication enabled and the service principal or managed identity must be granted access to the cache resource.
  • Low install friction with a pure-Python wheel distribution.

License · maintenance · safety

(unclear)

last release 2026-06-03 (72 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 998,939 downloads/mo, #4,542 on PyPI

Verify before relying

pip install redis-entraid

from redis import Redis
from redis_entraid.cred_provider import create_from_service_principal

credential_provider = create_from_service_principal(
    CLIENT_ID, CLIENT_SECRET, TENANT_ID
)
client = Redis(host=HOST, port=PORT, ssl=True, credential_provider=credential_provider)
print(client.dbsize())
  • Whether token renewal happens transparently during long-lived connections or requires explicit refresh calls
  • Performance impact of background token management on connection pool behavior
  • Compatibility with redis-py cluster or sentinel modes beyond standard connections
Same gist for agents: .md · .json

What it is and what it does

redis-entraid is a credential provider for redis-py that handles authentication to Azure's Redis services using Microsoft Entra ID. Instead of managing static passwords or connection strings, it integrates with Azure's identity services to fetch and refresh authentication tokens automatically. The package supports three authentication patterns: system-assigned managed identities (for Azure services), user-assigned managed identities (for cross-resource scenarios), and service principals (for application-to-service authentication).

The package wraps redis-py and sits between your application and the Redis client, managing token lifecycle in the background. It requires Python 3.10 or later and depends on redis, PyJWT, msal, azure-identity, and requests. You create a credential provider using one of three factory methods, optionally configure token refresh behavior, and pass it to the Redis client constructor. The package handles token expiration and renewal transparently, though you can also fetch credentials explicitly for testing or monitoring.

Use it for

  • Authenticate to Azure Managed Redis using a system-assigned or user-assigned managed identity without hardcoding credentials.
  • Connect application service principals to Azure Cache for Redis with automatic token renewal in the background.
  • Use Default Azure Credential to let the SDK automatically select the right authentication method based on the deployment environment.
  • Replace static Redis passwords with Entra ID-based access control for compliance and security auditing in Azure-hosted applications.

Worth the install?

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

With conditions

Yes, if you are running Python 3.10+ and connecting to Azure Redis services.

The package eliminates password management overhead and integrates cleanly with Azure's identity ecosystem. No known vulnerabilities, active maintenance, and low install friction. The only gotcha is that Entra ID authentication must be enabled on your Azure Redis instance and your identity must be granted access—this is an Azure configuration requirement, not a package limitation.

Install

redis-entraid on PyPI

Before you install

Low install friction with a pure-Python wheel distribution. Active maintenance status with recent releases. Depends on five runtime packages including redis, msal, and azure-identity, all standard Azure SDK components.

Requires Python 3.10 or later. Azure Redis instance must have Entra ID authentication enabled and the service principal or managed identity must be granted access to the cache resource.

Quickstart

pip install redis-entraid

from redis import Redis
from redis_entraid.cred_provider import create_from_service_principal

credential_provider = create_from_service_principal(
    CLIENT_ID, CLIENT_SECRET, TENANT_ID
)
client = Redis(host=HOST, port=PORT, ssl=True, credential_provider=credential_provider)
print(client.dbsize())

Verify before relying

  • Whether token renewal happens transparently during long-lived connections or requires explicit refresh calls
  • Performance impact of background token management on connection pool behavior
  • Compatibility with redis-py cluster or sentinel modes beyond standard connections

Package facts

LicenseNot declared unclear
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
redisPyJWTmsalazure-identityrequests
MaintenanceActively maintained 72 days since the last release
First released
Downloads998,939 / month, #4,542 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: redis_entraid-1.2.1-py3-none-any.whl

Tags

Capabilities
azure redis authenticationentra id redis clientmanaged identity redisazure active directory redisservice principal redisredis-py azure integrationazure cache for redis auth
Topics
azure-integrationauthentication

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 › “azure redis authentication”

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

More Database packages

psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
redis Worth it
PyPI · Database · released Jul 2026

Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.

Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.

MITpure Python · 3.10+
268.3Mdownloads / mo
ydb Worth it
PyPI · Database · released Jul 2026

YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.

Install it if you need to connect Python applications to YDB databases.

permissive licensepure Python · 3.10+
210.0Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
sqlparse Worth it
PyPI · Software Development · released Aug 2026

sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.

Install it if you need to manipulate, format, or analyze SQL text programmatically.

BSD-3-Clausepure Python · 3.10+
148.9Mdownloads / mo
dbt-adapters With conditions
PyPI · Database · released Jul 2026

Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.

Apache-2.0pure Python · 3.10.0+
121.3Mdownloads / mo

See also azure-identity · identity · flask-redis · walrus · redislite · fastapi-azure-auth · azure-identity-broker · msal · azure-mgmt-redis · django-redis