Wechaty is All You Need: Python, Go, and Java Translation Project #1927
Replies: 3 comments
-
Multi-language Wechaty Getting Started Repositories:
If you want to get started with Wechaty in those languages, please feel free to use them and let us know what you think! |
Beta Was this translation helpful? Give feedback.
-
Multi-language Wechaty Beta Released!
Multi-language Wechaty Beta Released! We have Python, Go, Java, and Scala released on June 19, 2020! Read more from our blog post: https://wechaty.js.org/2020/06/19/multi-language-wechaty-beta-release/ |
Beta Was this translation helpful? Give feedback.
-
After eight months, we now have lots of language of Wechaty available for all our developers who are using different programming languages! 👇 Multi-language Wechaty
Thank you to all our contributors and authors of our multi-language wechaty projects, Wechaty get better and better with great works from you, and I appreciate all the efforts from our community, let's close this issue and keep moving on, to make the chatbot to be easy to be developed! |
Beta Was this translation helpful? Give feedback.
-
We already have Wechaty in TypeScript, It will be not too hard to translate the TypeScript(TS) to Python, Go, and Java languages 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 an ecosystem of Wechaty in TypeScript, so we will not have to implement everything in other languages, especially, in Feb 2020, we have finished the @chatie/grpc service abstracting module with the wechaty-puppet-hostie implementation.
The Wechaty Way
Python Wechaty
Go Wechaty
Java Wechaty
Architecture
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)
.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
Wechaty Internal Modules
Wechaty External Modules
Beta Was this translation helpful? Give feedback.
All reactions