Citations

Citations used for cross-referencing caselaw.

class justopinion.citations.CAPCitation(*, cite, reporter=None, category=None, case_ids=[], type=None)

A case citation generated by the Case Access Project.

Not to be confused with a CaseCitation created by the Eyecite library.

Parameters:
  • cite (str) – The text making up the citation.

  • reporter (str | None) – Identifier for the reporter cited to.

  • category (str | None) – The type of document cited, e.g. “reporters:federal”

  • case_ids (list[int]) – A list of Case Access Project IDs for the cited case.

  • type (str | None) – The kind of citation, e.g. “official”

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class justopinion.citations.ReporterCitation(*, volume, reporter, page)

The volume, reporter, and initial page number of a case in a reporter.

Based on the CourtListener API’s Cluster endpoint’s citation object.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

justopinion.citations.normalize_case_cite(cite)

Get just the text that identifies a citation.

Return type:

str