Skip to main content

A Python package for pushing messages to Feishu (Lark)

Project description

NAC Pusher

一个用于向飞书(Lark)推送消息的Python包。

安装

pip install nac-pusher

使用方法

在使用之前,请设置以下环境变量:

  • FEISHU_APP_ID: 飞书应用的App ID
  • FEISHU_APP_SECRET: 飞书应用的App Secret

在Linux/Mac系统中设置环境变量:

export FEISHU_APP_ID=your_app_id
export FEISHU_APP_SECRET=your_app_secret

在Windows系统中设置环境变量:

set FEISHU_APP_ID=your_app_id
set FEISHU_APP_SECRET=your_app_secret

然后在Python代码中使用:

from nac_pusher.feishu import FeishuBot

bot = FeishuBot()
bot.append_push_txt('Hello, World!').send()

许可证

本项目采用MIT许可证 - 详见LICENSE文件了解详情。

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

nac_pusher-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

nac_pusher-0.1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file nac_pusher-0.1.1.tar.gz.

File metadata

  • Download URL: nac_pusher-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for nac_pusher-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6e153d54104f27a9ff08e0d7c68d14d549d5db72515f269acf29115da6cc7d2e
MD5 2061f0571d690ed6af8f09e3763fe9fa
BLAKE2b-256 27af48c10432f1cbbe405847cd276e04c282a17351aabdaf51367fc56c2e6d31

See more details on using hashes here.

File details

Details for the file nac_pusher-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: nac_pusher-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for nac_pusher-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6992a0ea44b023b9192956e18e54d2e0f4748b9cfd9aa7db05bcf4d28cdeb8d3
MD5 a13eef2509d38df6987c648db58b7716
BLAKE2b-256 18a9ff7e55f2a80ecd1ddd3e135359f3cc38c6fdf3143d1ca2885a05e01e0f1f

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