Skip to content

API Reference

Auto-generated from the source docstrings. This is the canonical, always-in-sync reference for the bharat_courts package — every signature, parameter and return type below is extracted directly from the code.

New to the library? Start with the Quickstart and the guides, which show these APIs in context.

  • Judgments facade


    Judgments — the federated entry point. One find() call, routed to the right backend automatically.

  • Live clients


    HCServicesClient, DistrictCourtClient, JudgmentSearchClient, CalcuttaHCClient, SCIClient — the portal scrapers.

  • Archive client


    ArchiveClient — DuckDB queries over the AWS Open Data buckets, plus PDF retrieval and caching.

  • Data models


    Judgment, CaseInfo, CaseOrder, CauseListPDF, SearchResult and the rest of the typed DTOs.

  • Courts registry


    get_court, infer_court_from_cnr and the static registry of every supported court.

  • CAPTCHA solvers


    The pluggable CaptchaSolver ABC and its OCR / ONNX / manual implementations.