Skip to main content

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


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)

Uploaded Source

Built Distribution

limesurvey_coconut-1.0.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

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

Hashes for limesurvey-coconut-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7e9ac90b446f87fc3906d915295e38f1abe5453a9cf2391931864ae0dffadbf1
MD5 d72de1bd838049fc31378b23dfcf08fb
BLAKE2b-256 ad1d2995b52e84c97cc6738045bb47cb276e686065d581a30e4545e81eec2f3d

See more details on using hashes here.

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

Hashes for limesurvey_coconut-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 defc086301cf34a7d59fb3bca3b22ab6f6e421006602b1db601bcfa05d92f900
MD5 120eed6c6dc076340a09a2287043ce7d
BLAKE2b-256 c59c13b14a73f113cbda665c7a8a0b14a8802ced827565513f9502cc9b6533b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page