All Projects → wechaty → Python Wechaty

wechaty / Python Wechaty

Licence: apache-2.0
Python Wechaty is a Conversational RPA SDK for Chatbot Makers written in Python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Python Wechaty

Wechaty
Conversational RPA SDK for Chatbot Makers
Stars: ✭ 11,647 (+3972.38%)
Mutual labels:  chatbot, whatsapp, wechat
Magento Chatbot
Magento Chatbot Integration with Telegram, Messenger, Whatsapp, WeChat, Skype and wit.ai.
Stars: ✭ 149 (-47.9%)
Mutual labels:  chatbot, whatsapp, wechat
Mojo Weixin
使用Perl语言(不会没关系)编写的个人账号微信/weixin/wechat客户端框架(非GUI),可通过插件提供基于HTTP协议的api接口供其他语言或系统调用
Stars: ✭ 1,181 (+312.94%)
Mutual labels:  chatbot, wechat
Wasapbot
[abandoned ❗] Simple WhatsApp bot written in PHP, respond to private & group messages. Uses Chat-API
Stars: ✭ 89 (-68.88%)
Mutual labels:  chatbot, whatsapp
Whatsappapi
A simple API to integrate chatbots written in Javascript with WhatsApp Web 💬📲 (Store hotfix https://github.com/Zibri/WhatsAppWebApi/blob/master/zstore.js)
Stars: ✭ 94 (-67.13%)
Mutual labels:  chatbot, whatsapp
Me bot
Build a bot that speaks like you!
Stars: ✭ 641 (+124.13%)
Mutual labels:  chatbot, whatsapp
Sulla
👩🏻‍🔬 Javascript Whatsapp api library for chatbots
Stars: ✭ 844 (+195.1%)
Mutual labels:  chatbot, whatsapp
Watomatic
Auto reply app helping you move away from less private messengers like WhatsApp and soon Facebook Messenger
Stars: ✭ 83 (-70.98%)
Mutual labels:  chatbot, whatsapp
Tock
Tock - the open source conversational AI toolkit
Stars: ✭ 175 (-38.81%)
Mutual labels:  chatbot, whatsapp
Messaging Apis
Messaging APIs for multi-platform
Stars: ✭ 1,754 (+513.29%)
Mutual labels:  chatbot, wechat
Wechatyunchart
微信多开多账号机器人 云客服系统 微商营销 系统web协议一键登录 非公众号微信机器人微信群管家 微信自动回复 微信定时发送消息 微信多账号登录 微信网页版本协议多开 一键登录 红包数量提醒 微信用户识别男女签名备注地理位置等,群发 自动发消息 定时发消息 群消息监控 机器人回复 ,定时回复,超时回复 聊天记录保存,聊天记录查看
Stars: ✭ 357 (+24.83%)
Mutual labels:  chatbot, wechat
Sactive Bot
😈 An extensible chat bot framework. sactive-bot is an evolution of the open source hubot project. - https://www.shipengqi.top/sactive-bot .
Stars: ✭ 212 (-25.87%)
Mutual labels:  chatbot, wechat
Wechaty Getting Started
A Starter Project Template for Wechaty works out-of-the-box
Stars: ✭ 330 (+15.38%)
Mutual labels:  chatbot, wechat
Everydaywechat
微信助手:1.每日定时给好友(女友)发送定制消息。2.机器人自动回复好友。3.群助手功能(例如:查询垃圾分类、天气、日历、电影实时票房、快递物流、PM2.5等)
Stars: ✭ 8,688 (+2937.76%)
Mutual labels:  chatbot, wechat
Kotlin Firebase Group Chat
Group and OneonOne chat using firebase built in Kotlin similar to whatsapp.
Stars: ✭ 44 (-84.62%)
Mutual labels:  whatsapp, wechat
Falconmessenger
🌟🌟🌟🌟🌟 Falcon Messenger is a Fast and Beautiful cloud-based messaging app. With iOS and IPadOS Support. Available on the App Store.
Stars: ✭ 310 (+8.39%)
Mutual labels:  whatsapp, wechat
Wechatrobot
个人微信号自动回复、陪聊、查天气、查垃圾分类。新增查看今日新闻和知乎热榜功能。
Stars: ✭ 115 (-59.79%)
Mutual labels:  chatbot, wechat
Venom
Venom is the most complete javascript library for Whatsapp, 100% Open Source.
Stars: ✭ 3,457 (+1108.74%)
Mutual labels:  chatbot, whatsapp
whatsapp-bot
This is a Node.js console app containing Whatsapp handler using reactive methods to response messages as chatbot. Simple but useful project to start developing a complex NON-OFFICIAL Whatsapp chatbots.
Stars: ✭ 33 (-88.46%)
Mutual labels:  chatbot, whatsapp
Chatbot ner
chatbot_ner: Named Entity Recognition for chatbots.
Stars: ✭ 273 (-4.55%)
Mutual labels:  chatbot

python-wechaty PyPI Version PyPI GitHub Actions

Python Wechaty

Python Wechaty Getting Started Python 3.7 Downloads Wechaty in Python

Connecting Chatbots

Powered by Wechaty

Wechaty is a Conversational SDK for Chatbot Makers that can help you create a bot in 9 lines of Python.

Voice of the Developers

"Wechaty is a great solution, I believe there would be much more users recognize it." link
— @Gcaufy, Tencent Engineer, Author of WePY

"太好用,好用的想哭"
@xinbenlv, Google Engineer, Founder of HaoShiYou.org

"最好的微信开发库" link
— @Jarvis, Baidu Engineer

"Wechaty让运营人员更多的时间思考如何进行活动策划、留存用户,商业变现" link
@lijiarui, Founder & CEO of Juzi.BOT.

"If you know js ... try Wechaty, it's easy to use."
— @Urinx Uri Lee, Author of WeixinBot(Python)

See more at Wiki:Voice Of Developer

Join Us

Wechaty is used in many ChatBot projects by thousands of developers. If you want to talk with other developers, just scan the following QR Code in WeChat with secret code python wechaty, join our Wechaty Python Developers' Home.

Wechaty Friday.BOT QR Code

Scan now, because other Wechaty Python developers want to talk with you too! (secret code: python wechaty)

The World's Shortest Python ChatBot: 9 lines of Code

from wechaty import Wechaty

import asyncio
async def main():
    bot = Wechaty()
    bot.on('scan', lambda status, qrcode, data: print('Scan QR Code to login: {}\nhttps://wechaty.js.org/qrcode/{}'.format(status, qrcode)))
    bot.on('login', lambda user: print('User {} logged in'.format(user)))
    bot.on('message', lambda message: print('Message: {}'.format(message)))
    await bot.start()

asyncio.run(main())

Python Wechaty Developing Plan

We already have Wechaty in TypeScript, It will be not too hard to translate the TypeScript(TS) to Python(PY) because wechaty has only 3,000 lines of the TS code, they are well designed and de-coupled by the wechaty-puppet abstraction. So after we have translated those 3,000 lines of TypeScript code, we will almost be done.

As we have already a ecosystem of Wechaty in TypeScript, so we will not have to implement everything in Python, especially, in the Feb 2020, we have finished the wechaty-grpc service abstracting module with the wechaty-puppet-service implmentation.

The following diagram shows out that we can reuse almost everything in TypeScript, and what we need to do is only the block located at the top right of the diagram: Wechaty (Python).

  +--------------------------+ +--------------------------+
  |                          | |                          |
  |   Wechaty (TypeScript)   | |    Wechaty (Python)      |
  |                          | |                          |
  +--------------------------+ +--------------------------+

  +-------------------------------------------------------+
  |                 Wechaty Puppet Service                |
  |                                                       |
  |                (wechaty-puppet-service)               |
  +-------------------------------------------------------+

+---------------------  wechaty-grpc  ----------------------+

  +-------------------------------------------------------+
  |                Wechaty Puppet Abstract                |
  |                                                       |
  |                   (wechaty-puppet)                    |
  +-------------------------------------------------------+

  +--------------------------+ +--------------------------+
  |      Pad Protocol        | |      Web Protocol        |
  |                          | |                          |
  | wechaty-puppet-padplus   | |(wechaty-puppet-puppeteer)|
  +--------------------------+ +--------------------------+
  +--------------------------+ +--------------------------+
  |    Windows Protocol      | |       Mac Protocol       |
  |                          | |                          |
  | (wechaty-puppet-windows) | | (wechaty-puppet-macpro)  |
  +--------------------------+ +--------------------------+

Example: How to Translate TypeScript to Python

There's a 100 lines class named Image in charge of downloading the WeChat image to different sizes.

It is a great example for demonstrating how do we translate the TypeScript to Python in Wechaty Way:

Image Class Source Code

If you are interested in the translation and want to look at how it works, it will be a good start from reading and comparing those two Image class files in TypeScript and Python at the same time.

To-do List

  • TS: TypeScript
  • SLOC: Source Lines Of Code

Wechaty Internal Modules

  1. [ ] Class Wechaty @wj-mCat
  2. [ ] Class Contact
  3. [ ] Class ContactSelf
  4. [ ] Class Message
  5. [ ] Class Room
  6. [ ] Class Image @wj-mCat
  7. [x] Class Accessory @huan
  8. [ ] Class Config @wj-mCat
  9. [ ] Class Favorite
  10. [ ] Class Friendship
  11. [ ] Class MiniProgram
  12. [ ] Class RoomInvitation
  13. [ ] Class Tag
  14. [ ] Class UrlLink

Wechaty External Modules

  1. [ ] Class FileBox
  2. [ ] Class MemoryCard
  3. [ ] Class WechatyPuppet
  4. [ ] Class WechatyPuppetHostie

Usage

WIP...

Requirements

  1. Python 3.7+

Install

pip3 install wechaty

See Also

Static & Instance of Class

Typings

History

v0.6 (Jun 19, 2020)

Python Wechaty Scala Wechaty BETA Released!

Read more from our Multi-language Wechaty Beta Release event from our blog:

v0.4 (Mar 15, 2020) master

Welcome @huangaszaq for joining the project! #42

  1. Add a friendly exception message for PyPI users. #24

v0.1 (Mar 8, 2020)

Welcome @wj-Mcat for joining the project! #4

  1. Starting translate TypeScript of Wechaty to Python
  2. DevOps Setup
    1. Type Checking: mypy & pytype
    2. Unit Testing: pytest
    3. Linting: pylint, pycodestyle, and flake8
    4. CI/CD: GitHub Actions
  3. Publish to PyPI automatically after the tests passed.

v0.0.1 (Aug 25, 2018)

Project created, publish a empty module wechaty on PyPI.

Related Projects

  • Wechaty - Conversatioanl AI Chatot SDK for Wechaty Individual Accounts (TypeScript)
  • Python Wechaty - Python WeChaty Conversational AI Chatbot SDK for Wechat Individual Accounts (Python)
  • Go Wechaty - Go WeChaty Conversational AI Chatbot SDK for Wechat Individual Accounts (Go)
  • Java Wechaty - Java WeChaty Conversational AI Chatbot SDK for Wechat Individual Accounts (Java)
  • Scala Wechaty - Scala WeChaty Conversational AI Chatbot SDK for WechatyIndividual Accounts (Scala)

Badge

Wechaty in Python

[![Wechaty in Python](https://img.shields.io/badge/Wechaty-Python-blue)](https://github.com/wechaty/python-wechaty)

Stargazers over time

Stargazers over time

Contributors

contributor contributor contributor contributor contributor contributor contributor contributor

Committers

  1. @huangaszaq - Chunhong HUANG (黄纯洪)

Creators

Copyright & License

  • Code & Docs © 2018 Wechaty Contributors https://github.com/wechaty
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].