faker.providers.ssn.el_GR
¶
Package Contents¶
Classes¶
A Faker provider for Greek identification numbers |
Functions¶
|
Generates the Checksum using Luhn's algorithm |
|
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
- 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