Skip to main content

This is the module for work with handlers of reviews by templates or GPT

Project description

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

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

handler_reviews_lib-1.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

handler_reviews_lib-1.1.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: handler_reviews_lib-1.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for handler_reviews_lib-1.1.1.tar.gz
Algorithm Hash digest
SHA256 c4e358ed8cf3e7266923f03a3330349d40e5bd21600cf02f1e0cd3fa2e24f10d
MD5 6d942d40f249da6ce89f0623788a82cf
BLAKE2b-256 7227ab2cb781db6c249554328a23f3f22e54853c6e50b91596be016e890686a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for handler_reviews_lib-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 98623c8bd3e0e7f7962520a2b9ecb0f2369fff0abb8fb1ef3dee172fe41de2d8
MD5 d01fecb0da06b3ec5403a4c32437b3c8
BLAKE2b-256 7b9f13564fb1626718ef58f92be8579ac20e8d20d8119d5bf81811f5f27e80bc

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