Asyncio Chatbase API library
Project description
aioChatbase
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
await cb.close()
Check more examples at /examples folder
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-0.0.8.tar.gz
(6.7 kB
view details)
Built Distribution
File details
Details for the file aioChatbase-0.0.8.tar.gz
.
File metadata
- Download URL: aioChatbase-0.0.8.tar.gz
- Upload date:
- Size: 6.7 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 | 27461157ee76d07ddaff8a4f77aaa9d17ee261c5e9eb39f3e1d46258a6c0153a |
|
MD5 | a8e7314e2cb93049386e8f7599455adb |
|
BLAKE2b-256 | e28ede569d548aff8dbab201410a0b05bde5d675212b5d6a81626368975783b3 |
Provenance
File details
Details for the file aioChatbase-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: aioChatbase-0.0.8-py3-none-any.whl
- Upload date:
- Size: 10.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 | d2ec107dac062f01100db1f5719860152189096866580d5ee12127ae611a0c89 |
|
MD5 | a1ed5c15e8ea79e53ee5388dbd5e3b5e |
|
BLAKE2b-256 | 640aa4b0b21d7e5dbbf6b7622ba4ec10221bd610da406acc3ac042741c5293e6 |