Skip to main content

A package for evaluating quiz results and communication styles

Project description

te_quiz

A Python package for evaluating quiz results to determine communication styles, self-deceptive positivity levels, and stress journey mapping.

Features

  • Communication Style Analysis: Calculates percentages for four communication styles (Red, Yellow, Blue, Green)
  • Self-Deceptive Positivity Detection: Evaluates authenticity levels (Low, Moderate, High)
  • Stress Journey Mapping: Maps stress levels 1-10 to dominant communication colors based on percentages
  • Flexible Input: Handles questions in any order
  • Simple API: Single function interface

Installation

pip install te_quiz

Quick Start

from te_quiz import evaluate_quiz

# Define quiz answers (questions can be in any order)
answers = {
    1: 'a',  # Communication style questions use 'a' or 'b'
    2: 'c',  # SD questions use letters 'a'-'e'
    3: 'b',
    4: 'b',
    5: 'a',
    6: 'd',
    7: 'b',
    8: 'a',
    9: 'a',
    10: 'b',
    11: 'a',
    12: 'a',
    13: 'a',
    14: 'b'
}

# Evaluate the quiz
result = evaluate_quiz(answers)

print(result)
# Output:
# {
#     'communication_style': {
#         'red': 0.35,
#         'yellow': 0.25,
#         'blue': 0.25,
#         'green': 0.15
#     },
#     'sd_level': 'moderate',
#     'stress_journey': {
#         1: 'red', 2: 'red', 3: 'red', 4: 'red',
#         5: 'yellow', 6: 'yellow', 7: 'blue',
#         8: 'blue', 9: 'green', 10: 'green'
#     }
# }

API Reference

evaluate_quiz(answers: Dict[int, str]) -> Dict

Evaluates complete quiz results.

Parameters:

  • answers: Dictionary mapping question IDs (1-14) to answers

Returns:

  • Dictionary with:
    • communication_style: Color percentages (red, yellow, blue, green)
    • sd_level: Self-deceptive positivity level string
    • stress_journey: Mapping of stress levels (1-10) to colors

Raises:

  • InvalidQuestionError: Missing or invalid question IDs
  • InvalidAnswerError: Invalid answer format

License

Not to be distributed.

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

te_quiz-1.0.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

te_quiz-1.0.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file te_quiz-1.0.0.tar.gz.

File metadata

  • Download URL: te_quiz-1.0.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.6.0

File hashes

Hashes for te_quiz-1.0.0.tar.gz
Algorithm Hash digest
SHA256 490bc4f77897fab888d1dab005d476289c8799b22148888ab7884524363b2f29
MD5 e2105c17eb28e79fa6844abbd8d75daf
BLAKE2b-256 d69600a0eacb9e0ad4dbb16727f44f7b489792a390af2c40b836f0e6e54d2bf9

See more details on using hashes here.

File details

Details for the file te_quiz-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: te_quiz-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.6.0

File hashes

Hashes for te_quiz-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f8391b7594801c3dec3bb6c84c40e40e1fbe12f899b3245f58ff638106d341a
MD5 b6ba8c014bdc83b9a76a1528789b721d
BLAKE2b-256 3484f1554960feabc07decef049062ce3f305446623e221d9683abec62fd3b42

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