cbcp 0.1.2

Deterministic BCP 47 locale-ID casting and vendor code mapping: normalize, display, validate, DeepL/Google adapters. No models, no I/O.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
# cbcp (Python)

Python port of the `cbcp` Rust crate: deterministic BCP 47 locale-ID casting
and vendor code mapping. Zero dependencies, Python 3.10+.

See the [repository README](https://github.com/corbet-foss/cbcp/blob/main/README.md) for the rule and the
[vectors](https://github.com/corbet-foss/cbcp/blob/main/tests/README.md) for the contract.

```sh
python -m cbcp normalize " DE_Ch "
python -m cbcp bcp47 de-ch
python -m cbcp deepl-target en
```