Fond Juri
The JuriAPI class (in pylegifrance/fonds/juri.py) exposes access to the
JURI (case law) fond of Legifrance.
Fetching a decision
Section titled “Fetching a decision”By identifier or by legacy identifier:
from pylegifrance.fonds.juri import JuriAPI
juri = JuriAPI(client)
decision = juri.fetch("JURITEXT000037999394")decision = juri.fetch_with_ancien_id("07-87362")The return is an enriched JuriDecision.
Accessing content
Section titled “Accessing content”decision.text # full textdecision.text_html # formatted HTMLdecision.titledecision.long_titledecision.formationdecision.numerodecision.jurisdictiondecision.solutiondecision.dateSearch
Section titled “Search”from pylegifrance.fonds.juri import SearchRequestfrom pylegifrance.models.juri.constants import JuridictionJudiciaire
# Simpleresults = juri.search("responsabilité civile")
# Advancedrequest = SearchRequest( search="contrat", juridiction_judiciaire=[JuridictionJudiciaire.cour_de_cassation.value], page_size=5,)results = juri.search(request)Versions of a decision
Section titled “Versions of a decision”decision.at("2022-01-01") # version at a datedecision.latest() # latest versiondecision.versions() # all versions