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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0d274af4e6ebd28e81f0511a551a05269c9a96d59bc520de062450240e8c773 |
|
MD5 | 6e4aeac214f216bcfb893210693aff05 |
|
BLAKE2b-256 | 58df683fd258ccd450a55954c9c2b6d7249a520d0cdd61095bd0221c6ec0b385 |
Close
Hashes for wechaty_puppet_service-0.8.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8daf3335091d9f00cfeb7d2322f7ab2dcd43c7d195b323e4d00a1891cddbb938 |
|
MD5 | 3d2fd3e619b5e6676666131c195cdfbb |
|
BLAKE2b-256 | 8fefcd5ef5dc9237820c31f6f90283e02ca3fe6a057e43072ba6599ba46bbb4a |