Python SDK
The official Python SDK for the AutoICD API. One dependency, fully typed with dataclasses, Python 3.10+. Add automated ICD-10 coding to your application in minutes.
Quick Start
Install from PyPI and start coding diagnoses in three lines.
pip install autoicdfrom autoicd import AutoICD
client = AutoICD(api_key="sk_...")
result = client.code("Type 2 diabetes with CKD stage 3")What You Can Build
Four methods covering the full AutoICD API surface.
Extract diagnoses from clinical text and map them to ICD-10-CM codes with confidence scores and negation detection.
Strip names, dates, SSNs, phone numbers, and other protected health information from clinical text.
Full-text search across 74,000+ ICD-10-CM 2025 codes by keyword, description, or code prefix.
Get full code details with SNOMED CT and UMLS synonyms, cross-references, hierarchy, and chapter classification.
Why This SDK
Single Dependency
Just httpx 0.27+. No requests, no aiohttp, no bloat.
Python 3.10+
Modern Python with full type annotations. Works with mypy and pyright.
Dataclass Responses
All response types are plain dataclasses. No Pydantic required, easy to inspect and serialize.
Context Manager
Use with statements for automatic resource cleanup.
Rate Limit Aware
Built-in rate limit tracking. Check client.last_rate_limit after any call.
Configurable
Custom base URL for local dev, staging, or on-premise deployments.
Other Ways to Integrate
Start building with the Python SDK
Free 7-day trial with 100 requests per day. No credit card required.