Alapchari-1.0.0
توضیحات
Lets you interact with the Alapchari Chatbot.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | Alapchari-1.0.0 |
| نام | Alapchari |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Nur Mahmud Ul Alam Tasin |
| ایمیل نویسنده | nmuatasin2005@gmail.com |
| آدرس صفحه اصلی | https://github.com/NurTasin/Alapchari-Python |
| آدرس اینترنتی | https://pypi.org/project/Alapchari/ |
| مجوز | MIT License |
# 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
```python
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.
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
نحوه نصب
نصب پکیج whl Alapchari-1.0.0:
pip install Alapchari-1.0.0.whl
نصب پکیج tar.gz Alapchari-1.0.0:
pip install Alapchari-1.0.0.tar.gz