- responses.py: get_summary() (raw RPC get_summary), count_responses() -> frozen ResponseCounts(completed, incomplete, total), export_responses_auto() with automatic format fallback (xlsx -> xls -> csv) on IWriter errors - utils.py: summary_counts_full() -> (completed, incomplete, total) with per-LS-version key fallbacks; summary_counts left untouched - surveys.py: get_survey_by_sid() (dict | None), get_survey_info() -> frozen SurveyInfo(sid, title, active) - tokens.py: documented that extra/custom token attributes (attribute_1, ...) pass through unchanged in add_participants/list_participants - LsClient: get_summary, count_responses, get_survey_by_sid, get_survey_info, export_responses_auto; __all__ + re-exports updated - README: new "Response counts & summary" section + usage examples - .gitignore: prompts.md added (local-only docs, like werkdocument.md) - version 0.1.0 -> 0.2.0 (__init__.py + pyproject.toml) - tests: +27 FakeRpc unit tests (96 passed, 2 deselected) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
34 lines
498 B
Text
34 lines
498 B
Text
# Environment files
|
|
.env
|
|
.env.*
|
|
*.env
|
|
!.env.example
|
|
|
|
# Python
|
|
__pycache__/
|
|
*.pyc
|
|
*.pyo
|
|
.venv/
|
|
venv/
|
|
|
|
# IDE
|
|
.vscode/
|
|
|
|
# Generated exports / output files — survey data must NEVER be synced to Forgejo.
|
|
# Covers the library's default names in any directory plus ad-hoc CSV/XLS exports.
|
|
output/
|
|
survey_*_responses.*
|
|
survey_*_statistics.*
|
|
*.csv
|
|
*.xls
|
|
*.xlsx
|
|
*.spss
|
|
|
|
# Local working documents (never synced to Forgejo)
|
|
werkdocument.md
|
|
prompts.md
|
|
|
|
# Packaging (pip install -e .)
|
|
build/
|
|
dist/
|
|
*.egg-info/
|