aioface is a powerful and simple asynchronous framework for the Facebook Messenger API written in Python 3.7.
Project description
aioface
aioface is a powerful and simple asynchronous framework for the Facebook Messenger API written in Python 3.7.
Installation
$ pip install aioface
Examples
Echo bot
from aioface import Bot, Dispatcher, BaseStorage, FacebookRequest
dispatcher = Dispatcher(BaseStorage())
bot = Bot(webhook_token='your_webhook_token',
page_token='your_page_token',
dispatcher=dispatcher)
@dispatcher.message_handler()
async def echo_handler(fb_request: FacebookRequest):
await fb_request.send_message(message=fb_request.message_text)
if __name__ == '__main__':
bot.run()
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
aioface-0.0.2.tar.gz
(6.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aioface-0.0.2.tar.gz.
File metadata
- Download URL: aioface-0.0.2.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cd183049a7c46855ce89f627263219e28365f1313e5837ac51543d33e8e8f72
|
|
| MD5 |
66a72b384736d579268993aef112456c
|
|
| BLAKE2b-256 |
7ddaa5a58f839fc4142a1a0be4b37cfbd49270eed883aa74983c7b1c7aa55028
|
File details
Details for the file aioface-0.0.2-py2.py3-none-any.whl.
File metadata
- Download URL: aioface-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27ecd112f229036b50e429f55dbf37fba301b9fe495d5a97d98cd04845339841
|
|
| MD5 |
9c1691506c8f6b4a690a6f316570175f
|
|
| BLAKE2b-256 |
86d8aac1253adfcc0d77a3cda8cf69f71460027e2bd0b12df255dcc6d749515f
|