wiz-feishu
Project description
wiz_feishu
from wiz_message.message import Robot
from wiz_message import elements
from wiz_feishu.generator import FeishuRobotMessageGenerator
if __name__ == '__main__':
m = Robot("title", "red")
m.add_element(elements.Note("hello"))
m.add_element(elements.Markdown("hello"))
m.add_element(elements.Hr())
m.add_element(elements.MarkdownAt("ou_004b55017df575ea6182a8643bb6e53d"))
m.add_element(elements.TextAndButton("text", elements.Button("button", "type", "id", None)))
m.add_element(elements.TextAndButton("text", elements.Button("button", "type", "id", elements.Confirm("title", "content"))))
m.add_element(elements.TextAndOptions("text", elements.Options("placeholder", "type", "id", [elements.OptionItem("text", "value")], elements.Confirm("title", "content"))))
m.add_element(elements.TextAndDatePicker("text", elements.DatePicker("placeholder", "type", "id", elements.Confirm("title", "content"), )))
FeishuRobotMessageGenerator.to_message(m, )
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
wiz-feishu-2.0.1.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for wiz_feishu-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0912cbd66013922f4e1f03635afbedd94a99ab047eb8fac3460121956e2ad0c8 |
|
MD5 | 428923d8bdc11f7aa460ec073298ed8e |
|
BLAKE2b-256 | 11f0420915f3a589176e1f912060cd2abf26575d0f9f00de61ccda525edb2165 |