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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94317d6f10ce4980c95ee46ec30c8b1e17b41249e56f97b7816bbbd1f1f6e14c |
|
MD5 | 935a7367e8f5ba772c1c641c5d2e6d12 |
|
BLAKE2b-256 | 034a365730f224bda72ea7ad0735716e07c418c9e676a7ceb8681d1cfddd93c6 |
Close
Hashes for wechaty_puppet_service-0.8.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 602c43d5f9628dc5c67d3cf216f3ffc30c236490fdc6c94a136c225722acada7 |
|
MD5 | a1c2c39bae4d572670689b8f976ddd11 |
|
BLAKE2b-256 | b829846ab39ec542c22982fdc1c7c4b8a5582f9177dc68fda0c12ceb0e3fe3f7 |