Metadata-Version: 2.1
Name: handler_reviews_lib
Version: 0.0.8
Summary: This is the module for work with handlers of reviews by templates or GPT
Home-page: https://github.com/Azakaim/handler_reviews_lib.git
Author: 1mlnmyfavoriteinteger
Author-email: romansergeev7680@gmail.com
Project-URL: GitHub, https://github.com/Azakaim/handler_reviews_lib.git
Keywords: reviews,handler
Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.25.1
Requires-Dist: openai>=1.40.3
Requires-Dist: pydantic>=2.8.2
Requires-Dist: tiktoken>=0.7.0

# Handler Reviews #

## What is this? ##
The module allows process reviews of your clients by tamplates or AI.

## Quick Guide ##
The module is based on the following structure:

    
    handler = ReviewsHandlerProvider()
    gpt_handler = handler.fetch_handler(handler_type=HandlerType.GPTHANDLER, api_key=api_key_gpt)
    template_handler = handler.fetch_handler(handler_type=HandlerType.TEMPLATEHANDLER)
    
Which Python provides by standard.

----------

### Using ###


Using the library is as simple and convenient as possible:

Let's import it first:
First, import everything from the library (use the `from `...` import *` construct).

    handler = ReviewsHandlerProvider()
	gpt_handler = handler.fetch_handler(handler_type=HandlerType.GPTHANDLER, api_key=api_key_gpt)
	template_handler = handler.fetch_handler(handler_type=HandlerType.TEMPLATEHANDLER)

#Get your data like name_client, review, grade, return_amount_tokens

response_gpt = gpt_handler.get_response(name_client, review, grade, return_amount_tokens)
response_tamplate = template_handler.get_response(name_client, grade)

----------


## Developer ##
My site: [link](https://github.com/Azakaim/) 
