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 autoicd
from 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.

ICD-10 Coding

Extract diagnoses from clinical text and map them to ICD-10-CM codes with confidence scores and negation detection.

PHI De-identification

Strip names, dates, SSNs, phone numbers, and other protected health information from clinical text.

Code Search

Full-text search across 74,000+ ICD-10-CM 2025 codes by keyword, description, or code prefix.

Code Lookup

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.

Start building with the Python SDK

Free 7-day trial with 100 requests per day. No credit card required.