Python SDK for Survey Coder Pro — AI-powered survey coding
Project description
surveycoder
Python SDK for Survey Coder Pro — AI-powered open-ended survey coding.
Installation
pip install surveycoder
# With pandas integration:
pip install surveycoder[pandas]
Quick Start
from surveycoder import SurveyCoderClient
client = SurveyCoderClient(api_key="scp_live_your_key")
result = client.code(
responses=[
{"id": "1", "text": "Me gusta el sabor pero es caro"},
{"id": "2", "text": "Excelente servicio al cliente"},
],
coding_type="qualitative",
language="es",
)
print(result["codebook"])
print(result["results"])
Pandas Integration
df = client.code_to_dataframe(
responses=[...],
coding_type="qualitative",
)
df.to_excel("coded.xlsx")
Export
# Excel
excel_bytes = client.export_excel(
project_id=result["project_id"],
layout="wide_by_question",
include_categories=False,
)
with open("coded.xlsx", "wb") as f:
f.write(excel_bytes)
# CSV
csv_text = client.export_csv(project_id=result["project_id"])
Large Datasets (async jobs)
job = client.code(responses=large_dataset) # >= 50 responses
result = client.wait_for_job(job["job_id"]) # Polls every 5s
API Docs
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
surveycoder-1.0.2.tar.gz
(8.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file surveycoder-1.0.2.tar.gz.
File metadata
- Download URL: surveycoder-1.0.2.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5713d273117cd06b2ce1b8485b8187b566557771078796f329ded654c5b5ef4f
|
|
| MD5 |
0509017bade1eb58a0866da8b8785fcf
|
|
| BLAKE2b-256 |
86006925ae6d10d3af272b3b61eb701f11ab5877bddd129c867a259d47421bd1
|
File details
Details for the file surveycoder-1.0.2-py3-none-any.whl.
File metadata
- Download URL: surveycoder-1.0.2-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5644949341f2f1745019379bff2c71d4698642e17e458e6b5dfb11e4aacc3b4d
|
|
| MD5 |
1ad11b00909be609aa10786e830d67f2
|
|
| BLAKE2b-256 |
abca8f57c89c16ddc7f56da91e86c2171d19dc805732c01128695df8351ada87
|