Coconut - A LimeSurvey data extraction and helper library
Project description
coconut
A LimeSurvey data extractor
Installation
pip install limesurvey-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.1.tar.gz
(10.5 kB
view details)
Built Distribution
File details
Details for the file limesurvey-coconut-1.0.1.tar.gz
.
File metadata
- Download URL: limesurvey-coconut-1.0.1.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e9ac90b446f87fc3906d915295e38f1abe5453a9cf2391931864ae0dffadbf1 |
|
MD5 | d72de1bd838049fc31378b23dfcf08fb |
|
BLAKE2b-256 | ad1d2995b52e84c97cc6738045bb47cb276e686065d581a30e4545e81eec2f3d |
File details
Details for the file limesurvey_coconut-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: limesurvey_coconut-1.0.1-py3-none-any.whl
- Upload date:
- Size: 11.9 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/46.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | defc086301cf34a7d59fb3bca3b22ab6f6e421006602b1db601bcfa05d92f900 |
|
MD5 | 120eed6c6dc076340a09a2287043ce7d |
|
BLAKE2b-256 | c59c13b14a73f113cbda665c7a8a0b14a8802ced827565513f9502cc9b6533b8 |