https://github.com/wechaty/python-wechaty-puppet-service
Python Puppet Service Client for Wechaty
https://github.com/wechaty/python-wechaty-puppet-service
chatbot rpa sdk
Last synced: 3 months ago
JSON representation
Python Puppet Service Client for Wechaty
- Host: GitHub
- URL: https://github.com/wechaty/python-wechaty-puppet-service
- Owner: wechaty
- License: apache-2.0
- Created: 2020-03-09T16:09:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-16T10:20:36.000Z (about 2 years ago)
- Last Synced: 2025-06-06T10:11:35.331Z (4 months ago)
- Topics: chatbot, rpa, sdk
- Language: Python
- Homepage: https://pypi.org/project/wechaty-puppet-service
- Size: 188 KB
- Stars: 10
- Watchers: 5
- Forks: 15
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# wechaty-puppet-service [](https://www.python.org/downloads/release/python-370/) [](https://github.com/wechaty/python-wechaty-puppet/actions?query=workflow%3APyPI)
[](https://github.com/wechaty/wechaty)

[](https://pypi.org/project/wechaty-puppet-service)
Python Service Puppet for Wechaty
## Features
1. Consume Wechaty Puppet Service
## Usage
```python
import asyncio
from wechaty import Wechaty
from wechaty_puppet_service import PuppetServicebot = Wechaty(PuppetService("your-token-here"))
bot.on('message', lambda x: print(x))asyncio.run(bot.start())
```## Environment Variables
### 1 `WECHATY_PUPPET_SERVICE_TOKEN`
The token set to this environment variable will become the default value of `puppetOptions.token`
```sh
WECHATY_PUPPET_SERVICE_TOKEN=secret python bot.py
```or you can use `TOKEN` or `token` environment variable alias name to set **token**, for example:
```shell
TOKEN=secret python bot.py
# or
token=secret python bot.py
```## History
### master
### v0.7 (Mar, 2021)
Rename from `wechaty-puppet-hostie` -> `wechaty-puppet-service`
### v0.0.1 (Mar 10, 2020)
1. Init Python version
1. Published to PyPI## Authors
- [@wj-Mcat](https://github.com/wj-Mcat) - Jingjing WU (吴京京)
- [@huan](https://github.com/huan) - ([李卓桓](http://linkedin.com/in/zixia)) zixia@zixia.net## Copyright & License
* Code & Docs © 2020-now Huan LI \
* Code released under the Apache-2.0 License
* Docs released under Creative Commons