A library of helper tools for catala programming in the context of French legislative texts.
catleg
requires python >= 3.10
pip install catleg
pip install .
pip install 'catleg @ git+https://github.com/CatalaLang/catleg@main'
You may replace main
with any ref (commit SHA, tag, branch...)
Run catleg --help
for a list of commands.
catleg
uses the Legifrance API (though we hope to provide our own API soon!) to access French legislative texts.
This API is authenticated and requires credentials, which may be obtained by registering on the Piste portal.
To provide credentials to catleg
, create a .catleg_secrets.toml
file like so:
lf_client_id = "your_client_id"
lf_client_secret = "your_client_secret"
Alternatively, you may define the environment variables CATLEG_LF_CLIENT_ID
and CATLEG_LF_CLIENT_SECRET
.