A package for evaluating quiz results and communication styles
Project description
te_quiz
A Python package for evaluating quiz results to determine communication styles and stress journey mapping.
Features
- Communication Style Analysis: Calculates percentages for four communication styles (Red, Yellow, Blue, Green)
- 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', # All questions use 'a' or 'b' answers
2: 'b',
3: 'a',
4: 'b',
5: 'a',
6: 'b',
7: 'a',
8: 'a',
9: 'a',
10: '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
# },
# '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-10) to answers
Returns:
- Dictionary with:
communication_style: Color percentages (red, yellow, blue, green)stress_journey: Mapping of stress levels (1-10) to colors
Raises:
InvalidQuestionError: Missing or invalid question IDsInvalidAnswerError: Invalid answer format
License
Not to be distributed.
Project details
Release history Release notifications | RSS feed
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.1.0.tar.gz
(4.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file te_quiz-1.1.0.tar.gz.
File metadata
- Download URL: te_quiz-1.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43e78b63271c5651d811ef50468e2f193ad3f560bc98ead76e05bf34a16d6312
|
|
| MD5 |
de6236c31cbe8dcf257f05c0c2a809f6
|
|
| BLAKE2b-256 |
106765d95967c87e861a3cd220c83d30608876e425a6f31547e644d21267d899
|
File details
Details for the file te_quiz-1.1.0-py3-none-any.whl.
File metadata
- Download URL: te_quiz-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f18eb65a6e716ac31cff65ac41eb910c7a222841702ba3cf71192801c4600ef
|
|
| MD5 |
31e83169cae05d1ba90c5e3f5b68a7f3
|
|
| BLAKE2b-256 |
7c58d63073b4f2a521c2bce69290d6b8b304339d8fe676c2e0b97131e16dd88e
|