Metadata-Version: 2.4
Name: rigour
Version: 1.7.4
Summary: Financial crime domain data validation and normalization library.
Project-URL: Documentation, https://rigour.followthemoney.tech/
Project-URL: Repository, https://github.com/opensanctions/rigour.git
Project-URL: Issues, https://github.com/opensanctions/rigour/issues
Author-email: OpenSanctions <info@opensanctions.org>
License: MIT License
        
        Copyright (c) 2023-2025: OpenSanctions Datenbanken GmbH
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Requires-Dist: ahocorasick-rs<1.1.0,>=0.22.0
Requires-Dist: babel<3.0.0,>=2.9.1
Requires-Dist: banal<1.1.0,>=1.0.6
Requires-Dist: fingerprints<2.0.0,>=1.0.1
Requires-Dist: jellyfish<2.0.0,>=1.0.0
Requires-Dist: jinja2<4.0.0,>=3.1.0
Requires-Dist: normality<4.0.0,>=3.0.1
Requires-Dist: orjson<4.0.0,>=3.0.0
Requires-Dist: pyicu<3.0.0,>=2.0.0
Requires-Dist: python-stdnum<3.0.0,>=2.0
Requires-Dist: pyyaml<7.0.0,>=5.0.0
Requires-Dist: rapidfuzz<4.0.0,>=3.9.0
Provides-Extra: dev
Requires-Dist: black; extra == 'dev'
Requires-Dist: build; extra == 'dev'
Requires-Dist: bump2version; extra == 'dev'
Requires-Dist: coverage>=4.1; extra == 'dev'
Requires-Dist: mypy; extra == 'dev'
Requires-Dist: pip>=10.0.0; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: ruamel-yaml; extra == 'dev'
Requires-Dist: twine; extra == 'dev'
Requires-Dist: types-pyyaml; extra == 'dev'
Requires-Dist: types-requests; extra == 'dev'
Requires-Dist: types-setuptools; extra == 'dev'
Requires-Dist: wheel>=0.29.0; extra == 'dev'
Provides-Extra: docs
Requires-Dist: cairosvg; extra == 'docs'
Requires-Dist: mkdocs; extra == 'docs'
Requires-Dist: mkdocs-material; extra == 'docs'
Requires-Dist: mkdocstrings[python]; extra == 'docs'
Requires-Dist: pillow; extra == 'docs'
Description-Content-Type: text/markdown

# rigour

Data cleaning and validation functions for processing various types of text emanating and describing the business world. This applies to human and company names, language, territory
and country codes, corporate and tax identifiers, etc.

The underlying idea is that handling these sorts of descriptors is easy on first glance, but reveals a dizzying set of complexity when carried into production. This is why `rigour` consolidates implementations that have already met some edge cases and are well-tested.

## Installing `rigour`

You can grab the latest release from PyPI:

```bash
pip install -U rigour
```

## Usage & documentation 

See: https://rigour.followthemoney.tech/

## Acknowledgements

The address formatting database contained in `rigour/data/addresses/formats.yml` is derived from `worldwide.yml` in the [OpenCageData address-formatting repository](https://github.com/OpenCageData/address-formatting). It is used to format addresses according to customs in the country that is been encoded.

`rigour` consolidates and includes a set of older Python libraries into a single codebase: `languagecodes`, `pantomime`, `fingerprints`. The development of these libraries was funded by OCCRP as part of the Aleph software project.

## License

MIT. See `LICENSE`.