# stdnum.mz.nuit

NUIT (Número Único de Identificação Tributaria, Mozambique tax number).

This number consists of 9 digits, sometimes separated in three groups of three digits using whitespace to make it easier to read.

The first digit indicates the type of entity. The next seven digits are a sequential number. The last digit is the check digit, which is used to verify the number was correctly typed.

More information:

- https://www.mobilize.org.mz/nuit-numero-unico-de-identificacao-tributaria/

- https://www.at.gov.mz/por/Perguntas-Frequentes2/NUIT

    >>> validate('400339910')
    '400339910'
    >>> validate('400 005 834')
    '400005834'
    >>> validate('12345')
    Traceback (most recent call last):
        ...
    InvalidLength: ...
    >>> format('400339910')
    '400 339 910'

stdnum.mz.nuit.calc_check_digit(number: str) → str

  Calculate the check digit.

stdnum.mz.nuit.compact(number: str) → str

  Convert the number to the minimal representation.

stdnum.mz.nuit.format(number: str) → str

  Reformat the number to the standard presentation format.

stdnum.mz.nuit.is_valid(number: str) → bool

  Check if the number is a valid Mozambique NUIT number.

stdnum.mz.nuit.validate(number: str) → str

  Check if the number is a valid Mozambique NUIT number.