{"id":17118079,"url":"https://github.com/micro-sheep/wechat_work","last_synced_at":"2025-06-30T19:04:57.588Z","repository":{"id":39492003,"uuid":"468735302","full_name":"Micro-sheep/wechat_work","owner":"Micro-sheep","description":"一个基于企业微信开发的用于消息通知的 Python 库","archived":false,"fork":false,"pushed_at":"2024-02-28T16:34:04.000Z","size":7,"stargazers_count":77,"open_issues_count":5,"forks_count":30,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-04T02:29:30.372Z","etag":null,"topics":["message","notification","wechat","wechatwork"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Micro-sheep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-11T12:05:29.000Z","updated_at":"2025-04-26T07:43:19.000Z","dependencies_parsed_at":"2024-10-28T07:46:38.941Z","dependency_job_id":null,"html_url":"https://github.com/Micro-sheep/wechat_work","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Micro-sheep/wechat_work","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Micro-sheep%2Fwechat_work","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Micro-sheep%2Fwechat_work/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Micro-sheep%2Fwechat_work/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Micro-sheep%2Fwechat_work/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Micro-sheep","download_url":"https://codeload.github.com/Micro-sheep/wechat_work/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Micro-sheep%2Fwechat_work/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262834786,"owners_count":23371849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["message","notification","wechat","wechatwork"],"created_at":"2024-10-14T17:53:24.335Z","updated_at":"2025-06-30T19:04:57.565Z","avatar_url":"https://github.com/Micro-sheep.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 企业微信工具\n\n这是一个基于企业微信 API 开发的用于消息通知的 Python 库\n\n## Guide\n\n开始之前，请先跟随一下步骤创建一个企业微信应用\n\n- [注册/登录企业微信管理后台](https://work.weixin.qq.com/)\n- [创建/查看/管理应用](https://work.weixin.qq.com/wework_admin/frame#apps)\n- [查看企业ID](https://work.weixin.qq.com/wework_admin/frame#profile)\n- [查看企业微信成员信息](https://work.weixin.qq.com/wework_admin/frame#contacts)\n- [添加插件以支持推送到个人微信](https://work.weixin.qq.com/wework_admin/frame#profile/wxPlugin)\n\n## Installation\n\n- 通过 `pip` 安装\n\n```bash\npip install wechat_work\n```\n\n- 通过 `git` 和 `pip` 安装\n\n```bash\npip install git+https://github.com/Micro-sheep/wechat_work.git\n```\n\n## Examples\n\n```python\nfrom wechat_work import WechatWork\ncorpid = '企业 ID'\nappid = '企业应用 ID'\ncorpsecret = '企业应用 Secret'\nusers = ['企业微信的用户账号1', '企业微信的用户账号2']\nw = WechatWork(corpid=corpid,\n               appid=appid,\n               corpsecret=corpsecret)\n# 发送文本\nw.send_text('Hello World!', users)\n# 发送 Markdown\nw.send_markdown('# Hello World', users)\n# 发送图片\nw.send_image('./hello.jpg', users)\n# 发送文件\nw.send_file('./hello.txt', users)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicro-sheep%2Fwechat_work","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicro-sheep%2Fwechat_work","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicro-sheep%2Fwechat_work/lists"}