nllegalcit package
Module contents
nllegalcit/__init__.py
Copyright 2023-2024, Martijn Staal <nllegalcit [at] martijn-staal.nl>
Available under the EUPL-1.2, or, at your option, any later version.
SPDX-License-Identifier: EUPL-1.2
- class nllegalcit.Citation
- Bases: - object- Base Citation class - matched_text: str
- The underlying text that resulted in this Citation. 
 
- class nllegalcit.EcliCitation(country: str, court: str, year: int, casenumber: str)
- Bases: - CaseLawCitation- CaseLawCitation for ECLI-citations - country: str
- The country code in this ECLI, e.g. NL, DE, FR, EU, CE. 
 - court: str
- The ECLI abbreviation for the court or body. 
 - year: int
 - casenumber: str
 
- class nllegalcit.LjnCitation(code: str)
- Bases: - CaseLawCitation- CaseLawCitation for LJN citations - code: str
- The LJN code, e.g. AU9722 
 
- class nllegalcit.HandelingCitation(kamer: str, vergaderjaar: str, vergaderingnummer: int, itemnummer: int, paginaverwijzing=None)
- Bases: - Citation- Structured representation of a citation of a Handeling - kamer: Kamer
 - vergaderjaar: str
 - vergaderingnummer: int
 - itemnummer: int
 
- class nllegalcit.KamerstukCitation(kamer: str, vergaderjaar: str, dossiernummer: str, ondernummer: str, paginaverwijzing=None, rijksdossiernummer=None)
- Bases: - Citation- Structured representation of a citation of a kamerstuk - kamer: Kamer
 - vergaderjaar: str
 - dossiernummer: str
 - ondernummer: str
 - rijksdossiernummer: str | None
 
- nllegalcit.parse_citations_from_pdf(pdffile: str | IO[Any] | Path) list[Citation]
- Parse any supported citations in a given PDF file. - Reading the PDF file is done via pypdf. The pdffile may be any file object or a path to the pdf file. 
- nllegalcit.parse_citations_from_pdf_url(url: str) list[Citation]
- Parse any supported citations in a PDF which is located at the given URL. 
- nllegalcit.parse_kamerstukcitation(text: str) list[KamerstukCitation]
- Parse only KamerstukCitations in a given text. 
- exception nllegalcit.CitationParseException
- Bases: - Exception- Something went wrong parsing a citation