rigour
Financial crime domain data validation and normalization library.
What it is and what it does
Rigour is a data validation and normalization library designed for the financial crime and business intelligence domain. It consolidates production-tested implementations for handling human names, company names, language codes, country and territory identifiers, corporate and tax identifiers, and address formatting. The package addresses the gap between simple text handling and the complex edge cases that emerge in production systems—handling name variations, corporate entity formats, multilingual inputs, and standardized codes across jurisdictions.
The library depends on pyyaml, normality, prefixdate, orjson, python-stdnum, and jinja2 to provide its validation and normalization capabilities. It's actively maintained, supports Python 3.10 through 3.14, and includes pre-compiled wheels for macOS, Linux, and Windows architectures. The package is part of the OpenSanctions ecosystem and consolidates several older libraries (languagecodes, pantomime, fingerprints) into a single codebase.
Use it for:
- Normalize and validate company and individual names in financial crime compliance systems or sanctions screening workflows.
- Standardize country, language, and territory codes in international business data pipelines.
- Format addresses according to local customs for a given country in mail or document generation systems.
- Validate corporate and tax identifiers (e.g., VAT numbers, registration IDs) in accounting or regulatory reporting systems.
- Clean and deduplicate business entity records from multiple sources with varying name formats and conventions.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Rigour provides data cleaning and validation functions for business-world text: human and company names, language and territory codes, corporate identifiers, and addresses, with production-ready handling of edge cases.
Yes. Rigour is actively maintained, has no known vulnerabilities, supports current Python versions, and provides production-tested implementations for a specific but important domain (business data validation). The medium install friction is offset by comprehensive platform coverage and the consolidation of multiple specialized libraries into one package. Install if you work with business entity data, compliance systems, or international business records.
Install
rigour on PyPI
pip
pip install rigouruv
uv add rigourpoetry
poetry add rigourInstalling rigour
Before you install
Medium install friction due to compiled wheels for multiple Python versions and platforms (3.10–3.14, including Rust components). Active maintenance with a release 15 days ago and no known vulnerabilities.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open and proprietary projects with minimal restrictions.
Quickstart
pip install rigour
from rigour.names import normalize_name
from rigour.countries import country_name
normalized = normalize_name('John Doe')
country = country_name('US')
Requires Python 3.10 or later; wheels include Rust-compiled components.
Verify before relying
- Whether the package handles all major business identifier standards (tax IDs, corporate registration numbers) or a subset.
- Performance characteristics when processing large datasets or real-time validation scenarios.
- Completeness of address formatting coverage across all countries and territories.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 6 — pyyaml, normality, prefixdate, orjson, python-stdnum, jinja2 |
| Maintenance | actively maintained — 15 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 135,009/month — #11,455 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: rigour-2.3.1-cp310-cp310-macosx_10_12_x86_64.whl; rigour-2.3.1-cp310-cp310-macosx_11_0_arm64.whl; rigour-2.3.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; rigour-2.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; rigour-2.3.1-cp310-cp310-musllinux_1_2_aarch64.whl; rigour-2.3.1-cp310-cp310-musllinux_1_2_x86_64.whl; rigour-2.3.1-cp310-cp310-win_amd64.whl; rigour-2.3.1-cp311-cp311-macosx_10_12_x86_64.whl; rigour-2.3.1-cp311-cp311-macosx_11_0_arm64.whl; rigour-2.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; rigour-2.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; rigour-2.3.1-cp311-cp311-musllinux_1_2_aarch64.whl; rigour-2.3.1-cp311-cp311-musllinux_1_2_x86_64.whl; rigour-2.3.1-cp311-cp311-win_amd64.whl; rigour-2.3.1-cp312-cp312-macosx_10_12_x86_64.whl; rigour-2.3.1-cp312-cp312-macosx_11_0_arm64.whl; rigour-2.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; rigour-2.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; rigour-2.3.1-cp312-cp312-musllinux_1_2_aarch64.whl; rigour-2.3.1-cp312-cp312-musllinux_1_2_x86_64.whl
Tags
More Text Processing packages
A drop-in replacement for Python's standard…
permissive · top 100 on PyPI
pyparsingpyparsing provides a library for building text…
permissive · top 1,000 on PyPI
docutilsDocutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
RapidFuzzRapidFuzz provides fast fuzzy string matching…
permissive · top 1,000 on PyPI
tinycss2tinycss2 parses CSS strings into token and…
permissive · top 1,000 on PyPI
llama-parseLlamaParse parses complex documents (PDFs,…
permissive · top 1,000 on PyPI
fingerprintsGenerates simplified entity identifiers…
permissive · top 15,000 on PyPI
followthemoneyProvides a pragmatic data model and validation…
permissive · top 15,000 on PyPI
langcodesParses, validates, and standardizes IETF…
permissive · top 5,000 on PyPI
clean-textPreprocesses and normalizes user-generated text…
permissive · top 15,000 on PyPI
emvalValidates email addresses according to RFC 5322…
permissive · top 15,000 on PyPI
semantic-link-functions-validatorsAdds context-aware validation functions to…
permissive · top 15,000 on PyPI
email-validatorValidates email address syntax and optionally…
permissive · top 1,000 on PyPI
l18nProvides lazy translations for timezone and…
permissive · top 15,000 on PyPI
reuters-styleFormats dates, numbers, and text according to…
permissive · top 15,000 on PyPI