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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file cleverbotfreeapi-1.1.1.tar.gz.

File metadata

  • Download URL: cleverbotfreeapi-1.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for cleverbotfreeapi-1.1.1.tar.gz
Algorithm Hash digest
SHA256 5b5a91a2fa6ce6117ac4dce0abc581d69e1a5325d9de360f5917231070d09b31
MD5 5d3e3f4a7ee2565fc2c547222a51ea5d
BLAKE2b-256 015ca0f8d4e6b98b9b4490326aeccd097ca69295b8ba21ac329265623a57d0e6

See more details on using hashes here.

File details

Details for the file cleverbotfreeapi-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cleverbotfreeapi-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 93d6083ec59f857c7d3d6754fe8dc1824ecf2eb28b9d828e90192e17b1c4fccb
MD5 71cafeec810d9ebd2590738621c6cbca
BLAKE2b-256 f617f9b464d16ae6f55ca6e151107b65884eeea06dd0a85863f53ef1945d97d6

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