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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 380f92cbf545bd5a657deee26d41ef6fdec7e81f03c407f93af8ce817c13ed17 |
|
MD5 | c4a0b38b07530156d62917561072a912 |
|
BLAKE2b-256 | a3d709bec08a2e83fb53097841c2d344dc9ca9a5f1d9917543e826da19908ce0 |
Close
Hashes for wechaty_puppet_service-0.8.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c138180af2a6e7f8485d5e7ef999289c9b8e2a9a7539a46d9e77e114fa154b4a |
|
MD5 | 18c477b9b56453053c77b2dd48af53ad |
|
BLAKE2b-256 | a9e9c5be1f701bb3b6e8f5a43b3bf6e1ac6b07e6d52f17f6eaf97ed019a5c334 |