Skip to main content

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

https://api.surveycoder.io/docs

Metadata

Release files for surveycoder 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for surveycoder 1.0.2
File Size Uploaded
surveycoder-1.0.2.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for surveycoder 1.0.2
File Interpreter ABI Platform
surveycoder-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / surveycoder-1.0.2.tar.gz

Download URL surveycoder-1.0.2.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5713d273117cd06b2ce1b8485b8187b566557771078796f329ded654c5b5ef4f
BLAKE2b-256 checksum
How to use checksums
86006925ae6d10d3af272b3b61eb701f11ab5877bddd129c867a259d47421bd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / surveycoder-1.0.2-py3-none-any.whl

Download URL surveycoder-1.0.2-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5644949341f2f1745019379bff2c71d4698642e17e458e6b5dfb11e4aacc3b4d
BLAKE2b-256 checksum
How to use checksums
abca8f57c89c16ddc7f56da91e86c2171d19dc805732c01128695df8351ada87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page