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.9.tar.gz (44.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

catleg-0.2.9-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: catleg-0.2.9.tar.gz
  • Upload date:
  • Size: 44.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.12.13 HTTPX/0.28.1

File hashes

Hashes for catleg-0.2.9.tar.gz
Algorithm Hash digest
SHA256 b14a478340034b88010baf5bc6e371d07e75bfd9c446aa006049b59daebd09db
MD5 eba607212421f5bb2b8a93844548bde6
BLAKE2b-256 c6ad086c62a3ef2829240749556dfde31767ed0130dbb40459184518a91f3abf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: catleg-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.12.13 HTTPX/0.28.1

File hashes

Hashes for catleg-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 508327bebb47848be26fbac47f4faa386476fefc766c507d8193ac996fbddbd1
MD5 264a539fd8ca00874f75c774968dbb31
BLAKE2b-256 01e31e071ef968f09180a38685899c3fcec94075fe8d25f1e92ab6011bd64072

See more details on using hashes here.

Supported by

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