Skip to main content

# 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bottender, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size bottender-0.0.2.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page