Skip to main content

Python wrapper for WeChat Work (WeCom) Audit API

Project description

WeCom Audit

企业微信会话存档API的Python封装,提供简单易用的接口来获取企业微信的会话记录。

安装

pip install wecom-audit

功能特点

  • 支持获取会话记录
  • 支持下载媒体文件
  • 提供简单易用的Python API
  • 基于企业微信官方C语言SDK封装

使用示例

from wecom_audit import WeComAudit

client = WeComAudit("config.json")

# 获取会话记录
messages = client.get_chat_data(seq=0, limit=100)
for msg in messages:
    print(f"From: {msg.from_user}, Content: {msg.content}")

# 下载媒体文件
client.download_media("media_id", "output_file.jpg")

依赖项

  • Python >= 3.11
  • CMake
  • OpenSSL开发库

许可证

MIT

贡献

欢迎提交问题和Pull Request!

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

wecom_audit-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

wecom_audit-0.1.1-cp311-cp311-manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11

File details

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

File metadata

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

File hashes

Hashes for wecom_audit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2f8323b5f10621c52942626a482f82795dae6c8244b952cedbde32aaef36552e
MD5 52f61efaa92d083adda7d0a56ab5bfea
BLAKE2b-256 a98c53fc5f6823822706256a729027b565cc4f82a9254531a8da317df6666a4c

See more details on using hashes here.

File details

Details for the file wecom_audit-0.1.1-cp311-cp311-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for wecom_audit-0.1.1-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d6fc293b09ca83960408f681f9cc3d9ebf4de62a5fb45cf2f19b8dc7e09b577d
MD5 ce2db98bc78731385a9dc8eaeaa0096f
BLAKE2b-256 b7f5602ca6b7e3981a331a324ed0886fc18e94d6b065aa405b43ecce65320ff0

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