Skip to content

Article

An article is a textual unit inside a code or a LODA text, identified by a LEGIARTI. On the domain side, facades return Article objects (a Pydantic v2 model defined in pylegifrance/models/code/models.py).

FieldTypeRole
idstrLEGIARTI, unique identifier
numberstrofficial number ("L36-11", "1382")
titlestr | Nonelabel
contentstrraw text
content_htmlstr | Noneformatted HTML text
cidstr | Noneparent code LEGITEXT
code_namestr | Nonecode name ("Code civil")
version_datedatetime | Noneversion date (auto-parsed from Unix timestamp or ISO)
legal_statusstr | Nonelegal status — see /en/concepts/cid-and-versioning for the full list (VIGUEUR, VIGUEUR_AVEC_TERME, VIGUEUR_DIFFEREE, ABROGE, …)
urlstr | Nonelegifrance.gouv.fr URL

Useful method: article.format_citation()"Code civil, art. 1 (version du 01/01/2020)".

Via Fond Code:

fetcher = code.fetch_article("LEGIARTI000006419305")
article = fetcher.at("2022-01-01") # version at a date
IdentifierRole
LEGITEXT…identifier of a code or a LODA text
LEGIARTI…identifier of an article
JURITEXT…identifier of a case law decision

See the official Legifrance glossary in Official Légifrance API glossary (DILA).