azure-eventgrid-py

azure-eventgrid-py is a skill for Claude Code from DorianGallo/antigravity-awesome-skills-local. It costs 27 tokens per session (1,102 once invoked), scanned A, a copy of azure-eventgrid-py, MIT.

A Python library for publishing events through Azure Event Grid, Microsoft's event-routing service. It supports CloudEvents, a standard format for describing events, and Azure's own event format.

In plain words
What is it for?
Use it to publish single or multiple events to Event Grid topics and integrate Python services through event notifications.
Why use it?
It handles the client and event formatting needed to connect a Python application to an event-driven publish-and-subscribe system.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the antigravity-awesome-skills plugin — 197 skills shipped together

Good fit Use it to publish single or multiple events to Event Grid topics and integrate Python services through event notifications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/doriangallo/antigravity-awesome-skills-local/azure-eventgrid-py
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add DorianGallo/antigravity-awesome-skills-local --skill azure-eventgrid-py
Clone the repo
git clone --depth 1 https://github.com/DorianGallo/antigravity-awesome-skills-local

Made for: Claude Code.

Or install antigravity-awesome-skills, the plugin that ships this one along with the rest of its 197 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for azure-eventgrid-py

README.md
[![agentmods](https://agentmods.dev/badge/skills/doriangallo/antigravity-awesome-skills-local/azure-eventgrid-py/github.svg)](https://agentmods.dev/skills/doriangallo/antigravity-awesome-skills-local/azure-eventgrid-py)
Your own site
<a href="https://agentmods.dev/skills/doriangallo/antigravity-awesome-skills-local/azure-eventgrid-py"><img src="https://agentmods.dev/badge/skills/doriangallo/antigravity-awesome-skills-local/azure-eventgrid-py/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for azure-eventgrid-py

Your own site · 80×15
<a href="https://agentmods.dev/skills/doriangallo/antigravity-awesome-skills-local/azure-eventgrid-py"><img src="https://agentmods.dev/badge/skills/doriangallo/antigravity-awesome-skills-local/azure-eventgrid-py.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,102 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 78% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.01102
Opus 5 $0.00014 $0.00551
Sonnet 5 $0.00005 $0.00220
Haiku 4.5 $0.00003 $0.00110

Measured 8d ago against content hash 4f173fb341c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

azure-eventgrid-py scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

78% identical to azure-eventgrid-py — 11 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/antigravity-awesome-skills-claude/skills/azure-eventgrid-py/SKILL.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Azure Event Grid SDK for Python

Event routing service for building event-driven applications with pub/sub semantics.

Installation

pip install azure-eventgrid azure-identity

Environment Variables

EVENTGRID_TOPIC_ENDPOINT=https://<topic-name>.<region>.eventgrid.azure.net/api/events
EVENTGRID_NAMESPACE_ENDPOINT=https://<namespace>.<region>.eventgrid.azure.net

Authentication

from azure.identity import DefaultAzureCredential
from azure.eventgrid import EventGridPublisherClient

credential = DefaultAzureCredential()
endpoint = "https://<topic-name>.<region>.eventgrid.azure.net/api/events"

client = EventGridPublisherClient(endpoint, credential)

Event Types

Format Class Use Case
Cloud Events 1.0 CloudEvent Standard, interoperable (recommended)
Event Grid Schema EventGridEvent Azure-native format

Publish CloudEvents

from azure.eventgrid import EventGridPublisherClient, CloudEvent
from azure.identity import DefaultAzureCredential

client = EventGridPublisherClient(endpoint, DefaultAzureCredential())

# Single event
event = CloudEvent(
    type="MyApp.Events.OrderCreated",
    source="/myapp/orders",
    data={"order_id": "12345", "amount": 99.99}
)
client.send(event)

# Multiple events
events = [
    CloudEvent(
        type="MyApp.Events.OrderCreated",
        source="/myapp/orders",
        data={"order_id": f"order-{i}"}
    )
    for i in range(10)
]
client.send(events)

Publish EventGridEvents

from azure.eventgrid import EventGridEvent
from datetime import datetime, timezone

event = EventGridEvent(
    subject="/myapp/orders/12345",
    event_type="MyApp.Events.OrderCreated",
    data={"order_id": "12345", "amount": 99.99},
    data_version="1.0"
)

client.send(event)

Event Properties

CloudEvent Properties

event = CloudEvent(
    type="MyApp.Events.ItemCreated",      # Required: event type
    source="/myapp/items",                 # Required: event source
    data={"key": "value"},                 # Event payload
    subject="items/123",                   # Optional: subject/path
    datacontenttype="application/json",   # Optional: content type
    dataschema="https://schema.example",  # Optional: schema URL
    time=datetime.now(timezone.utc),      # Optional: timestamp
    extensions={"custom": "value"}         # Optional: custom attributes
)

Read the full file on GitHub · 177 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 177 lines · 27 tokens per session scan A 4f173fb341c0

Subscribe to this mod's changes

azure-eventgrid-py is a skill published in the GitHub repository DorianGallo/antigravity-awesome-skills-local (2 stars, last pushed yesterday), licensed MIT. It adds 27 tokens to every session and 1,102 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 78% identical to azure-eventgrid-py, differing in 11 lines, and is treated as a copy.