faker.providers.person.pl_PL

Package Contents

Classes

PersonProvider

Provider

Functions

checksum_identity_card_number(→ int)

Calculates and returns a control digit for given list of characters basing on Identity Card Number standards.

class faker.providers.person.pl_PL.PersonProvider(generator: Any)

Bases: faker.providers.BaseProvider

formats: faker.providers.ElementsType[str] = ['{{first_name}} {{last_name}}']
first_names: faker.providers.ElementsType[str] = ['John', 'Jane']
last_names: faker.providers.ElementsType[str] = ['Doe']
language_names: faker.providers.ElementsType[str] = ['Afar', 'Abkhazian', 'Avestan', 'Afrikaans', 'Akan', 'Amharic', 'Aragonese', 'Arabic',...
name() str
Example

‘John Doe’

first_name() str
last_name() str
name_male() str
name_nonbinary() str
name_female() str
first_name_male() str
first_name_nonbinary() str
first_name_female() str
last_name_male() str
last_name_nonbinary() str
last_name_female() str
prefix() str
prefix_male() str
prefix_nonbinary() str
prefix_female() str
suffix() str
suffix_male() str
suffix_nonbinary() str
suffix_female() str
language_name() str

Generate a random i18n language name (e.g. English).

faker.providers.person.pl_PL.checksum_identity_card_number(characters: Sequence[Union[str, int]]) int

Calculates and returns a control digit for given list of characters basing on Identity Card Number standards.

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

Bases: faker.providers.person.Provider

formats = ('{{first_name}} {{last_name}}', '{{first_name}} {{last_name}}', '{{first_name}} {{last_name}}',...
first_names_male: Tuple[str, Ellipsis] = ('Jakub', 'Jan', 'Mateusz', 'Bartek', 'Kacper', 'Michał', 'Szymon', 'Antoni', 'Filip', 'Piotr',...
first_names_female: Tuple[str, Ellipsis] = ('Kamila', 'Ewa', 'Blanka', 'Olga', 'Kalina', 'Klara', 'Urszula', 'Sandra', 'Kaja', 'Marianna',...
unisex_last_names: Tuple[str, Ellipsis] = ('Wandzel', 'Pajda', 'Dzienis', 'Borysewicz', 'Szlaga', 'Krzysiek', 'Iwańczyk', 'Cierpisz',...
male_last_names: Tuple[str, Ellipsis] = ('Kowalski', 'Wiśniewski', 'Dąbrowski', 'Lewandowski', 'Wójcik', 'Kamiński', 'Kowalczyk',...
prefixes_male: Tuple[str, Ellipsis] = ('pan',)
prefixes_female: Tuple[str, Ellipsis] = ('pani',)
first_names
tax_office_codes: Tuple[str, Ellipsis] = ('101', '102', '103', '104', '105', '106', '107', '108', '109', '111', '112', '113', '114',...
last_name() str
identity_card_number() str

Returns 9 character Polish Identity Card Number, Polish: Numer Dowodu Osobistego.

The card number consists of 3 letters followed by 6 digits (for example, ABA300000), of which the first digit (at position 3) is the check digit.

https://en.wikipedia.org/wiki/Polish_identity_card

static pesel_compute_check_digit(pesel: str) int
pesel(date_of_birth: Optional[datetime.datetime] = None, sex: Optional[str] = None) str

Returns 11 characters of Universal Electronic System for Registration of the Population. Polish: Powszechny Elektroniczny System Ewidencji Ludności.

PESEL has 11 digits which identifies just one person. pesel_date: if person was born in

  • 1900-1999 - month field number is not modified

  • 2000–2099 – month field number is increased by 20

  • 2100–2199 – month + 40

  • 2200–2299 – month + 60

  • 1800–1899 – month + 80

  • outside range 1800-2299 function will raise ValueError

pesel_sex: last digit identifies person’s sex. Even for females, odd for males.

https://en.wikipedia.org/wiki/PESEL

static pwz_doctor_compute_check_digit(x: Sequence[int]) int
pwz_doctor() str

Function generates an identification number for medical doctors Polish: Prawo Wykonywania Zawodu (PWZ)

https://www.nil.org.pl/rejestry/centralny-rejestr-lekarzy/zasady-weryfikowania-nr-prawa-wykonywania-zawodu

pwz_nurse(kind: str = 'nurse') str

Function generates an identification number for nurses and midwives Polish: Prawo Wykonywania Zawodu (PWZ)

http://arch.nipip.pl/index.php/prawo/uchwaly/naczelnych-rad/w-roku-2015/posiedzenie-15-17-grudnia/3664-uchwala- nr-381-vi-2015-w-sprawie-trybu-postepowania-dotyczacego-stwierdzania-i-przyznawania-prawa-wykonywania-zawodu-pi elegniarki-i-zawodu-poloznej-oraz-sposobu-prowadzenia-rejestru-pielegniarek-i-rejestru-poloznych-przez-okregowe -rady-pielegniarek-i-polo

nip() str

Returns 10 digit of Number of tax identification. Polish: Numer identyfikacji podatkowej (NIP).

https://pl.wikipedia.org/wiki/NIP list of codes http://www.algorytm.org/numery-identyfikacyjne/nip.html