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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file catleg-0.2.8.tar.gz.

File metadata

  • Download URL: catleg-0.2.8.tar.gz
  • Upload date:
  • Size: 36.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for catleg-0.2.8.tar.gz
Algorithm Hash digest
SHA256 79071317ed6ed1c13d9badfa8ceaab9b478d5e95ad1e0d3c7b13a4b09a53563d
MD5 4f9eee34df3c7310b4972d611f9d0260
BLAKE2b-256 3e3a392825208439a512227ddb8537228d11bf1e109fed7c56bfb8c9e0f7a7a5

See more details on using hashes here.

File details

Details for the file catleg-0.2.8-py3-none-any.whl.

File metadata

  • Download URL: catleg-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for catleg-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 402e7afe9990a6175f42015cde105e2e56ca092b9670e0ff4ddd52f7d53ff04f
MD5 5e7363b75f7ed552b67af404a20eeadd
BLAKE2b-256 2f38f3fa2dff32a84afa603a90ad1c5d5b5c392ca2171b441dc8a4990ac777be

See more details on using hashes here.

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