# stdnum.lt.asmens

Asmens kodas (Lithuanian, personal numbers).

The Asmens kodas consists of 11 digits. The first digits denotes the gender and birth century, the second through seventh denotes the birth date, followed by a three-digit serial and a check digit.

More information:

- https://lt.wikipedia.org/wiki/Asmens_kodas
- https://en.wikipedia.org/wiki/National_identification_number#Lithuania

    >>> validate('33309240064')
    '33309240064'
    >>> validate('33309240164')
    Traceback (most recent call last):
        ...
    InvalidChecksum: ...

`stdnum.lt.asmens.``compact`(number)

  Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.

`stdnum.lt.asmens.``is_valid`(number, validate_birth_date=True)

  Check if the number provided is valid. This checks the length, formatting, embedded date and check digit.

`stdnum.lt.asmens.``validate`(number, validate_birth_date=True)

  Check if the number provided is valid. This checks the length, formatting, embedded date and check digit.