Skip to main content

QualtricsAPI is a lightweight Python library for the Qualtrics Web API.

Project description

QualtricsAPI

Version License Python Documenation Site Downloads Build Status

Author: Jeremy Seibert
License: MIT
Package Documentation: Documentation

Qualtrics is an awesome company that builds software which gives users the ability to collect online data through online surveys. This python package, exists as a wrapper on top of the Qualtrics API. This package's primary goal is to be a super convenient way for python users to ingest, or upload their data from Qualtrics to their development environment, and vice versa.

Before we continue, I want to mention two things:

First, you must have Qualtrics API access in order to use this package. Contact whomever your Qualtrics Account Manager is for further clarification on your account's access credentials.

Secondly, this package is not affiliated with Qualtrics. Thus, I the author of this package, Jeremy Seibert, am not affiliated with Qualtrics, and Qualtrics does not offer support for this package. For specific information about the Qualtrics API, you can refer to their official documentation.

Functionality

There are currently three primary uses of this package.

  1. Contact Data - to manage survey contacts within the XMDirectory and any associated Mailing Lists.

  2. Survey Data - to manage surveys and the data collected from each of your surveys.

  3. Distribution Data - to manage the distributions (i.e. emails) which are sent to contacts as invites, reminders to complete surveys.

Basic Usage

Package Installation

The installation of the package is pretty straight forward. Open up your terminal and run the command below. If you do not already have pip installed on your machine, you may have to install pip first, see Pip Installation Instructions for help!

$ pip install QualtricsAPI

Credentials Code Flow

We first create environment variables that will hold your API credentials, so you don't have to continually declare them. To do this we import the Credentials module, create and call the qualtrics_api_credentials()method.

from QualtricsAPI.Setup import Credentials

#Create an instance of Credentials
c = Credentials()

#Call the qualtrics_api_credentials() method
c.qualtrics_api_credentials(token='Your API Token',data_center='Your Data Center',directory_id='Your Directory ID')

This will generate environment variables that will be used to populate the HTTP headers which are necessary to make your API calls.

R Users

For any R users there is an equally awesome package called "qualtRics" which functions in very similar ways to this package. I have tried to keep consistent with some of the methods that are used in the qualtRics package and this one, so that there is a cohesion between the two. However, I don't believe that it supports functionality to work within the XM Contacts Data (i.e. the XMDirectory, or Mailing Lists). CRAN

Authors: Julia Silge, Jasper Ginn
License: MIT

Want to Contribute?

This project abides by the Contributor Code of Conduct. By participating in this project you agree to abide by it's terms. Feedback, bugs, any potential fixes, and feature requests are welcome!

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

QualtricsAPI-0.3.7.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

QualtricsAPI-0.3.7-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file QualtricsAPI-0.3.7.tar.gz.

File metadata

  • Download URL: QualtricsAPI-0.3.7.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for QualtricsAPI-0.3.7.tar.gz
Algorithm Hash digest
SHA256 07fbfc2aa5c7aaff9ff459bee3854b03658cc3f68092b07ad0958bb8615dc307
MD5 1a5525c9ed6f6bfe3522a1aef4802d74
BLAKE2b-256 d30f1819ee5d003ef13250090cd9f42173adf5b5b19690218ea1774e3d097db6

See more details on using hashes here.

File details

Details for the file QualtricsAPI-0.3.7-py3-none-any.whl.

File metadata

  • Download URL: QualtricsAPI-0.3.7-py3-none-any.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for QualtricsAPI-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 04a30a7951b08ede4bc0abea7a1be00ae356016709f606c1d780387e30e1cac2
MD5 569045ae52f8d6f559a7db345e362e1d
BLAKE2b-256 9b10a0ce59aae5d8745c9db96e09b7659eadf63e747d96e7265b04394f0419c1

See more details on using hashes here.

Supported by

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