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()
Release files for aioface 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aioface-0.0.2.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aioface-0.0.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 17.2 kB
Release files / aioface-0.0.2.tar.gz
| Download URL | aioface-0.0.2.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cd183049a7c46855ce89f627263219e28365f1313e5837ac51543d33e8e8f72
|
|
BLAKE2b-256 checksum How to use checksums |
7ddaa5a58f839fc4142a1a0be4b37cfbd49270eed883aa74983c7b1c7aa55028
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / aioface-0.0.2-py2.py3-none-any.whl
| Download URL | aioface-0.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
27ecd112f229036b50e429f55dbf37fba301b9fe495d5a97d98cd04845339841
|
|
BLAKE2b-256 checksum How to use checksums |
86d8aac1253adfcc0d77a3cda8cf69f71460027e2bd0b12df255dcc6d749515f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|