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

1"""The sources of court opinions that courtpy can collect and read. 

2 

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`). 

6 

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. 

10 

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. 

15 

16""" 

17 

18from __future__ import annotations 

19 

20__all__: list[str] = ['SOURCES', 'Source', 'find_source'] 

21 

22from .base import SOURCES, Source, find_source