faker.providers.ssn.fi_FI

Package Contents

Classes

SsnProvider

Provider

class faker.providers.ssn.fi_FI.SsnProvider(generator: Any)

Bases: faker.providers.BaseProvider

ssn_formats: faker.providers.ElementsType[str] = ('###-##-####',)
ssn() str
class faker.providers.ssn.fi_FI.Provider(generator: Any)

Bases: faker.providers.ssn.Provider

vat_id_formats = ('FI########',)
ssn(min_age: int = 0, max_age: int = 105, artificial: bool = False) str

Returns 11 character Finnish personal identity code (Henkilötunnus, HETU, Swedish: Personbeteckning). This function assigns random gender to person.

HETU consists of eleven characters of the form DDMMYYCZZZQ, where DDMMYY is the date of birth, C the century sign, ZZZ the individual number and Q the control character (checksum). The sign for the century is either + (1800–1899), - (1900–1999), or A (2000–2099). The individual number ZZZ is odd for males and even for females. For people born in Finland its range is 002-899 (larger numbers may be used in special cases). An example of a valid code is 311280-888Y.

https://en.wikipedia.org/wiki/National_identification_number#Finland

static _get_century_code(year: int) str

Returns the century code for a given year

vat_id() str

http://ec.europa.eu/taxation_customs/vies/faq.html#item_11 :return: A random Finnish VAT ID