Metadata-Version: 2.5
Name: questionnaire-kit
Version: 0.1.0
Summary: Client questionnaires for Python apps (conditional questions, answer cleaning, required checks, summaries) plus an interior design style quiz.
Author: Hexaspace
License-Expression: MIT
License-File: LICENSE
Keywords: conditional logic,forms,intake,interior design,questionnaire,style quiz,survey
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Office/Business :: Financial :: Accounting
Requires-Python: >=3.10
Provides-Extra: test
Requires-Dist: pytest>=7; extra == 'test'
Description-Content-Type: text/markdown

# questionnaire-kit

Client questionnaires for Python apps, plus an interior-design style quiz.

**Form engine** (any domain: client intake, site surveys, onboarding):
- Sections of questions in 10 types: short and long text, single and multiple choice, picture choice (photo or colour swatch), rating 1–5, dropdown, number, date, and photo upload
- **"Show only if"** logic: show a question only when an earlier answer matches
- `check_questions()` validates a form: unique ids, at least 2 options for choices, conditions point back to earlier questions
- `clean_answers()` keeps only valid answers, drops answers to hidden questions, and on submit lists the required questions still unanswered
- `summary_rows()` gives (section, question, answer) rows for a PDF, an email or a CRM note

**Interior style quiz:** 6 questions and 6 style profiles (modern minimalist, warm contemporary, industrial chic, bohemian eclectic, luxury classic, japandi zen), with traits, materials and colour palettes. `score_style()` ranks the profiles from the client's answers.

Built from the client brief questionnaire and style quiz Hexaspace uses with clients.

## Example

```python
from questionnaire_kit import check_questions, clean_answers, summary_rows, quiz_data, score_style

check_questions(sections)                                  # when the form is saved
answers = clean_answers(sections, raw_answers, final=True) # when the client presses Submit
rows = summary_rows(sections, answers)

quiz = quiz_data()
result = score_style([chosen_option_1, chosen_option_2])  # {'primary': 'japandi-zen', 'profile': {...}, ...}
```

## Licence

MIT. Maintained by [Hexaspace](https://hexaspace.in).
