faker.providers.ssn.lv_LV

Package Contents

Classes

SsnProvider

Provider

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

Bases: faker.providers.BaseProvider

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

Bases: faker.providers.ssn.Provider

vat_id_formats = ('LV###########',)
ssn(min_age: int = 0, max_age: int = 105) str

Returns 11 character Latvian personal identity code (Personas kods). This function assigns random age to person.

Personal code 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 number for the century is either 0 (1800–1899), 1 (1900–1999), or 2 (2000–2099).

static _get_century_code(year: int) int

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 Latvian VAT ID