Asyncio Chatbase API library
Project description
aioChatbase is a library for Chatbase Generic Message API written in Python 3.6 with asyncio and aiohttp. It helps to integrate Chatbase with your chatbot.
How to install
python3.6 -m pip install aioChatbase
How to use
- Import Chatbase
from aiochatbase import Chatbase
- Create cb instance
cb = Chatbase(API_KEY, BOT_PLATFORM)
- Register handled message
await cb.register_message(user_id='123456', intent='start')
- Register non-handled message
await cb.register_message(user_id='123456', intent='unknown message', not_handled=True)
- Register url click
await cb.register_click(url='google.com')
- Close instance on your app shutdown
await cb.close()
Examples
Check more examples at the /examples folder
Wiki
Feel free to read our Wiki
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
aioChatbase-1.0.0.tar.gz
(10.3 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 aioChatbase-1.0.0.tar.gz.
File metadata
- Download URL: aioChatbase-1.0.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1547b3a7f859f056ea9ed2899de292ea89d7ff93e86eb48535fed3dac58b4eb
|
|
| MD5 |
0e04947b8755b9371f72beeca25658b4
|
|
| BLAKE2b-256 |
8d6e2563c40565fa0db3f7917aa387109d533f6a0621a9327d440c310c9de92c
|
File details
Details for the file aioChatbase-1.0.0-py3-none-any.whl.
File metadata
- Download URL: aioChatbase-1.0.0-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a68c87666a7d566f5ef466449cd276b3de177973245e7b40b6dc4b8bd04be529
|
|
| MD5 |
e21a9b1770771ed1932949b3e0c2f8a4
|
|
| BLAKE2b-256 |
fb319876350e33911079aa7fbdc8bd953b377363686bb8f38c2acea68e366470
|