{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/3"}],"enrichment":{"capability":"Python SDK for building DingTalk chatbots and event handlers using Stream Mode, which connects to DingTalk's messaging and callback APIs via WebSocket.","skillfed_tags":["dingtalk-integration","chatbot-framework","websocket-client"],"use_cases":["Build a DingTalk chatbot that responds to user messages in real time without setting up external webhooks or polling.","Handle card callback events (button clicks, form submissions) from DingTalk cards sent by your application.","Integrate DingTalk event notifications into an existing asyncio application using client.start() instead of start_forever().","Process multiple event types (messages, callbacks, approvals) by registering different handler classes for each topic.","Deploy a stateless bot that maintains a single persistent connection to DingTalk rather than multiple HTTP endpoints."],"what_it_does":"dingtalk-stream is a Python SDK that implements DingTalk's Stream Mode protocol for building chatbots and event handlers. Instead of polling or managing webhooks, it opens a persistent WebSocket connection to DingTalk's servers and receives events (messages, callbacks, card interactions) asynchronously. You define handler classes that process incoming events and send replies back through the same connection.\n\nThe SDK wraps the async complexity: you write a handler class with a process() method, register it with a DingTalkStreamClient, and call start_forever() to begin listening. It handles credential management, WebSocket lifecycle, and message acknowledgment. The library depends on aiohttp, requests, and websockets for its HTTP and WebSocket transport layers.","worth_installing":"Yes, if you are building a DingTalk chatbot or event handler in Python. The SDK is actively maintained, has low install friction, uses a permissive MIT license, and is classified as Alpha development status. No known vulnerabilities. The main gotcha is that you must obtain DingTalk credentials and understand that Stream Mode requires a persistent WebSocket connection rather than stateless HTTP webhooks."},"id":"dingtalk-stream","links":{"html":"https://skillfed.io/packages/dingtalk-stream","md":"https://skillfed.io/packages/dingtalk-stream.md","pypi":"https://pypi.org/project/dingtalk-stream/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-10-24","license_spdx":null,"license_treatment":"permissive","name":"dingtalk-stream","python_support":"unspecified","summary":"A Python library for sending messages to DingTalk chatbot"},"popularity":{"monthly_downloads":793984,"position":5039,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.24.3"}
