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.2.tar.gz (4.6 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.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: handler_reviews_lib-1.1.2.tar.gz
  • Upload date:
  • Size: 4.6 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.2.tar.gz
Algorithm Hash digest
SHA256 5023985aeb66541c7cb690e5ae3646665cfe08af937fdb5aba0d3fe591e8fe33
MD5 2ebc036f7c9cb998e074c4969b8b6834
BLAKE2b-256 f812f65b6d9cb3de96380d9d3e586c6b1de393a19e6137f2fffa84640c6c3ded

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for handler_reviews_lib-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f27f4463d7e8bbab533fefe365db8ebb91d170f4c108b627c943459ceb8ccf6a
MD5 c31ee520e0b0152f822afed539002732
BLAKE2b-256 3902b2c7af285fbf1d00389b408e0252a332c8972ca80d33a589fdf9b290bcf0

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