LegifranceClient
PyLegifrance
Simple access to French legal data through the Legifrance API.
This site is an LLM-maintained wiki. See
docs/CLAUDE.md
for the contribution conventions.
Entities
Section titled “Entities”ApiConfig
Authentication
Fond Code
Fond Juri
Fond LODA
Fond KALI
Article
Concepts
Section titled “Concepts”- Architecture — C4 view, layers, facade/model/client
- Builder pattern —
.in_code().text().execute() - Fond facade — why
fonds/andmodels/are separated - Enum wrapping — domain enum vs generated enum
- Generated models —
datamodel-codegenand the “don’t edit” rule - PISTE OAuth — authentication flow
- CID & versioning — consolidation, legal statuses, sweep provisions
- Terms, quotas and licence — beta status, PISTE quotas, Etalab 2.0 licence
Operations
Section titled “Operations”- Quick start
- Install
- Create a PISTE account
- Configure API credentials
- Search in legal codes
- Fetch a case law decision
- Search in LODA