# bottender-py
Project description
[![travis-ci][travis-image]][travis-url] [![pypi-version][pypi-image]][pypi-url] [![codecov][codecov-image]][codecov-url]
[travis-image]: https://travis-ci.org/stegben/bottender-py.svg?branch=master
[travis-url]: https://travis-ci.org/stegben/bottender-py
[pypi-image]: https://badge.fury.io/py/bottender-py.svg
[pypi-url]: https://badge.fury.io/py/bottender-py
[codecov-image]: https://codecov.io/gh/stegben/bottender-py/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/stegben/bottender-py
Rewrite the famous bot framework [Bottender](https://bottender.js.org/) in async python. All credits should be back to [Yoctol Info](https://www.yoctol.com/).
# The following part is not ready yet, plz don't take them seriously
## Installation
```bash
pip install bottender
```
## Usage
```python
from bottender import MessengerBot
bot = MessengerBot(
access_token="__access_token__",
app_secret="__app_secret__",
)
@bot.on_event
async def echo_handler(context):
if context.event.is_text:
await context.send_text('')
# or
# >>> bot.on_event(handler)
```
## Supported frameworks
- Sanic
First, prepare a :
```
```
Or, use `blueprint` for larger project:
```python
from sanic import Sanic
from bottender.sanic import create_blueprint
bot = ...
bp = create_blueprint(bot, name='bot', url_prefix='/bot')
app = Sanic(__name__)
app.blueprint(bp)
```
or, use ``
- aiohttp
Use route hadler.
```python
```
Home-page: https://github.com/stegben/bottender-py
Author: cph
Author-email: stegben.benjamin@gmail.com
License: UNKNOWN
Description: # bottender-py
[![travis-ci][travis-image]][travis-url] [![pypi-version][pypi-image]][pypi-url] [![codecov][codecov-image]][codecov-url]
[travis-image]: https://travis-ci.org/stegben/bottender-py.svg?branch=master
[travis-url]: https://travis-ci.org/stegben/bottender-py
[pypi-image]: https://badge.fury.io/py/bottender-py.svg
[pypi-url]: https://badge.fury.io/py/bottender-py
[codecov-image]: https://codecov.io/gh/stegben/bottender-py/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/stegben/bottender-py
Rewrite the famous bot framework [Bottender](https://bottender.js.org/) in async python. All credits should be back to [Yoctol Info](https://www.yoctol.com/).
# The following part is not ready yet, plz don't take them seriously
## Installation
```bash
pip install bottender
```
## Usage
```python
from bottender import MessengerBot
bot = MessengerBot(
access_token="__access_token__",
app_secret="__app_secret__",
)
@bot.on_event
async def echo_handler(context):
if context.event.is_text:
await context.send_text('')
# or
# >>> bot.on_event(handler)
```
## Supported frameworks
- Sanic
First, prepare a :
```
```
Or, use `blueprint` for larger project:
```python
from sanic import Sanic
from bottender.sanic import create_blueprint
bot = ...
bp = create_blueprint(bot, name='bot', url_prefix='/bot')
app = Sanic(__name__)
app.blueprint(bp)
```
or, use ``
- aiohttp
Use route hadler.
```python
```
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
[travis-image]: https://travis-ci.org/stegben/bottender-py.svg?branch=master
[travis-url]: https://travis-ci.org/stegben/bottender-py
[pypi-image]: https://badge.fury.io/py/bottender-py.svg
[pypi-url]: https://badge.fury.io/py/bottender-py
[codecov-image]: https://codecov.io/gh/stegben/bottender-py/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/stegben/bottender-py
Rewrite the famous bot framework [Bottender](https://bottender.js.org/) in async python. All credits should be back to [Yoctol Info](https://www.yoctol.com/).
# The following part is not ready yet, plz don't take them seriously
## Installation
```bash
pip install bottender
```
## Usage
```python
from bottender import MessengerBot
bot = MessengerBot(
access_token="__access_token__",
app_secret="__app_secret__",
)
@bot.on_event
async def echo_handler(context):
if context.event.is_text:
await context.send_text('')
# or
# >>> bot.on_event(handler)
```
## Supported frameworks
- Sanic
First, prepare a :
```
```
Or, use `blueprint` for larger project:
```python
from sanic import Sanic
from bottender.sanic import create_blueprint
bot = ...
bp = create_blueprint(bot, name='bot', url_prefix='/bot')
app = Sanic(__name__)
app.blueprint(bp)
```
or, use ``
- aiohttp
Use route hadler.
```python
```
Home-page: https://github.com/stegben/bottender-py
Author: cph
Author-email: stegben.benjamin@gmail.com
License: UNKNOWN
Description: # bottender-py
[![travis-ci][travis-image]][travis-url] [![pypi-version][pypi-image]][pypi-url] [![codecov][codecov-image]][codecov-url]
[travis-image]: https://travis-ci.org/stegben/bottender-py.svg?branch=master
[travis-url]: https://travis-ci.org/stegben/bottender-py
[pypi-image]: https://badge.fury.io/py/bottender-py.svg
[pypi-url]: https://badge.fury.io/py/bottender-py
[codecov-image]: https://codecov.io/gh/stegben/bottender-py/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/stegben/bottender-py
Rewrite the famous bot framework [Bottender](https://bottender.js.org/) in async python. All credits should be back to [Yoctol Info](https://www.yoctol.com/).
# The following part is not ready yet, plz don't take them seriously
## Installation
```bash
pip install bottender
```
## Usage
```python
from bottender import MessengerBot
bot = MessengerBot(
access_token="__access_token__",
app_secret="__app_secret__",
)
@bot.on_event
async def echo_handler(context):
if context.event.is_text:
await context.send_text('')
# or
# >>> bot.on_event(handler)
```
## Supported frameworks
- Sanic
First, prepare a :
```
```
Or, use `blueprint` for larger project:
```python
from sanic import Sanic
from bottender.sanic import create_blueprint
bot = ...
bp = create_blueprint(bot, name='bot', url_prefix='/bot')
app = Sanic(__name__)
app.blueprint(bp)
```
or, use ``
- aiohttp
Use route hadler.
```python
```
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
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
bottender-0.0.2.tar.gz
(2.1 kB
view details)
File details
Details for the file bottender-0.0.2.tar.gz
.
File metadata
- Download URL: bottender-0.0.2.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3ba6fd91003c8c09debb7b3b4492eaa338858a9f9a423ed17fe8b1ee6c76bb5 |
|
MD5 | 66f8f3d365cc6b782947f705d53e4229 |
|
BLAKE2b-256 | 510e238e676c85d40d3bf230b33c4a6b0a7976b597c4a38da3c84cac1442f377 |