QualtricsAPI is a lightweight Python library for the Qualtrics Web API.
Project description
QualtricsAPI
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.
-
Contact Data - to manage survey contacts within the XMDirectory and any associated Mailing Lists.
-
Survey Data - to manage surveys and the data collected from each of your surveys.
-
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 Qualtrics
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 its terms. Feedback, bugs, any potential fixes, and feature requests are welcome!
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 QualtricsAPI-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee1367ad327d7fa256f744589eabe6140b3392d52fbdf5cc69f397c1668a6a38 |
|
MD5 | 982ad6af241607122f340876b075fb05 |
|
BLAKE2b-256 | 2c74c98e00e369d56ad3bca9a31c4e50a8eceee287c8257d0a7bd9669037bbae |