Skip to main content

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


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.7.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

qualtrics_utils-0.5.7-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qualtrics_utils-0.5.7.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.11.3 Darwin/22.4.0

File hashes

Hashes for qualtrics_utils-0.5.7.tar.gz
Algorithm Hash digest
SHA256 246ba87f2e1e0c6f4e117ffe051d3bf49c2095bd7720a5ca1843afbb409d1a14
MD5 77a4141b37817e62aed92b067d84833b
BLAKE2b-256 0577f64b85754fe54316302fae7352fec0d8b5aa1fc3d23f572bef2842b72438

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qualtrics_utils-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.11.3 Darwin/22.4.0

File hashes

Hashes for qualtrics_utils-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 887a0b1f61e935020d6442389c34658f6f1e25e8301e48cb681d8173bc77cb25
MD5 e37d061c205bdf351b9591f7bfabb114
BLAKE2b-256 0f8516d6f1a1653c0bbcd750d14c199268f3942dcb5fdba5eeb35a280e422276

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