Python Service Puppet for Wechaty
Project description
wechaty-puppet-service
![PyPI GitHub Actions](https://pypi-camo.freetls.fastly.net/5d8de5c595cd9aa218d602f43ffe198d72c37363/68747470733a2f2f6769746875622e636f6d2f776563686174792f707974686f6e2d776563686174792d7075707065742d736572766963652f776f726b666c6f77732f507950492f62616467652e737667)
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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4901f41cbdf36131d07dd3cb2e07401d1628dfeb4b96e43b27ec19d113f2df5a |
|
MD5 | 5720ea441c52c2178a997759b451a11d |
|
BLAKE2b-256 | 06524553c38bdbe2c764b0eaa0d3f168a5f0479f90e6d99e67d3547058739d88 |
Close
Hashes for wechaty_puppet_service-0.8.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 039d0a23f17a12b10ed7b96b6bad0fdd156d09a2eb7c649afa297b649e238584 |
|
MD5 | f5ee4cbe951485f633a782c62437a7ff |
|
BLAKE2b-256 | 7b0d684c23d095668599cc517b732893a6720ccf9a57d41cefcbea4fe3c4d544 |