Search in LODA
The Loda class lets you query the
LODA fond.
Simple search
Section titled “Simple search”from pylegifrance.client import LegifranceClientfrom pylegifrance.fonds.loda import Loda
client = LegifranceClient()loda = Loda(client)
results = loda.search("environnement")Structured search
Section titled “Structured search”from pylegifrance.models.loda.search import SearchRequest
results = loda.search( SearchRequest( search="environnement", page_number=2, page_size=20, ))Version at a date
Section titled “Version at a date”text = loda.fetch_version_at("78-17", "2022-01-01")All versions of a text
Section titled “All versions of a text”versions = loda.fetch_versions("78-17")Default scope
Section titled “Default scope”- Only texts in force as of today are returned.
natureis limited to["LOI", "ORDONNANCE", "DECRET", "ARRETE"].
See /en/entities/fond-loda for
details.