Coconut - A LimeSurvey data extraction and helper library
Project description
coconut
A LimeSurvey data extractor
Installation
pip install git+https://github.com/istresearch/coconut
Usage
from coconut import LimeAPI, Survey, Workbook
# Create a LimeAPI instance
lime = LimeAPI(
url="https://surveys.my-lime-survey-instance.org",
username="admin",
password="password"
)
# Create the survey instance
survey = Survey(survey_id=119618, lime_api=lime)
# Load questions, responses, survey info
survey.load_data()
# Save the data to an Excel file
survey.to_excel("survey.xlsx")
# Save response data to a CSV file
survey.to_csv("survey.csv")
# Update a Google Sheets workbook
workbook = Workbook(
workbook_id="abc123",
survey=survey,
service_account_json_path="google-cloud-creds.json"
)
workbook.sync()
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
limesurvey-coconut-1.0.0.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for limesurvey_coconut-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d6a1402fd13eec406b0b464fc619cd89c4791f3c8efb770e906236aba2364c1 |
|
MD5 | efa862e6b4f6b37ff5f6cb545a8f8f2b |
|
BLAKE2b-256 | 071b7b9c5f3b83fed440663379ddae62fb79fa0aae68180c65ef901ddbc9ef96 |