Skip to main content

Asyncio Chatbase API library

Project description

Chatbase

Supported python versions MIT License PyPi Package Version PyPi status

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

  1. Import Chatbase
from aiochatbase import Chatbase
  1. Create cb instance
cb = Chatbase(API_KEY, BOT_PLATFORM)
  1. Register handled message
await cb.register_message(user_id='123456', intent='start')
  1. Register non-handled message
await cb.register_message(user_id='123456', intent='unknown message', not_handled=True)
  1. Register url click
await cb.register_click(url='google.com')
  1. 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


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)

Uploaded Source

Built Distribution

aioChatbase-1.0.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

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

Hashes for aioChatbase-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c1547b3a7f859f056ea9ed2899de292ea89d7ff93e86eb48535fed3dac58b4eb
MD5 0e04947b8755b9371f72beeca25658b4
BLAKE2b-256 8d6e2563c40565fa0db3f7917aa387109d533f6a0621a9327d440c310c9de92c

See more details on using hashes here.

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

Hashes for aioChatbase-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a68c87666a7d566f5ef466449cd276b3de177973245e7b40b6dc4b8bd04be529
MD5 e21a9b1770771ed1932949b3e0c2f8a4
BLAKE2b-256 fb319876350e33911079aa7fbdc8bd953b377363686bb8f38c2acea68e366470

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page