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-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-1.1.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: handler_reviews-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-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0c1e09dc6f1a145272758fcb6146d73a32e255db24f06e3394a2bddf2c14e5e8
MD5 98607dbbcde192c18ebb24a0d1006068
BLAKE2b-256 c5bbcf52e8e649468d6fbae3e0dc5e9e7c2f373aba7229469e8607c47d1640ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for handler_reviews-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c49e598625ec1943105228d90c72f2a1994c9a2218e47177cbb12cbd875d44b
MD5 b27d2d5dd5f30ea00317e4e0d4352205
BLAKE2b-256 723b0b062d30d69e450dec14c5fc27652aeeba6b45a9c477068f6a57f9a9083f

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