# 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.1.tar.gz
(2.1 kB
view details)
File details
Details for the file bottender-0.0.1.tar.gz.
File metadata
- Download URL: bottender-0.0.1.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 |
c770c7d7b6812e46d21953643b3fd17beb049ff483d24738ad5d8bd8051e5d3b
|
|
| MD5 |
6f0004971576fe2fec75db93e180f060
|
|
| BLAKE2b-256 |
7fde7825d7a9463d55b3bd9397094fbc5218693415fc6e0ef7486efe305f3c3d
|