No project description provided
Project description
catleg
A library of helper tools for catala programming in the context of French legislative texts.
Installing
catleg
is not released on PyPI yet ; install it by running pip install -e .
from a source clone.
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
.
Development install
Run pip install -e .[dev]
for a local, editable install that includes development dependencies.
catleg
uses tox to run linters and unit tests in various environments.
Run tox
to execute tests and linters.
Formatting and import ordering is done by µFmt which is basically black + µsort.
Pre-commit hook
To ensure code is always formatted before a commit, you can use the supplied pre-commit hook.
Run this once:
pre-commit install
Then, before every commit, the code will be reformatted automatically.
The pre-commit hook will also run the ruff
linter.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for catleg-0.1.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c24a2795142a559568b483936d35ef1967bdf6caa53c015e9af99cc255156f2 |
|
MD5 | 3253d33ec101ef61f93fcf1f4dba8288 |
|
BLAKE2b-256 | 8e24fc0027b9c35cb0ff915d0a36f5d2fb99891291f627e1676a163ee9bd430a |