PyLimeRPC/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tammo ter Hark d7d9dc61bf PyLimeRPC: package pylimerpc + pyproject + tests/examples (overname van minimalLS)
- nieuwe package `pylimerpc/` (rpc, session, surveys, tokens, responses, errors, utils, config)
- pyproject.toml (name PyLimeRPC, versie 0.1.0)
- tests/ (69 passed, 2 deselected) en examples/
- .env.example: TLS-verificatie documentatie (LIMESURVEY_VERIFY_SSL)
- README/.gitignore bijgewerkt

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-19 12:26:35 +01:00
..
__init__.py PyLimeRPC: package pylimerpc + pyproject + tests/examples (overname van minimalLS) 2026-11-19 12:26:35 +01:00
example_asgi.py PyLimeRPC: package pylimerpc + pyproject + tests/examples (overname van minimalLS) 2026-11-19 12:26:35 +01:00
example_cli.py PyLimeRPC: package pylimerpc + pyproject + tests/examples (overname van minimalLS) 2026-11-19 12:26:35 +01:00
example_cron_export.py PyLimeRPC: package pylimerpc + pyproject + tests/examples (overname van minimalLS) 2026-11-19 12:26:35 +01:00
README.md PyLimeRPC: package pylimerpc + pyproject + tests/examples (overname van minimalLS) 2026-11-19 12:26:35 +01:00

Examples

Three minimal scripts that use pylimerpc the way the three application types will. Each reads its config from .env and runs directly from the repo (no pip install -e . needed):

script application model run
example_cron_export.py cron/URL-triggered data task python examples/example_cron_export.py --sid 12345 --out output/cron
example_cli.py distributable CLI admin tool python examples/example_cli.py surveys / export --sid 12345 --out export.csv / tokens-list --sid 12345
example_asgi.py web dashboard via ASGI router app is a plain-ASGI callable; dev: uvicorn examples.example_asgi:app --port 8000

See the Prerequisites section in the main README.md for what you need before running these scripts (Python >= 3.10, a LimeSurvey 7 instance with the RemoteControl API enabled, an RPC user account, and a filled-in .env).

Config: .env in the repo root (LIMESURVEY_BASE_URL, LIMESURVEY_USERNAME, LIMESURVEY_PASSWORD, optional LIMESURVEY_TIMEOUT_SECONDS, LIMESURVEY_VERIFY_SSL).

Generated exports (output/, survey_*_responses.*, survey_*_statistics.*, *.csv/*.xls/*.xlsx/*.spss) are gitignored — survey data is never synced.