Skip to content

pavlovia-survey-utils is a Python library for data retrieval from Pavlovia surveys

Notifications You must be signed in to change notification settings

EitanHemed/pavlovia-survey-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyvlovia

pyvlovia is a Python library that retrieves data from Pavlovia surveys. It can be used to receive either the raw JSON format data, or save a tidy version of the data, including downloading of images (e.g., signatures) uploaded by your survey participants.

Sections:

Setup

pip install pyvlovia

Requirements

  • pandas
  • requests

Usage

You can use pyvlovia either interactively (pyvlovia.ui), or embed it in your scripts(pyvlovia.cache_io):

  1. List existing users:
import pyvlovia
pyvlovia.list_users() #pyvlovia.
  1. Add a new user:

pyvlovia.add_user()

  1. List surveys for an existing user: pyvlovia.list_surveys(username)

FAQ

What permissions does pyvlovia require?

pyvlovia generates an access token on gitlab with a read-user scope. See here for details.

Where is my access token stored?

Similarly to PsychoPy, your username and access token are stored in the AppData directory, on your computer (e.g., C:\Users\User\AppData\Roaming\pyvlovia on Windows, HOME/pyvlovia on MAC/Linux). If you did not find it, try running import os; print(os.path.join(os.environ['APPDATA'], 'pyvlovia')).

How to remove my login data?

  1. Call either pyvlovia.remove_user(username) or pyvlovia.remove_all_users() to remove all existing logins.
  2. Manually edit or remove the JSON file under the directory used by pyvlovia. Not sure where that is? See previous question.

Contributing

If you find a bug 🐛, please open a bug report. If you have an idea for an improvement or new feature 🚀, please open a feature request.

About

pavlovia-survey-utils is a Python library for data retrieval from Pavlovia surveys

Topics

Resources

Stars

Watchers

Forks

Languages