Utilities for qualtrics surveys.
Project description
qualtrics-utils
Utilities for qualtrics surveys. Get survey responses, generate codebooks, & c.
surveys
Module to interact with Qualtrics surveys.
Example (get a survey's responses, convert to a pandas DataFrame):
from qualtrics_utils.survey import Surveys
qs = Surveys(api_token=QUALTRICS_API_TOKEN)
exported_file = qs.get_responses_df(
surveyId=SURVEY_ID, parse_dates=["StartDate", "EndDate"]
)
df = exported_file.data
Codebook mapping
generate.py
Takes the exported .qsf
file from Qualtrics and generates a codebook mapping question
IDs to question text and answer choices. The output is a JSON file containing a list of
dictionaries.
Example row:
{
"question_number": "Q5.10",
"question_string": "What is your role at this school?",
"answer_choices": "..."
},
map_columns.py
Takes a codebook mapping (generated by the above function) and creates conditional statements to map the question columns into valid Tableau or SQL code. Used to create a singular question column in the above formats when there are multiple questions in a single question block (e.g. multiple Likert scale questions).
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
Built Distribution
Hashes for qualtrics_utils-0.5.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2e9c2fa5684f66898a79360c9fb46e5efecdab31667c8194088e4c3d1b4ef26 |
|
MD5 | e24ac266c4a8cf6ab8a625cbf57df42d |
|
BLAKE2b-256 | 2b6c68483cf4180ef0a748a30cb12e07259cdbd66a4c670d32e49961b45ce3f6 |