Skip to main content

A set of utilities for working with Qualtrics data.

Project description

qualtrics-utils

A collection of utility scripts for Qualtrics surveys.

Surveys

Module to interact with Qualtrics surveys.

Example (get a survey's responses, convert to a pandas DataFrame):

from qualtrics_utils import Surveys

qs = Surveys(api_token=QUALTRICS_API_TOKEN)

exported_file = qs.get_responses_df(
    surveyId=SURVEY_ID, parse_dates=["StartDate", "EndDate"]
)
...

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qualtrics_utils-0.5.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

qualtrics_utils-0.5.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file qualtrics_utils-0.5.0.tar.gz.

File metadata

  • Download URL: qualtrics_utils-0.5.0.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

Hashes for qualtrics_utils-0.5.0.tar.gz
Algorithm Hash digest
SHA256 c4221daea06e2a0ba60e52dedb8c6887b5b9f486cb142108b8b38427ad53e36a
MD5 35d7e7b3822a4a4d2601577caf66bc9d
BLAKE2b-256 3828abdfe439eb4b1529376148afd69172bc68920a39f5229d1bf474d3736720

See more details on using hashes here.

File details

Details for the file qualtrics_utils-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: qualtrics_utils-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 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

Hashes for qualtrics_utils-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ae5753d2e60a3cf6efb446341f7bd49a3fc596d0ef1f873a108b5a7f7e8d7b0
MD5 8bb1b94305709c1d93f2b210b109dc3f
BLAKE2b-256 102723018e5913a7bf3e98c029144ef2e3ef174d47a0e3d8712e114ae0e95658

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page