faker.providers.ssn.pl_PL

Package Contents

Classes

SsnProvider

Provider

Functions

checksum(→ int)

Calculates and returns a control digit for given list of digits basing on PESEL standard.

calculate_month(→ int)

Calculates and returns a month number basing on PESEL standard.

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

Bases: faker.providers.BaseProvider

ssn_formats: faker.providers.ElementsType[str] = ('###-##-####',)
ssn() str
faker.providers.ssn.pl_PL.checksum(digits: List[int]) int

Calculates and returns a control digit for given list of digits basing on PESEL standard.

faker.providers.ssn.pl_PL.calculate_month(birth_date: datetime.datetime) int

Calculates and returns a month number basing on PESEL standard.

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

Bases: faker.providers.ssn.Provider

vat_id_formats = ('PL##########',)
ssn() str

Returns 11 character Polish national identity code (Public Electronic Census System, Polish: Powszechny Elektroniczny System Ewidencji Ludności - PESEL).

It has the form YYMMDDZZZXQ, where YYMMDD is the date of birth (with century encoded in month field), ZZZ is the personal identification number, X denotes sex (even for females, odd for males) and Q is a parity number.

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

vat_id() str

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