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
File details
Details for the file wechaty-puppet-service-0.8.6.tar.gz
.
File metadata
- Download URL: wechaty-puppet-service-0.8.6.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4901f41cbdf36131d07dd3cb2e07401d1628dfeb4b96e43b27ec19d113f2df5a |
|
MD5 | 5720ea441c52c2178a997759b451a11d |
|
BLAKE2b-256 | 06524553c38bdbe2c764b0eaa0d3f168a5f0479f90e6d99e67d3547058739d88 |
File details
Details for the file wechaty_puppet_service-0.8.6-py3-none-any.whl
.
File metadata
- Download URL: wechaty_puppet_service-0.8.6-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 039d0a23f17a12b10ed7b96b6bad0fdd156d09a2eb7c649afa297b649e238584 |
|
MD5 | f5ee4cbe951485f633a782c62437a7ff |
|
BLAKE2b-256 | 7b0d684c23d095668599cc517b732893a6720ccf9a57d41cefcbea4fe3c4d544 |