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.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for wiz_feishu-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 919cf306f8f6d515bbf9f18c061a49cf7e0508692dd57274bcce6741f6e63673 |
|
MD5 | a9819026498a699b0719bd62fa9d6f1f |
|
BLAKE2b-256 | eb76979512ee3f5be19219bc0b7da7bf35112e7ca5f36408822c43cbeb6c0949 |