--- id: azure-eventgrid version: "4.22.1" license: MIT License license_treatment: permissive maintenance: active --- # azure-eventgrid — Microsoft Azure Event Grid Client Library for Python License: permissive · Maintenance: active · Downloads: 6.0M/mo ## What it is and what it does Azure Event Grid is a Python client library for Azure's managed event routing service. It provides two main client classes: EventGridPublisherClient for sending events to Event Grid topics, and EventGridConsumerClient for receiving, acknowledging, and managing events from Event Grid Namespaces. The library abstracts the HTTP communication and credential handling needed to interact with Azure Event Grid resources, supporting both key-based authentication (AzureKeyCredential) and token-based authentication via Azure AD. It handles two resource tiers: Event Grid Namespaces, which support both pull and push delivery models, and Event Grid Basic, which supports push-only delivery. The package depends on azure-core for common Azure SDK patterns, isodate for date/time handling, and typing-extensions for runtime type hints. It requires Python 3.10 or later and is maintained as part of the official Azure SDK for Python. The library is production-ready (GA status) and actively maintained, with recent releases and an established repository. Use it for: - Send custom events to an Event Grid Basic topic using key-based authentication for simple push-only event distribution. - Publish events to an Event Grid Namespace topic using Azure AD credentials for enterprise identity-based access control. - Consume events from an Event Grid Namespace subscription with pull-based delivery for reliable message processing. - Acknowledge, release, or reject received events to manage subscription state and retry logic in namespace consumers. - Generate and use SAS credentials for temporary, scoped access to Event Grid resources without sharing account keys. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Publishes and consumes events through Azure Event Grid, a managed event routing service supporting both Event Grid Namespaces (pull and push delivery) and Event Grid Basic (push only). Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT License, and provides low-friction installation with minimal dependencies. It is the official client for Azure Event Grid and is suitable for any Python application that needs to publish or consume events via Azure's managed event routing service. Requires Python 3.10 or later and an Azure subscription with an Event Grid resource. ## Install pip install azure-eventgrid uv add azure-eventgrid poetry add azure-eventgrid ## Installing azure-eventgrid Before you install: Low install friction with three lightweight runtime dependencies. Active maintenance with a release 16 days ago; the repository is actively developed with recent commits. License in practice: MIT License permits commercial and private use with minimal restrictions, making it suitable for most projects. Quickstart: pip install azure-eventgrid from azure.eventgrid import EventGridPublisherClient from azure.core.credentials import AzureKeyCredential import os endpoint = os.environ["EVENTGRID_TOPIC_ENDPOINT"] topic_key = os.environ["EVENTGRID_TOPIC_KEY"] credential = AzureKeyCredential(topic_key) client = EventGridPublisherClient(endpoint, credential) Python 3.10 or later required; an Azure subscription and an Event Grid Namespace or Event Grid Basic resource must exist before instantiating a client. Verify before relying: - Whether the package supports async variants of publish and consume operations beyond what the description excerpt shows. - Performance characteristics and throughput limits for high-volume event publishing or consumption scenarios. - Date/time handling specifics provided by isodate dependency. ## Package facts - License: MIT License (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 6.0M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags azure event grid client, event routing publish subscribe, azure event grid namespaces, event grid basic publisher, azure event consumer, managed event delivery, cloud event routing, azure-sdk, event-routing, cloud-messaging [View on SkillFed](https://skillfed.io/packages/azure-eventgrid) · [View on PyPI](https://pypi.org/project/azure-eventgrid/)