Skip to main content

No project description provided

Project description

DingTalk Robot

This project is a DingTalk robot implemented using Python's aiohttp library.

Features

  • Asynchronous message handling
  • Supports all message types

Usage

import asyncio

from dingtalk_robot import Robot
from dingtalk_robot.request import RequestBody, TextBody
from dingtalk_robot.response import ResponseBody

async def send(request_body: RequestBody) -> ResponseBody:
    async with Robot(access_token="access_token", secret="secret") as robot:
        return await robot.send_message(request_body)

text_msg: RequestBody = RequestBody.text_message(text=TextBody(content="Hello World!"))

response = asyncio.run(send(text_msg))

print(f"response[code={response.errcode}]: {response.errmsg}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dtalk_robot-0.1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dtalk_robot-0.1.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file dtalk_robot-0.1.0.tar.gz.

File metadata

  • Download URL: dtalk_robot-0.1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Windows/11

File hashes

Hashes for dtalk_robot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ec8cd443a078c6c7f1b3b5b8f5c113233cd5e009a071d3a1d3d8bdd6035bdbc1
MD5 a2dedf964e8e232f4abd626b28fd2310
BLAKE2b-256 41e931e36224c7fbe15d2b6fa91bc3dbd8f10078ab74879227899f7f6075441f

See more details on using hashes here.

File details

Details for the file dtalk_robot-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dtalk_robot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Windows/11

File hashes

Hashes for dtalk_robot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a3d012ce7f17d17e1a4c2695863fa4bcbb369f6bea01307db7e60746a46f03a8
MD5 8146310eb6aae8eaa8016c36cdd01834
BLAKE2b-256 0d8861c0067d1a8c20af06ade2d13f970901379a7b47673c3ecb8cf66a7f8f48

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page