Python Service Puppet for Wechaty
Project description
wechaty-puppet-service
Python Service Puppet for Wechaty
Features
- Consume Wechaty Puppet Service
Usage
import asyncio
from wechaty import Wechaty
from wechaty_puppet_service import PuppetService
bot = 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
WECHATY_PUPPET_SERVICE_TOKEN=secret python bot.py
or you can use TOKEN
or token
environment variable alias name to set token, for example:
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)
- Init Python version
- Published to PyPI
Authors
- @wj-Mcat - Jingjing WU (吴京京)
- @huan - (李卓桓) zixia@zixia.net
Copyright & License
- Code & Docs © 2020-now Huan LI <zixia@zixia.net>
- Code released under the Apache-2.0 License
- Docs released under Creative Commons
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for wechaty-puppet-service-0.8.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 683616a8d17787abffd9acdf93526b9b1a8e03141d2b11d0c5650e1733411b99 |
|
MD5 | 9cf1ccdb1506b2e05140c16082d68134 |
|
BLAKE2b-256 | e6d361ebc84d3641ac9cc85b8531079ad4ceb0a1e02614bd08ed405743fc04ae |
Close
Hashes for wechaty_puppet_service-0.8.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 813e3d13a5315cc0652c2fe5341f0378514b6de0e238959a8af1c0c530a28001 |
|
MD5 | b7f2ab24047536a3d409a941aa6c9cb6 |
|
BLAKE2b-256 | bcb008dba2746b3d87e86ffc1052f26ba0455a2a8f3199db52f0d721999471bf |