Coverage for src/courtpy/sources/__init__.py: 100%
3 statements
« prev ^ index » next coverage.py v7.16.2, created at 2026-11-22 15:51 +0000
« prev ^ index » next coverage.py v7.16.2, created at 2026-11-22 15:51 +0000
1"""The sources of court opinions that courtpy can collect and read.
3Each module is one source: CourtListener's bulk data and API
4(`courtlistener`) and files downloaded from Lexis-Nexis (`lexis`). Each can
5also be imported from `courtpy` itself (such as `courtpy.courtlistener`).
7`base` has `Source`, which the sources build on and a study can subclass to
8read its own saved cases. Each source adds itself to `SOURCES` when it is
9defined.
11Contents:
12 SOURCES: the sources of saved cases that courtpy can read, by name.
13 Source: base class for a source of saved cases.
14 find_source: returns a source of saved cases, by name.
16"""
18from __future__ import annotations
20__all__: list[str] = ['SOURCES', 'Source', 'find_source']
22from .base import SOURCES, Source, find_source