wechaty-puppet-service


Namewechaty-puppet-service JSON
Version 0.8.10 PyPI version JSON
download
home_pagehttps://github.com/wechaty/python-wechaty-puppet-service
SummaryPython Service Puppet for Wechaty
upload_time2022-06-28 01:46:20
maintainer
docs_urlNone
authorHuan LI (李卓桓)
requires_python
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements pyee requests wechaty-grpc ping3
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # wechaty-puppet-service [![Python 3.7](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/release/python-370/) [![PyPI GitHub Actions](https://github.com/wechaty/python-wechaty-puppet-service/workflows/PyPI/badge.svg)](https://github.com/wechaty/python-wechaty-puppet/actions?query=workflow%3APyPI)

[![Powered by Wechaty](https://img.shields.io/badge/Powered%20By-Wechaty-brightgreen.svg)](https://github.com/wechaty/wechaty)

![Service](https://wechaty.github.io/wechaty-puppet-service/images/hostie.png)

[![PyPI Version](https://img.shields.io/pypi/v/wechaty-puppet-service?color=blue)](https://pypi.org/project/wechaty-puppet-service)
![PyPI - Downloads](https://img.shields.io/pypi/dm/wechaty-puppet-service?color=blue)

Python Service Puppet for Wechaty

## Features

1. Consume Wechaty Puppet Service

## Usage

```python
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`

```sh
WECHATY_PUPPET_SERVICE_TOKEN=secret python bot.py
```

or you can use `TOKEN` or `token` environment variable alias name to set **token**, for example:

```shell
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)

1. Init Python version
1. Published to PyPI

## Authors

- [@wj-Mcat](https://github.com/wj-Mcat) - Jingjing WU (吴京京)
- [@huan](https://github.com/huan) - ([李卓桓](http://linkedin.com/in/zixia)) 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



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/wechaty/python-wechaty-puppet-service",
    "name": "wechaty-puppet-service",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Huan LI (\u674e\u5353\u6853)",
    "author_email": "zixia@zixia.net",
    "download_url": "https://files.pythonhosted.org/packages/7d/fe/ff47d2dee99e6f01056445b82fed12fca84729a793bf33cc7c793c25436f/wechaty-puppet-service-0.8.10.tar.gz",
    "platform": null,
    "description": "# wechaty-puppet-service [![Python 3.7](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/release/python-370/) [![PyPI GitHub Actions](https://github.com/wechaty/python-wechaty-puppet-service/workflows/PyPI/badge.svg)](https://github.com/wechaty/python-wechaty-puppet/actions?query=workflow%3APyPI)\n\n[![Powered by Wechaty](https://img.shields.io/badge/Powered%20By-Wechaty-brightgreen.svg)](https://github.com/wechaty/wechaty)\n\n![Service](https://wechaty.github.io/wechaty-puppet-service/images/hostie.png)\n\n[![PyPI Version](https://img.shields.io/pypi/v/wechaty-puppet-service?color=blue)](https://pypi.org/project/wechaty-puppet-service)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/wechaty-puppet-service?color=blue)\n\nPython Service Puppet for Wechaty\n\n## Features\n\n1. Consume Wechaty Puppet Service\n\n## Usage\n\n```python\nimport asyncio\nfrom wechaty import Wechaty\nfrom wechaty_puppet_service import PuppetService\n\nbot = Wechaty(PuppetService(\"your-token-here\"))\nbot.on('message', lambda x: print(x))\n\nasyncio.run(bot.start())\n```\n\n## Environment Variables\n\n### 1 `WECHATY_PUPPET_SERVICE_TOKEN`\n\nThe token set to this environment variable will become the default value of `puppetOptions.token`\n\n```sh\nWECHATY_PUPPET_SERVICE_TOKEN=secret python bot.py\n```\n\nor you can use `TOKEN` or `token` environment variable alias name to set **token**, for example:\n\n```shell\nTOKEN=secret python bot.py\n# or\ntoken=secret python bot.py\n```\n\n## History\n\n### master\n\n### v0.7 (Mar, 2021)\n\nRename from `wechaty-puppet-hostie` -> `wechaty-puppet-service`\n\n### v0.0.1 (Mar 10, 2020)\n\n1. Init Python version\n1. Published to PyPI\n\n## Authors\n\n- [@wj-Mcat](https://github.com/wj-Mcat) - Jingjing WU (\u5434\u4eac\u4eac)\n- [@huan](https://github.com/huan) - ([\u674e\u5353\u6853](http://linkedin.com/in/zixia)) zixia@zixia.net\n\n## Copyright & License\n\n* Code & Docs \u00a9 2020-now Huan LI \\<zixia@zixia.net\\>\n* Code released under the Apache-2.0 License\n* Docs released under Creative Commons\n\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Python Service Puppet for Wechaty",
    "version": "0.8.10",
    "project_urls": {
        "Homepage": "https://github.com/wechaty/python-wechaty-puppet-service"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d0306c6b447a0945e4566e8fde40f5c701c1ab9dbbfaa5e20a8c799852e15c17",
                "md5": "fbfb29823a11b73b883b2ac7d3e384af",
                "sha256": "10a1f2c3b3f958f648485a188b8774fcd02620a850e7dbd5e215cd1479ac0673"
            },
            "downloads": -1,
            "filename": "wechaty_puppet_service-0.8.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fbfb29823a11b73b883b2ac7d3e384af",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 17375,
            "upload_time": "2022-06-28T01:46:18",
            "upload_time_iso_8601": "2022-06-28T01:46:18.993688Z",
            "url": "https://files.pythonhosted.org/packages/d0/30/6c6b447a0945e4566e8fde40f5c701c1ab9dbbfaa5e20a8c799852e15c17/wechaty_puppet_service-0.8.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7dfeff47d2dee99e6f01056445b82fed12fca84729a793bf33cc7c793c25436f",
                "md5": "1a7bd27beaf2c9ce577b80a7bcc491af",
                "sha256": "7709e8b8a5b5a2f234d6dfb4ca47d577f27f9bcd2168acfa48bedaf281594c43"
            },
            "downloads": -1,
            "filename": "wechaty-puppet-service-0.8.10.tar.gz",
            "has_sig": false,
            "md5_digest": "1a7bd27beaf2c9ce577b80a7bcc491af",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 16533,
            "upload_time": "2022-06-28T01:46:20",
            "upload_time_iso_8601": "2022-06-28T01:46:20.573653Z",
            "url": "https://files.pythonhosted.org/packages/7d/fe/ff47d2dee99e6f01056445b82fed12fca84729a793bf33cc7c793c25436f/wechaty-puppet-service-0.8.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-06-28 01:46:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "wechaty",
    "github_project": "python-wechaty-puppet-service",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "pyee",
            "specs": []
        },
        {
            "name": "requests",
            "specs": []
        },
        {
            "name": "wechaty-grpc",
            "specs": [
                [
                    "~=",
                    "0.20.19"
                ]
            ]
        },
        {
            "name": "ping3",
            "specs": []
        }
    ],
    "lcname": "wechaty-puppet-service"
}
        
Elapsed time: 0.06659s