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.0.tar.gz (1.9 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.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: handler_reviews_lib-1.1.0.tar.gz
  • Upload date:
  • Size: 1.9 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.0.tar.gz
Algorithm Hash digest
SHA256 f1967c37bd2ee56b997cc16e56bb9a6116d9c3357749e915b048ec57109a52de
MD5 528b7b4ab218c0a7e8e3aa87a89f6cae
BLAKE2b-256 06367482fd831cc58065792d540ab326f661e58a2c34edac2a2410ce59676fbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for handler_reviews_lib-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2ac52d0e471ce56f9b23ea63346c8823ae07847c693345b0bea72afd7e292f9
MD5 189bf327e706b6a37241844658cd18dd
BLAKE2b-256 10eb94c6d0641b7a216124d5de9a2939b733ffaf498ed6f5a2ac5a2ebd322602

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