Skip to main content

Lets you interact with the Alapchari Chatbot.

Project description

Alapchari

Alapchari is a Python class that provides a simple interface for interacting with the Chatrik API. The Chatrik API is an AI-based natural language processing API that generates text based on a given prompt.

Installation

You can install Alapchari using pip:

pip install Alapchari

Usage

from Alapchari import Alapchari

alapchari = Alapchari()

prompt = "বঙ্গবন্ধু শেখ মুজিবুর রহমান কে ছিলেন ?"

result = alapchari.ask(prompt)

print(result)

The Alapchari class has three attributes:

  • count: This is an integer attribute that keeps track of the number of times the ask method has been called.
  • url: This is the URL of the Chatrik API.
  • method: This is the HTTP method used to send the request to the Chatrik API.

The Alapchari class has one method:

  • ask(prompt:str) -> str: This method takes a string prompt as input and returns a string generated by the Chatrik API based on the given prompt.

This will send a request to the Chatrik API with the prompt "What is the meaning of life?" and print the generated text.

License

This project is licensed under the terms of the MIT license. See the LICENSE file for details.

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

Alapchari-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Alapchari-1.0.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file Alapchari-1.0.0.tar.gz.

File metadata

  • Download URL: Alapchari-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for Alapchari-1.0.0.tar.gz
Algorithm Hash digest
SHA256 54ab8cbd6aa0c073c885b9a559f61fe4915541f72d310e21c4676fd41515d4ab
MD5 37b34d128d8933925ad0a96d984b804c
BLAKE2b-256 c3eef06016f741aac8e68859b721037ada09845a1128fa224fe1847c3135ca36

See more details on using hashes here.

File details

Details for the file Alapchari-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: Alapchari-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for Alapchari-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1f4d37f7bd430bca51d2f82594f418966b9c8ef1c0e963536224e363cf0c59e
MD5 d70b8b9d6b5d657d8e41c2cecfef0ef1
BLAKE2b-256 9666fdbd6996816c1a8009f3487bcdc072470e66695dfff0b3c9fb9f6204fb8c

See more details on using hashes here.

Supported by

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