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
File details
Details for the file qualtrics_utils-0.5.2.tar.gz
.
File metadata
- Download URL: qualtrics_utils-0.5.2.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Darwin/22.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 318bb731220c070ef83c5bee89bd13ae6cd820b09c3a8df66c8abbd634e26ef2 |
|
MD5 | 8a154baa1f886d7b3c45d9c2e8205957 |
|
BLAKE2b-256 | 00266aa1ac0cbb065641685feb2b8d5b7f92b9787e30d570ed7fd29aadd957a5 |
File details
Details for the file qualtrics_utils-0.5.2-py3-none-any.whl
.
File metadata
- Download URL: qualtrics_utils-0.5.2-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Darwin/22.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b30b19e9f9bfb2b01c82a2cdcb5d39cb2b0bd206ddd9761d5519048c63197a30 |
|
MD5 | 19502bb5fa771b9a549ecb558eafb22e |
|
BLAKE2b-256 | 9f9bddc7bb235e144fce82774e0d8281590fcd3e8911ab020c205523347951fc |