from fune.validation.email import is_email # validation.email@^1
Suites · validation-basics
Validation basics
Check and normalise what people type: email, phone, postcode, names, bank details and check-digit identifiers.
14 capabilities (4 core, 10 optional) and 3 gaps, in build order. Put each line in the file that calls it, then fune build.
Core coverage: 57.1%
4 of 7 needs met by verified capabilities. The needs are this suite's 4 core members and its 3 named gaps; a core member counts when a version of it is verified (by the sandbox, or the registry's seed) and not yanked, and a gap never counts. Optional members are not needs.
Baseline: a hand-written app with no suite meets 0 of the same 7. Method fune-coverage/1, computed 2026-11-22T21:02:20.607Z.
1. Contact details
Check and normalise a person's contact details before storing them.
from fune.validation.phone_e164 import validate_phone_e164 # validation.phone-e164@^2
from fune.validation.uk_postcode import validate_uk_postcode # validation.uk-postcode@^2
from fune.text.normalise_name import normalise_name # text.normalise-name@^1
from fune.auth.normalise_email import normalise_email # auth.normalise-email@^1
2. Bank details
Check payee and customer bank details before money moves.
from fune.validation.iban import is_iban # validation.iban@^1
from fune.validation.bic import validate_bic # validation.bic@^1
from fune.validation.uk_sort_code_account import validate_uk_sort_code_account # validation.uk-sort-code-account@^3
from fune.validation.uk_modulus_table import parse_uk_modulus_table # validation.uk-modulus-table@^1
3. Identifiers and check digits
Catch mistyped reference numbers by their check digits.
from fune.validation.luhn import is_luhn # validation.luhn@^1
from fune.validation.uk_company_number import validate_uk_company_number # validation.uk-company-number@^2
from fune.validation.lei import validate_lei # validation.lei@^1
from fune.validation.gtin import validate_gtin # validation.gtin@^1
4. Displaying sensitive values
Show stored identifiers without exposing them.
from fune.text.mask import mask # text.mask@^1
Gaps
What this kind of app usually needs that Functional Weave does not have yet: write these yourself, or use a service.
- address-lookup Turning a postcode into a list of addresses (Royal Mail PAF or a lookup API) is network work and not in caps.
- email-deliverability Whether a mailbox exists (MX lookups, a confirmation email): validation.email checks the syntax only.
- vocalink-data The Vocalink modulus tables themselves: download them from Pay.UK under its terms; caps parses them but does not ship them.