Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

lino.utils.ssin

See ssin : Belgian national identification numbers.

Functions

format_niss(raw_ssin)

Add formatting chars to a given raw SSIN.

format_ssin(raw_ssin)

Add formatting chars to a given raw SSIN.

generate_ssin(birth_date, gender[, seq])

Generate an SSIN from a given birth date, gender and optional sequence number.

is_valid_ssin(ssin)

Returns True if this is a valid SSIN.

new_format_ssin(s)

Formats a raw SSIN as they are printed on the back of Belgian eid cards, for example "68.06.01-053.09"

parse_ssin(ssin)

ssin_validator(ssin)

Checks whether the specified SSIN is valid.

ssin_veto(ssin)

unformat_ssin(ssin)

Remove formatting characters from given SSIN.

lino.utils.ssin.generate_ssin(birth_date, gender, seq=None)

Generate an SSIN from a given birth date, gender and optional sequence number.

lino.utils.ssin.is_valid_ssin(ssin)

Returns True if this is a valid SSIN.

lino.utils.ssin.new_format_ssin(s)

Formats a raw SSIN as they are printed on the back of Belgian eid cards, for example “68.06.01-053.09”

lino.utils.ssin.unformat_ssin(ssin)

Remove formatting characters from given SSIN.

lino.utils.ssin.format_ssin(raw_ssin)

Add formatting chars to a given raw SSIN.

lino.utils.ssin.format_niss(raw_ssin)

Add formatting chars to a given raw SSIN.

lino.utils.ssin.ssin_validator(ssin)

Checks whether the specified SSIN is valid. If not, raises a ValidationError.