Skip to main content
[![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

Metadata

Release files for bottender 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bottender 0.0.2
File Size Uploaded Provenance
bottender-0.0.2.tar.gz 2.1 kB Without provenance Details

Release files / bottender-0.0.2.tar.gz

Download URL bottender-0.0.2.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e3ba6fd91003c8c09debb7b3b4492eaa338858a9f9a423ed17fe8b1ee6c76bb5
BLAKE2b-256 checksum
How to use checksums
510e238e676c85d40d3bf230b33c4a6b0a7976b597c4a38da3c84cac1442f377
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for bottender 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page