Skip to main content

PyFeishu

GitHub issues GitHub forks GitHub stars GitHub license contributors PyPI PyPI - Python Version Downloads

This is a msg-robot for feishu

Install

python -m pip install pyfeishu

Getting Started

send text msg

import pyfeishu
bot = pyfeishu.FeishuBot(app_id, app_secret)
msg = {"text": "test content"}
# @single user
# msg = {"text": "<at user_id='ou_xxx'>LiuKe</at>  \ntest content"}
# @all user
# msg = {"text": "<at  user_id='all'>所有人</at>  \ntest content"}
bot.send_msg(msg, 'chat_id'))

send image msg

image_key = bot.upload_image("img_path")
msg = {"image_key": image_key}
bot.send_msg(msg, 'chat_id', 'image')

Features

  • Automatically token management
  • Get chat id
  • Send text msg
  • Send rich text
  • Send image msg

Contributing

Contributions are welcome.
If you've found a bug within this project, please open an issue to discuss what you would like to change.
If it's an issue with the API, please report any new issues at pyfeishu issues

Release files for PyFeishu 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for PyFeishu 0.2.3
File Interpreter ABI Platform
PyFeishu-0.2.3-py3-none-any.whl Python 3 none any Details

Release files / PyFeishu-0.2.3-py3-none-any.whl

Download URL PyFeishu-0.2.3-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d9f379ae527b5cb0de75bd2f8adedd46f376fe402d7f11b6f2605cca4ed6eb8
BLAKE2b-256 checksum
How to use checksums
dc7125f42d562c1088e22a7bc7760462cc123e18e62b52af4e2088f8f920334c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.9

Release history Release notifications | RSS feed

This release

0.2.3 This release

1 release file

0.2.2

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page