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.
pip install pyvlovia
pandas
requests
You can use pyvlovia either interactively (pyvlovia.ui
), or embed it in your scripts(pyvlovia.cache_io
):
- List existing users:
import pyvlovia
pyvlovia.list_users() #pyvlovia.
- Add a new user:
pyvlovia.add_user()
-
List surveys for an existing user:
pyvlovia.list_surveys(username)
pyvlovia generates an access token on gitlab with a read-user
scope. See
here for details.
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'))
.
- Call either
pyvlovia.remove_user(username)
orpyvlovia.remove_all_users()
to remove all existing logins. - Manually edit or remove the JSON file under the directory used by
pyvlovia
. Not sure where that is? See previous question.
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.