Skip to main content

Simple unofficial package to interact with the same API that the Cleverbot website uses for free.

Project description

cleverbotfreeapi

cleverbotfreeapi

Simple unofficial package to interact with the same API that the Cleverbot website uses for free.

Downloads PyPI PyPI - Python Version PyPI - License

Installation

pip install cleverbotfreeapi

Usage

import cleverbotfreeapi

# Without context or session
cleverbotfreeapi.cleverbot("Hello.")

# With context, without session
# Please note that context should include messages sent to Cleverbot as well as the responses
cleverbotfreeapi.cleverbot("Bad.", ["hi.", "How are you?"])

# Without context, with session
cleverbotfreeapi.cleverbot("Hi.", session="Deftera")
cleverbotfreeapi.cleverbot("Fine :)", session="Deftera")

# With context and session
# An ongoing conversation with the first question as "How are you?"
cleverbot(input(">>"), ["hi.", "How are you?"], "How are you?")
while True:
  print(cleverbot(input(">>"), session="How are you?"))

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

cleverbotfreeapi-1.1.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

cleverbotfreeapi-1.1.1-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

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