Skip to main content

A library of helper tools for catala programming in the context of French legislative texts.

Project description

catleg

A library of helper tools for catala programming in the context of French legislative texts.

Installing

catleg requires python >= 3.10

from PyPI

pip install catleg

from a source clone

pip install .

from github

pip install 'catleg @ git+https://github.com/CatalaLang/catleg@main'

You may replace main with any ref (commit SHA, tag, branch...)

Running catleg

Run catleg --help for a list of commands.

Legifrance credentials

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

catleg-0.2.8.tar.gz (36.8 kB view hashes)

Uploaded Source

Built Distribution

catleg-0.2.8-py3-none-any.whl (24.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page