Fond LODA
The Loda class (in pylegifrance/fonds/loda.py) exposes the LODA fond
(Lois, Ordonnances, Décrets, Arrêtés) via two Legifrance bases:
LODA_ETAT— current state;LODA_DATE— historical state (default in the facade).
Scope and filtering
Section titled “Scope and filtering”By default, the search is limited to texts in force as of today:
- facet
DATE_VERSION= today, - facets
TEXT_LEGAL_STATUSandARTICLE_LEGAL_STATUS=VIGUEUR,
regardless of the target fond (LODA_DATE or LODA_ETAT).
The text type is narrowed via SearchRequest.nature (default
["LOI", "ORDONNANCE", "DECRET", "ARRETE"]).
from pylegifrance.client import LegifranceClientfrom pylegifrance.fonds.loda import Lodafrom pylegifrance.models.loda.search import SearchRequest
client = LegifranceClient()loda = Loda(client)
# Simplified searchresults = loda.search("environnement")
# Structured searchresults = loda.search( SearchRequest( search="environnement", page_number=2, page_size=20, ))
# Version of a text at a specific dateversioned = loda.fetch_version_at("78-17", "2022-01-01")
# All versions of a textversions = loda.fetch_versions("78-17")