Locale uk_UA

faker.providers.address

class faker.providers.address.uk_UA.Provider(generator)

Bases: faker.providers.address.Provider

address()

:example ‘791 Crist Parks, Sashabury, IL 86039-9874’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.address()
...
'вулиця Ленинская, 47, хутір Давид, 25617'
'набережна Майорова Михаила, 924, місто Марта, 58735'
'набережна Дубового Ивана, 78, хутір Соломон, 02528'
'набережна 40-летия Октября, 53, селище Арсен, 94632'
'вулиця Бакинских Комиссаров, 8, село Йосип, 43044'
building_number()

:example ‘791’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.building_number()
...
'604'
'764'
'593'
'42'
'948'
city()

:example ‘Sashabury’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city()
...
'хутір Олег'
'селище Михайло'
'село Павло'
'хутір Прохір'
'хутір Хома'
city_prefix()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city_prefix()
...
'хутір'
'хутір'
'село'
'село'
'селище'
city_suffix()

:example ‘town’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.city_suffix()
...
'Ville'
'Ville'
'Ville'
'Ville'
'Ville'
country()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country()
...
'Таджикистан'
'Сейшельські Острови'
'ДР Конго'
'Еритрея'
'Мавританія'
country_code(representation='alpha-2')
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country_code()
...
'ZW'
'TO'
'LB'
'FI'
'MV'
postcode()

The code consists of five digits (01000-99999)

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.postcode()
...
'67890'
'05242'
'88961'
'65969'
'76866'
street_address()

:example ‘791 Crist Parks’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_address()
...
'вулиця Иванова Андрея, 64'
'набережна Дундича Олеко, 2'
'вулиця Чапаева, 924'
'набережна Командарма Уборевич, 56'
'вулиця Маршала Тухачевского, 84'
street_name()

:example ‘Crist Parks’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_name()
...
'набережна Краснопартизанская'
'набережна Красногвардейская'
'вулиця Лайоша Гавро'
'набережна Ленина'
'набережна Омельяна Горбачова'
street_prefix()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_prefix()
...
'набережна'
'набережна'
'вулиця'
'вулиця'
'набережна'
street_suffix()

:example ‘Avenue’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_suffix()
...
'узвіз'
'узвіз'
'узвіз'
'узвіз'
'узвіз'
street_title()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.street_title()
...
'Терешковой Валентины'
'Сагайдика Степана'
'Краснопартизанская'
'Иванова Андрея'
'Ленинская'

faker.providers.color

class faker.providers.color.uk_UA.Provider(generator)

Bases: faker.providers.color.Provider

Implement color provider for uk_UA locale.

Sources: - https://uk.wikipedia.org/wiki/Список_кольорів

color(hue=None, luminosity=None, color_format='hex')

Generate a color in a human-friendly way.

Under the hood, this method first creates a color represented in the HSV color model and then converts it to the desired color_format. The argument hue controls the H value according to the following rules:

  • If the value is a number from 0 to 360, it will serve as the H value of the generated color.
  • If the value is a tuple/list of 2 numbers from 0 to 360, the color’s H value will be randomly selected from that range.
  • If the value is a valid string, the color’s H value will be randomly selected from the H range corresponding to the supplied string. Valid values are 'monochrome', 'red', 'orange', 'yellow', 'green', 'blue', 'purple', and 'pink'.

The argument luminosity influences both S and V values and is partially affected by hue as well. The finer details of this relationship are somewhat involved, so please refer to the source code instead if you wish to dig deeper. To keep the interface simple, this argument either can be omitted or can accept the following string values:'bright', 'dark', 'light', or 'random'.

The argument color_format controls in which color model the color is represented. Valid values are 'hsv', 'hsl', 'rgb', or 'hex' (default).

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.color(hue='red')
...
'#af2f33'
'#e02141'
'#ef6466'
'#a80a14'
'#ed9e95'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.color(luminosity='light')
...
'#79c3e0'
'#89ffa1'
'#96cbf7'
'#aafaff'
'#e3f495'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.color(hue=(100, 200), color_format='rgb')
...
'rgb(26, 155, 88)'
'rgb(9, 193, 49)'
'rgb(73, 229, 154)'
'rgb(107, 249, 166)'
'rgb(76, 204, 69)'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.color(hue='orange', luminosity='bright')
...
'#efc332'
'#edae65'
'#d1861d'
'#ffcc42'
'#e09533'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.color(hue=135, luminosity='dark', color_format='hsv')
...
'hsv(135, 96, 45)'
'hsv(135, 98, 57)'
'hsv(135, 94, 61)'
'hsv(135, 99, 47)'
'hsv(135, 94, 50)'
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.color(hue=(300, 20), luminosity='random', color_format='hsl')
...
'hsl(217, 94, 27)'
'hsl(40, 23, 54)'
'hsl(268, 100, 74)'
'hsl(175, 43, 31)'
'hsl(131, 47, 11)'
color_name()

Generate a color name.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.color_name()
...
'Темно-оливковий'
'Темний весняно-зелений'
'Кремовий'
'Дерева'
'Міжнародний помаранчевий'
hex_color()

Generate a color formatted as a hex triplet.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.hex_color()
...
'#d82c08'
'#629f70'
'#c2094d'
'#e3e707'
'#6baa95'
rgb_color()

Generate a color formatted as a comma-separated RGB value.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.rgb_color()
...
'197,215,20'
'132,248,207'
'155,244,183'
'111,71,144'
'71,48,128'
rgb_css_color()

Generate a color formatted as a CSS rgb() function.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.rgb_css_color()
...
'rgb(197,215,20)'
'rgb(132,248,207)'
'rgb(155,244,183)'
'rgb(111,71,144)'
'rgb(71,48,128)'
safe_color_name()

Generate a web-safe color name.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.safe_color_name()
...
'fuchsia'
'yellow'
'teal'
'navy'
'lime'
safe_hex_color()

Generate a web-safe color formatted as a hex triplet.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.safe_hex_color()
...
'#cc5500'
'#dd7700'
'#114400'
'#884400'
'#ff8800'

faker.providers.internet

class faker.providers.internet.uk_UA.Provider(generator)

Bases: faker.providers.internet.Provider

ascii_company_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ascii_company_email()
...
'vsirobaba@kovalenko.ua'
'pavlomamchur@kashchenko.org'
'solomiiaiarema@cherinko.ukr'
'petro15@nalyvaiko-chumak.ukr'
'marusiahrechko@lazarenko.net'
ascii_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ascii_email()
...
'nzabashta@i.ua'
'ydankiv@chornovil-kashchenko.info'
'zynovii89@ukr.net'
'sviatoslava57@drozdenko-dashkevych.org'
'omelian84@shablii.com'
ascii_free_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ascii_free_email()
...
'vsirobaba@gmail.com'
'mykhailo47@gov.ua'
'hhavrylenko@email.ua'
'teslenkokhrystyna@i.ua'
'fedir24@email.ua'
ascii_safe_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ascii_safe_email()
...
'vsirobaba@example.org'
'mykhailo47@example.com'
'hhavrylenko@example.org'
'teslenkokhrystyna@example.com'
'fedir24@example.org'
company_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.company_email()
...
'vsirobaba@kovalenko.ua'
'pavlomamchur@kashchenko.org'
'solomiiaiarema@cherinko.укр'
'petro15@nalyvaiko-chumak.укр'
'marusiahrechko@lazarenko.net'
dga(year=None, month=None, day=None, tld=None, length=None)

Generates a domain name by given date https://en.wikipedia.org/wiki/Domain_generation_algorithm

Return type:str
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.dga()
...
'hxqvaffcmfsccynscisxeajjagjahtnfcm.info'
'cnrhkwsauxvmqcengcluh.ua'
'iiulfpgbvqcdaeh.укр'
'dgunygtn.com'
'uqniukqjckmjabijnuqholpsjayatffafysbsyaaytuquhbpmpviajxnaro.ua'
domain_name(levels=1)

Produce an Internet domain name with the specified number of subdomain levels.

>>> domain_name()
nichols-phillips.com
>>> domain_name(2)
williamson-hopkins.jackson.com
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.domain_name()
...
'sirobaba.org'
'talan-dankiv.net'
'chornovil-kashchenko.info'
'nesterenko.укр'
'cherinko.укр'
domain_word()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.domain_word()
...
'sirobaba'
'zhalilo-talan'
'ishchak'
'kashchenko'
'hodunok-chubai'
email(domain=None)
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.email()
...
'nzabashta@i.ua'
'ydankiv@chornovil-kashchenko.info'
'zynovii89@ukr.net'
'sviatoslava57@drozdenko-dashkevych.org'
'omelian84@shablii.com'
free_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.free_email()
...
'vsirobaba@gmail.com'
'mykhailo47@gov.ua'
'hhavrylenko@email.ua'
'teslenkokhrystyna@i.ua'
'fedir24@email.ua'
free_email_domain()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.free_email_domain()
...
'ukr.net'
'meta.ua'
'gov.ua'
'gmail.com'
'i.ua'
hostname(levels=1)

Produce a hostname with specified number of subdomain levels.

>>> hostname()
db-01.nichols-phillips.com
>>> hostname(0)
laptop-56
>>> hostname(2)
web-12.williamson-hopkins.jackson.com
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.hostname()
...
'email-60.kovalenko.ua'
'desktop-75.chornovil-kashchenko.info'
'email-94.kopytko.com'
'db-15.baidak-zaruba.org'
'web-87.kolesnychenko-arkhymovych.укр'
http_method()

Returns random HTTP method https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods

Return type:str
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.http_method()
...
'TRACE'
'OPTIONS'
'PUT'
'POST'
'DELETE'
image_url(width=None, height=None)

Returns URL to placeholder image Example: http://placehold.it/640x480

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.image_url()
...
'https://www.lorempixel.com/788/861'
'https://placeimg.com/995/829/any'
'https://dummyimage.com/621x976'
'https://dummyimage.com/447x285'
'https://placeimg.com/194/513/any'
ipv4(network=False, address_class=None, private=None)

Returns a random IPv4 address or network with a valid CIDR.

Parameters:
  • network – Network address
  • address_class – IPv4 address class (a, b, or c)
  • private – Public or private
Returns:

IPv4

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ipv4()
...
'171.174.170.81'
'95.25.112.121'
'51.105.121.194'
'195.110.164.126'
'141.250.247.54'
ipv4_network_class()

Returns a IPv4 network class ‘a’, ‘b’ or ‘c’.

Returns:IPv4 network class
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ipv4_network_class()
...
'c'
'c'
'b'
'a'
'b'
ipv4_private(network=False, address_class=None)

Returns a private IPv4.

Parameters:
  • network – Network address
  • address_class – IPv4 address class (a, b, or c)
Returns:

Private IPv4

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ipv4_private()
...
'192.168.215.85'
'10.248.203.131'
'172.25.180.188'
'192.168.111.215'
'172.19.8.218'
ipv4_public(network=False, address_class=None)

Returns a public IPv4 excluding private blocks.

Parameters:
  • network – Network address
  • address_class – IPv4 address class (a, b, or c)
Returns:

Public IPv4

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ipv4_public()
...
'195.174.170.81'
'15.227.46.15'
'164.218.94.112'
'214.253.123.155'
'134.17.181.9'
ipv6(network=False)

Produce a random IPv6 address or network with a valid CIDR

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ipv6()
...
'e3e7:682:c209:4cac:629f:6fbf:d82c:7cd'
'f728:b4fa:4248:5e3a:a5d:2f35:6baa:9455'
'eb11:67b3:67a9:c378:7c65:c1e6:82e2:e662'
'f7c1:bd87:4da5:e709:d471:3d61:c8a7:639'
'e443:df78:9558:867f:5ba9:1fb0:7a02:4204'
mac_address()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.mac_address()
...
'c5:d7:14:84:f8:cf'
'9b:f4:b7:6f:47:90'
'47:30:80:4b:9e:32'
'25:a9:f1:33:b5:de'
'a1:68:f4:e2:85:1f'
port_number(is_system=False, is_user=False, is_dynamic=False)

Returns a network port number https://tools.ietf.org/html/rfc6335

Parameters:
  • is_system – System or well-known ports
  • is_user – User or registered ports
  • is_dynamic – Dynamic / private / ephemeral ports
Return type:

int

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.port_number()
...
50494
55125
5306
33936
63691
safe_domain_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.safe_domain_name()
...
'example.net'
'example.net'
'example.com'
'example.org'
'example.com'
safe_email()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.safe_email()
...
'vsirobaba@example.org'
'mykhailo47@example.com'
'hhavrylenko@example.org'
'teslenkokhrystyna@example.com'
'fedir24@example.org'
slug(value=None)

Django algorithm

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.slug()
...
'sapiente-quidem-in'
'maiores-illo-quos'
'labore-nesciunt'
'magnam-eligendi'
'nulla-dolorum'
tld()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.tld()
...
'укр'
'ua'
'net'
'info'
'org'
uri()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.uri()
...
'https://www.kovalenko.ua/explore/category/privacy.html'
'http://www.yaremko.org/'
'http://www.demianiuk.info/'
'http://kolesnychenko-arkhymovych.укр/main/terms/'
'https://udovenko-demydenko.ua/list/wp-content/categories/main/'
uri_extension()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.uri_extension()
...
'.jsp'
'.php'
'.htm'
'.html'
'.htm'
uri_page()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.uri_page()
...
'terms'
'about'
'homepage'
'main'
'register'
uri_path(deep=None)
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.uri_path()
...
'posts/tag'
'explore/tag'
'explore/category'
'categories'
'main/main'
url(schemes=None)
Parameters:schemes – a list of strings to use as schemes, one will chosen randomly.

If None, it will generate http and https urls. Passing an empty list will result in schemeless url generation like “://domain.com”.

Returns:a random url string.
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.url()
...
'https://hrechanyk-kovalenko.net/'
'https://www.mamchur-chornovil.org/'
'http://hodunok-chubai.укр/'
'https://sahal.ua/'
'http://www.nalyvaiko-chumak.укр/'
user_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.user_name()
...
'vsirobaba'
'romanzhalilo'
'ydankiv'
'snizhana82'
'darynanesterenko'

faker.providers.job

class faker.providers.job.uk_UA.Provider(generator)

Bases: faker.providers.job.Provider

job()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.job()
...
'Співак'
'Психолог'
'Конструктор'
'Доцент'
'Математик'

faker.providers.person

class faker.providers.person.uk_UA.Provider(generator)

Bases: faker.providers.person.Provider

first_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name()
...
'Марія'
'Дарина'
'Олег'
'Іван'
'Роман'
first_name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_female()
...
'Ольга'
'Софія'
'Ірена'
'Володимира'
'Лілія'
first_name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_male()
...
'Соломон'
'Пантелеймон'
'Ігор'
'Вʼячеслав'
'Леон'
first_name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.first_name_nonbinary()
...
'Марія'
'Дарина'
'Олег'
'Іван'
'Роман'
language_name()

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

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.language_name()
...
'Swahili'
'Sardinian'
'Georgian'
'French'
'Ganda'
last_name()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name()
...
'Філіпенко'
'Сіробаба'
'Забашта'
'Гречаник'
'Коваленко'
last_name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_female()
...
'Філіпенко'
'Сіробаба'
'Забашта'
'Гречаник'
'Коваленко'
last_name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_male()
...
'Філіпенко'
'Сіробаба'
'Забашта'
'Гречаник'
'Коваленко'
last_name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.last_name_nonbinary()
...
'Філіпенко'
'Сіробаба'
'Забашта'
'Гречаник'
'Коваленко'
name()

:example ‘John Doe’

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name()
...
'Пантелеймон Забашта'
'Лілія Жаліло'
'Гордій Іщак'
'Тимофій Кащенко'
'Соломія Нестеренко'
name_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_female()
...
'Софія Забашта'
'Лілія Жаліло'
'Дарина Іщак'
'Світлана Кащенко'
'Соломія Нестеренко'
name_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_male()
...
'Пантелеймон Забашта'
'Леон Жаліло'
'Гордій Іщак'
'Тимофій Кащенко'
'Пантелеймон Нестеренко'
name_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.name_nonbinary()
...
'Пантелеймон Забашта'
'Лілія Жаліло'
'Гордій Іщак'
'Тимофій Кащенко'
'Соломія Нестеренко'
prefix()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix()
...
'пані'
'пан'
'пані'
'пані'
'пан'
prefix_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_female()
...
'пані'
'пані'
'пані'
'пані'
'пані'
prefix_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_male()
...
'пан'
'пан'
'пан'
'пан'
'пан'
prefix_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.prefix_nonbinary()
...
'пані'
'пан'
'пані'
'пані'
'пан'
suffix()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.suffix()
...
''
''
''
''
''
suffix_female()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.suffix_female()
...
''
''
''
''
''
suffix_male()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.suffix_male()
...
''
''
''
''
''
suffix_nonbinary()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.suffix_nonbinary()
...
''
''
''
''
''

faker.providers.phone_number

class faker.providers.phone_number.uk_UA.Provider(generator)

Bases: faker.providers.phone_number.Provider

country_calling_code()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.country_calling_code()
...
'+211'
'+599 4'
'+800'
'+503'
'+82'
msisdn()

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

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.msisdn()
...
'6048764759382'
'1948924115781'
'5938778408016'
'0975351393328'
'1587148418583'
phone_number()
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.phone_number()
...
'+38 (060) 487-64-75'
'+38 038 242-19-48'
'+38 092 411 57 81'
'059 387 78 40'
'+38 (080) 160-97-53'

faker.providers.ssn

class faker.providers.ssn.uk_UA.Provider(generator)

Bases: faker.providers.ssn.Provider

ssn()

Ukrainian “Реєстраційний номер облікової картки платника податків” also known as “Ідентифікаційний номер фізичної особи”.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.ssn()
...
'3514360482'
'3764564751'
'4006838249'
'2904119482'
'4309592414'