A client to the LimeSurvey Remote Control API 2, written in modern Python.
Project description
Citric
Project Health | |
Packaging | |
Misc |
|
A client to the LimeSurvey Remote Control API 2, written in modern Python.
Features
- Supports the full RPC API via the
Session
class. - Best effort to implement all the RPC methods in the
Client
class. See the API coverage page for details. - Easily export survey data to CSV files, Pandas DataFrames and DuckDB databases.
- Easily download survey files (e.g. images, audio, etc.) to a local directory.
- Tested against LimeSurvey 6.0.0+ and 5.0.0+ versions.
- Experimental support for the new REST API.
Installation
# PyPI
pip install citric
# or conda
conda install -c conda-forge citric
Usage
from citric import Client
# Connect to your LimeSurvey instance
client = Client(
"https://mylimesite.limequery.com/admin/remotecontrol",
"myusername",
"mypassword",
)
# Print the LimeSurvey version
print(client.get_server_version())
# Print every survey's title
for survey in client.list_surveys():
print(survey["surveyls_title"])
Documentation
Code samples and API documentation are available at citric.readthedocs.io.
Contributing
If you'd like to contribute to this project, please see the contributing guide.
Credits
- The LimeSurvey team for providing a great survey platform.
- Markus Opolka for maintaining a very robust set of LimeSurvey Docker images.
- Claudio Jolowicz and his amazing blog post.
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
Built Distribution
File details
Details for the file citric-1.1.0.tar.gz
.
File metadata
- Download URL: citric-1.1.0.tar.gz
- Upload date:
- Size: 187.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f285baf5b9fd99257995d495618def2cd15a9ec7da153276291eb342bccabaad |
|
MD5 | cce0f1c08f0c0a8ce1106c995adc394f |
|
BLAKE2b-256 | 165349d1532c382f8e9198eab85a8440a6968d8b582f1187e7b8a59fc99ac593 |
Provenance
The following attestation bundles were made for citric-1.1.0.tar.gz
:
Publisher:
build.yml
on edgarrmondragon/citric
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
citric-1.1.0.tar.gz
- Subject digest:
f285baf5b9fd99257995d495618def2cd15a9ec7da153276291eb342bccabaad
- Sigstore transparency entry: 144965181
- Sigstore integration time:
- Predicate type:
File details
Details for the file citric-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: citric-1.1.0-py3-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dae63531f3b2be585ff983617205cc6c1c98054e36ab97641700cbc73a86df3c |
|
MD5 | e1c5238352a42c27d5eace71c3377ac8 |
|
BLAKE2b-256 | f5f41420c545565073c5b46d20877ff710078008fa573e6abf7b89cbd5cd325d |
Provenance
The following attestation bundles were made for citric-1.1.0-py3-none-any.whl
:
Publisher:
build.yml
on edgarrmondragon/citric
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
citric-1.1.0-py3-none-any.whl
- Subject digest:
dae63531f3b2be585ff983617205cc6c1c98054e36ab97641700cbc73a86df3c
- Sigstore transparency entry: 144965184
- Sigstore integration time:
- Predicate type: