faker.providers.ssn.el_GR

Package Contents

Classes

BaseProvider

Provider

A Faker provider for Greek identification numbers

Functions

calculate_luhn(→ int)

Generates the Checksum using Luhn's algorithm

tin_checksum(→ int)

Calculates the checksum (last) digit of Greek TINs given the rest

faker.providers.ssn.el_GR.calculate_luhn(partial_number: float) int

Generates the Checksum using Luhn’s algorithm

class faker.providers.ssn.el_GR.BaseProvider(generator: Any)

Bases: faker.providers.BaseProvider

ssn_formats: faker.providers.ElementsType[str] = ('###-##-####',)
ssn() str
faker.providers.ssn.el_GR.tin_checksum(tin: str) int

Calculates the checksum (last) digit of Greek TINs given the rest :param tin: first 8 digits of a Greek TIN :return: calculated checksum digit

class faker.providers.ssn.el_GR.Provider(generator: Any)

Bases: faker.providers.ssn.Provider

A Faker provider for Greek identification numbers

police_id_format = '??######'
vat_id(prefix: bool = True) str

Generates random Greek VAT IDs (business TINs) :param prefix: boolean option to use EU format (“EL”) prefix :return: a random Greek VAT ID

tin() str

Generates random Greek personal TINs :return: a random Greek personal TIN

ssn() str

Generates random Greek social security number (AMKA) :return: a random Greek social security number

police_id() str

Generates random Greek identity card (aka police-issued identification card) numbers :return: a random Greek identity card number