Locale ka_GE¶
faker.providers.address
¶
- class faker.providers.address.ka_GE.Provider(generator: Any)¶
Bases:
Provider
- address() str ¶
- Example:
‘791 Crist Parks, Sashabury, IL 86039-9874’
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.address() ... 'ვარდევანის ქ. 47, რუსთავი' 'ბურძგლას ქ. 89, ვალე' 'მაღაროს ქ. 65, ჯვარი' 'ასურეთის ქ. 60, ცხინვალი' 'უზნაძე დიმიტრის ქ. 93, ცაგერი'
- building_number() str ¶
- Example:
‘791’
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.building_number() ... '60' '87' '47' '93' '42'
- city() str ¶
- Example:
‘Sashabury’
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.city() ... 'ქობულეთი' 'ახალი ათონი' 'ჯვარი' 'თელავი' 'ჯვარი'
- city_name() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.city_name() ... 'წალკა' 'თეთრიწყარო' 'ქობულეთი' 'წყალტუბო' 'თერჯოლა'
- city_suffix() str ¶
- Example:
‘town’
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.city_suffix() ... 'Ville' 'Ville' 'Ville' 'Ville' 'Ville'
- country() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.country() ... 'უზბეკეთი' 'კირიბატი' 'სიერა-ლეონე' 'ყაზახეთი' 'კოტ-დ’ივუარი'
- country_code(representation: str = 'alpha-2') str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.country_code() ... 'MV' 'PS' 'NL' 'BB' 'IL'
- current_country() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.current_country() ... 'Georgia' 'Georgia' 'Georgia' 'Georgia' 'Georgia'
- current_country_code() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.current_country_code() ... 'GE' 'GE' 'GE' 'GE' 'GE'
- postcode() str ¶
- Example:
86039-9874
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.postcode() ... '60487' '47593' '42194' '41157' '56593'
- street_address() str ¶
- Example:
‘791 Crist Parks’
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.street_address() ... 'ანდრონიკაშვილის ქ. 64' 'პისარევის ქ. 42' 'ხონის ქ. 11' 'ორთაჭალის ქ. 65' 'ლომონოსოვის ქ. 80'
- street_name() str ¶
- Example:
‘Crist Parks’
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.street_name() ... 'ქურდიანი არჩილის ქ.' 'ვარდევანის ქ.' 'ჯავახეთის ქ.' 'კოტე ხიმშიაშვილის ქ.' 'ზედაუბნის ქ.'
faker.providers.color
¶
- class faker.providers.color.ka_GE.Provider(generator: Any)¶
Bases:
Provider
Implement color provider for
ka_GE
locale.- color(hue: str | float | int | Sequence[int] | None = None, luminosity: str | None = None, color_format: str = 'hex') str ¶
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 argumenthue
controls the H value according to the following rules:If the value is a number from
0
to360
, 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 byhue
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_hsl(hue: str | float | int | Sequence[int] | None = None, luminosity: str | None = None) Tuple[int, int, int] ¶
Generate a HSL color tuple in a human-friendly way.
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.color_hsl() ... (197, 57, 32) (132, 90, 39) (207, 76, 65) (183, 88, 33) (258, 62, 73)
- color_hsv(hue: str | float | int | Sequence[int] | None = None, luminosity: str | None = None) Tuple[int, int, int] ¶
Generate a HSV color tuple in a human-friendly way.
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.color_hsv() ... (197, 73, 51) (132, 95, 76) (207, 58, 92) (183, 94, 64) (258, 37, 90)
- color_name() str ¶
Generate a color name.
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.color_name() ... 'თითბერისფერი' 'ოქროსფერი' 'თურქული ლურჯი' 'ფიჭვისფერი' 'მწვანე'
- color_rgb(hue: str | float | int | Sequence[int] | None = None, luminosity: str | None = None) Tuple[int, int, int] ¶
Generate a RGB color tuple of integers in a human-friendly way.
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.color_rgb() ... (35, 103, 130) (9, 193, 46) (98, 173, 234) (9, 155, 163) (170, 144, 229)
- color_rgb_float(hue: str | float | int | Sequence[int] | None = None, luminosity: str | None = None) Tuple[float, float, float] ¶
Generate a RGB color tuple of floats in a human-friendly way.
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.color_rgb_float() ... (0.13770000000000002, 0.4045149999999999, 0.51) (0.038000000000000034, 0.76, 0.18239999999999984) (0.3864000000000001, 0.6798800000000002, 0.92) (0.03840000000000004, 0.6099200000000001, 0.64) (0.6668999999999999, 0.5670000000000001, 0.9)
- hex_color() str ¶
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() str ¶
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() str ¶
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)'
faker.providers.date_time
¶
- class faker.providers.date_time.ka_GE.Provider(generator: Any)¶
Bases:
Provider
- am_pm() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.am_pm() ... 'PM' 'PM' 'PM' 'AM' 'PM'
- century() str ¶
- Example:
‘XVII’
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.century() ... 'XIII' 'XIV' 'II' 'IX' 'XVII'
- date(pattern: str = '%Y-%m-%d', end_datetime: date | datetime | timedelta | str | int | None = None) str ¶
Get a date string between January 1, 1970 and now.
- Parameters:
pattern – Format of the date (year-month-day by default)
- Example:
‘2008-11-27’
- Returns:
Date
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date() ... '2016-05-02' '2011-08-04' '1993-01-28' '1984-03-17' '1998-01-20'
- date_between(start_date: date | datetime | timedelta | str | int = '-30y', end_date: date | datetime | timedelta | str | int = 'today') date ¶
Get a Date object based on a random date between two given dates. Accepts date strings that can be recognized by strtotime().
- Parameters:
start_date – Defaults to 30 years ago
end_date – Defaults to “today”
- Example:
Date(‘1999-02-02’)
- Returns:
Date
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date_between() ... datetime.date(2020, 3, 15) datetime.date(2017, 8, 10) datetime.date(2007, 6, 27) datetime.date(2002, 8, 21) datetime.date(2010, 3, 17)
- date_between_dates(date_start: date | datetime | timedelta | str | int | None = None, date_end: date | datetime | timedelta | str | int | None = None) date ¶
Takes two Date objects and returns a random date between the two given dates. Accepts Date or datetime objects
- Parameters:
date_start – Date
date_end – Date
- Returns:
Date
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date_between_dates() ... datetime.date(2024, 11, 14) datetime.date(2024, 11, 14) datetime.date(2024, 11, 14) datetime.date(2024, 11, 14) datetime.date(2024, 11, 14)
- date_object(end_datetime: datetime | None = None) date ¶
Get a date object between January 1, 1970 and now
- Example:
datetime.date(2016, 9, 20)
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date_object() ... datetime.date(2016, 5, 2) datetime.date(2011, 8, 4) datetime.date(1993, 1, 28) datetime.date(1984, 3, 17) datetime.date(1998, 1, 20)
- date_of_birth(tzinfo: tzinfo | None = None, minimum_age: int = 0, maximum_age: int = 115) date ¶
Generate a random date of birth represented as a Date object, constrained by optional miminimum_age and maximum_age parameters.
- Parameters:
tzinfo – Defaults to None.
minimum_age – Defaults to 0.
maximum_age – Defaults to 115.
- Example:
Date(‘1979-02-02’)
- Returns:
Date
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date_of_birth() ... datetime.date(2006, 10, 28) datetime.date(1996, 10, 16) datetime.date(1957, 8, 28) datetime.date(1938, 11, 27) datetime.date(1968, 3, 6)
- date_this_century(before_today: bool = True, after_today: bool = False) date ¶
Gets a Date object for the current century.
- Parameters:
before_today – include days in current century before today
after_today – include days in current century after today
- Example:
Date(‘2012-04-04’)
- Returns:
Date
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date_this_century() ... datetime.date(2020, 12, 31) datetime.date(2018, 11, 7) datetime.date(2010, 6, 17) datetime.date(2006, 6, 9) datetime.date(2012, 9, 18)
- date_this_decade(before_today: bool = True, after_today: bool = False) date ¶
Gets a Date object for the decade year.
- Parameters:
before_today – include days in current decade before today
after_today – include days in current decade after today
- Example:
Date(‘2012-04-04’)
- Returns:
Date
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date_this_decade() ... datetime.date(2024, 2, 11) datetime.date(2023, 9, 10) datetime.date(2022, 1, 18) datetime.date(2021, 4, 5) datetime.date(2022, 6, 28)
- date_this_month(before_today: bool = True, after_today: bool = False) date ¶
Gets a Date object for the current month.
- Parameters:
before_today – include days in current month before today
after_today – include days in current month after today
- Example:
dtdate(‘2012-04-04’)
- Returns:
dtdate
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date_this_month() ... datetime.date(2024, 11, 11) datetime.date(2024, 11, 10) datetime.date(2024, 11, 6) datetime.date(2024, 11, 4) datetime.date(2024, 11, 7)
- date_this_year(before_today: bool = True, after_today: bool = False) date ¶
Gets a Date object for the current year.
- Parameters:
before_today – include days in current year before today
after_today – include days in current year after today
- Example:
Date(‘2012-04-04’)
- Returns:
Date
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date_this_year() ... datetime.date(2024, 9, 25) datetime.date(2024, 8, 29) datetime.date(2024, 5, 13) datetime.date(2024, 3, 23) datetime.date(2024, 6, 11)
- date_time(tzinfo: tzinfo | None = None, end_datetime: date | datetime | timedelta | str | int | None = None) datetime ¶
Get a datetime object for a date between January 1, 1970 and now
- Parameters:
tzinfo – timezone, instance of datetime.tzinfo subclass
- Example:
datetime(‘2005-08-16 20:39:21’)
- Returns:
datetime
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date_time() ... datetime.datetime(2016, 5, 2, 14, 45, 59, 625757) datetime.datetime(2011, 8, 4, 15, 56, 18, 747424) datetime.datetime(1993, 1, 28, 22, 51, 31, 135741) datetime.datetime(1984, 3, 17, 2, 54, 45, 832411) datetime.datetime(1998, 1, 20, 19, 3, 13, 599204)
- date_time_ad(tzinfo: tzinfo | None = None, end_datetime: date | datetime | timedelta | str | int | None = None, start_datetime: date | datetime | timedelta | str | int | None = None) datetime ¶
Get a datetime object for a date between January 1, 001 and now
- Parameters:
tzinfo – timezone, instance of datetime.tzinfo subclass
- Example:
datetime(‘1265-03-22 21:15:52’)
- Returns:
datetime
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date_time_ad() ... datetime.datetime(1710, 1, 1, 17, 20, 55, 95612) datetime.datetime(1535, 1, 2, 16, 2, 32, 630791) datetime.datetime(852, 3, 8, 1, 14, 23, 179733) datetime.datetime(525, 1, 6, 5, 1, 26, 802261) datetime.datetime(1035, 10, 4, 3, 28, 54, 591408)
- date_time_between(start_date: date | datetime | timedelta | str | int = '-30y', end_date: date | datetime | timedelta | str | int = 'now', tzinfo: tzinfo | None = None) datetime ¶
Get a datetime object based on a random date between two given dates. Accepts date strings that can be recognized by strtotime().
- Parameters:
start_date – Defaults to 30 years ago
end_date – Defaults to “now”
tzinfo – timezone, instance of datetime.tzinfo subclass
- Example:
datetime(‘1999-02-02 11:42:52’)
- Returns:
datetime
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date_time_between() ... datetime.datetime(2020, 3, 15, 23, 0, 29, 236214) datetime.datetime(2017, 8, 11, 12, 25, 15, 808743) datetime.datetime(2007, 6, 28, 17, 54, 56, 361449) datetime.datetime(2002, 8, 22, 11, 5, 32, 49189) datetime.datetime(2010, 3, 18, 14, 22, 28, 171082)
- date_time_between_dates(datetime_start: date | datetime | timedelta | str | int | None = None, datetime_end: date | datetime | timedelta | str | int | None = None, tzinfo: tzinfo | None = None) datetime ¶
Takes two datetime objects and returns a random datetime between the two given datetimes. Accepts datetime objects.
- Parameters:
datetime_start – datetime
datetime_end – datetime
tzinfo – timezone, instance of datetime.tzinfo subclass
- Example:
datetime(‘1999-02-02 11:42:52’)
- Returns:
datetime
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date_time_between_dates() ... datetime.datetime(2024, 11, 14, 15, 49, 46) datetime.datetime(2024, 11, 14, 15, 49, 46) datetime.datetime(2024, 11, 14, 15, 49, 46) datetime.datetime(2024, 11, 14, 15, 49, 46) datetime.datetime(2024, 11, 14, 15, 49, 46)
- date_time_this_century(before_now: bool = True, after_now: bool = False, tzinfo: tzinfo | None = None) datetime ¶
Gets a datetime object for the current century.
- Parameters:
before_now – include days in current century before today
after_now – include days in current century after today
tzinfo – timezone, instance of datetime.tzinfo subclass
- Example:
datetime(‘2012-04-04 11:02:02’)
- Returns:
datetime
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date_time_this_century() ... datetime.datetime(2021, 1, 1, 6, 50, 27, 999136) datetime.datetime(2018, 11, 7, 18, 11, 6, 390765) datetime.datetime(2010, 6, 17, 17, 59, 28, 251208) datetime.datetime(2006, 6, 10, 4, 5, 33, 864667) datetime.datetime(2012, 9, 18, 18, 9, 46, 255307)
- date_time_this_decade(before_now: bool = True, after_now: bool = False, tzinfo: tzinfo | None = None) datetime ¶
Gets a datetime object for the decade year.
- Parameters:
before_now – include days in current decade before today
after_now – include days in current decade after today
tzinfo – timezone, instance of datetime.tzinfo subclass
- Example:
datetime(‘2012-04-04 11:02:02’)
- Returns:
datetime
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date_time_this_decade() ... datetime.datetime(2024, 2, 11, 18, 48, 7, 565399) datetime.datetime(2023, 9, 10, 21, 37, 9, 66187) datetime.datetime(2022, 1, 18, 11, 22, 53, 866659) datetime.datetime(2021, 4, 5, 18, 48, 29, 83762) datetime.datetime(2022, 6, 28, 21, 28, 43, 314067)
- date_time_this_month(before_now: bool = True, after_now: bool = False, tzinfo: tzinfo | None = None) datetime ¶
Gets a datetime object for the current month.
- Parameters:
before_now – include days in current month before today
after_now – include days in current month after today
tzinfo – timezone, instance of datetime.tzinfo subclass
- Example:
datetime(‘2012-04-04 11:02:02’)
- Returns:
datetime
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date_time_this_month() ... datetime.datetime(2024, 11, 12, 12, 49, 34, 847264) datetime.datetime(2024, 11, 11, 8, 28, 47, 174989) datetime.datetime(2024, 11, 6, 17, 52, 32, 691694) datetime.datetime(2024, 11, 4, 12, 52, 49, 923861) datetime.datetime(2024, 11, 7, 23, 36, 39, 268313)
- date_time_this_year(before_now: bool = True, after_now: bool = False, tzinfo: tzinfo | None = None) datetime ¶
Gets a datetime object for the current year.
- Parameters:
before_now – include days in current year before today
after_now – include days in current year after today
tzinfo – timezone, instance of datetime.tzinfo subclass
- Example:
datetime(‘2012-04-04 11:02:02’)
- Returns:
datetime
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.date_time_this_year() ... datetime.datetime(2024, 9, 26, 1, 59, 39, 478652) datetime.datetime(2024, 8, 29, 12, 42, 21, 601271) datetime.datetime(2024, 5, 14, 0, 27, 34, 989749) datetime.datetime(2024, 3, 23, 12, 9, 4, 127581) datetime.datetime(2024, 6, 11, 22, 8, 30, 725819)
- day_of_month() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.day_of_month() ... '02' '04' '28' '17' '20'
- day_of_week()¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.day_of_week() ... 'ორშაბათი' 'ხუთშაბათი' 'ხუთშაბათი' 'შაბათი' 'სამშაბათი'
- future_date(end_date: date | datetime | timedelta | str | int = '+30d', tzinfo: tzinfo | None = None) date ¶
Get a Date object based on a random date between 1 day from now and a given date. Accepts date strings that can be recognized by strtotime().
- Parameters:
end_date – Defaults to “+30d”
tzinfo – timezone, instance of datetime.tzinfo subclass
- Example:
dtdate(‘2030-01-01’)
- Returns:
dtdate
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.future_date() ... datetime.date(2024, 12, 9) datetime.date(2024, 12, 6) datetime.date(2024, 11, 27) datetime.date(2024, 11, 22) datetime.date(2024, 11, 29)
- future_datetime(end_date: date | datetime | timedelta | str | int = '+30d', tzinfo: tzinfo | None = None) datetime ¶
Get a datetime object based on a random date between 1 second form now and a given date. Accepts date strings that can be recognized by strtotime().
- Parameters:
end_date – Defaults to “+30d”
tzinfo – timezone, instance of datetime.tzinfo subclass
- Example:
datetime(‘1999-02-02 11:42:52’)
- Returns:
datetime
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.future_datetime() ... datetime.datetime(2024, 12, 9, 23, 48, 47, 594731) datetime.datetime(2024, 12, 7, 9, 33, 24, 54467) datetime.datetime(2024, 11, 27, 6, 38, 28, 116942) datetime.datetime(2024, 11, 22, 10, 14, 58, 957843) datetime.datetime(2024, 11, 29, 23, 56, 50, 566513)
- iso8601(tzinfo: tzinfo | None = None, end_datetime: date | datetime | timedelta | str | int | None = None, sep: str = 'T', timespec: str = 'auto') str ¶
Get a timestamp in ISO 8601 format (or one of its profiles).
- Parameters:
tzinfo – timezone, instance of datetime.tzinfo subclass
sep – separator between date and time, defaults to ‘T’
timespec – format specifier for the time part, defaults to ‘auto’ - see datetime.isoformat() documentation
- Example:
‘2003-10-21T16:05:52+0000’
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.iso8601() ... '2016-05-02T14:45:59.625757' '2011-08-04T15:56:18.747424' '1993-01-28T22:51:31.135741' '1984-03-17T02:54:45.832411' '1998-01-20T19:03:13.599204'
- month() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.month() ... '05' '08' '01' '03' '01'
- month_name()¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.month_name() ... 'მაისი' 'აგვისტო' 'იანვარი' 'მარტი' 'იანვარი'
- past_date(start_date: date | datetime | timedelta | str | int = '-30d', tzinfo: tzinfo | None = None) date ¶
Get a Date object based on a random date between a given date and 1 day ago. Accepts date strings that can be recognized by strtotime().
- Parameters:
start_date – Defaults to “-30d”
tzinfo – timezone, instance of datetime.tzinfo subclass
- Example:
dtdate(‘1999-02-02’)
- Returns:
dtdate
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.past_date() ... datetime.date(2024, 11, 8) datetime.date(2024, 11, 5) datetime.date(2024, 10, 27) datetime.date(2024, 10, 22) datetime.date(2024, 10, 29)
- past_datetime(start_date: date | datetime | timedelta | str | int = '-30d', tzinfo: tzinfo | None = None) datetime ¶
Get a datetime object based on a random date between a given date and 1 second ago. Accepts date strings that can be recognized by strtotime().
- Parameters:
start_date – Defaults to “-30d”
tzinfo – timezone, instance of datetime.tzinfo subclass
- Example:
datetime(‘1999-02-02 11:42:52’)
- Returns:
datetime
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.past_datetime() ... datetime.datetime(2024, 11, 9, 23, 48, 46, 594731) datetime.datetime(2024, 11, 7, 9, 33, 23, 54467) datetime.datetime(2024, 10, 28, 6, 38, 27, 116942) datetime.datetime(2024, 10, 23, 10, 14, 57, 957843) datetime.datetime(2024, 10, 30, 23, 56, 49, 566513)
- pytimezone(*args: Any, **kwargs: Any) tzinfo | None ¶
Generate a random timezone (see faker.timezone for any args) and return as a python object usable as a tzinfo to datetime or other fakers.
- Example:
faker.pytimezone()
- Returns:
dateutil.tz.tz.tzfile
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.pytimezone() ... tzfile('/usr/share/zoneinfo/Indian/Maldives') tzfile('/usr/share/zoneinfo/America/Barbados') tzfile('/usr/share/zoneinfo/Europe/Stockholm') tzfile('/usr/share/zoneinfo/Africa/Windhoek') tzfile('/usr/share/zoneinfo/Asia/Qatar')
- time(pattern: str = '%H:%M:%S', end_datetime: date | datetime | timedelta | str | int | None = None) str ¶
Get a time string (24h format by default)
- Parameters:
pattern – format
- Example:
‘15:02:34’
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.time() ... '14:45:59' '15:56:18' '22:51:31' '02:54:45' '19:03:13'
- time_delta(end_datetime: date | datetime | timedelta | str | int | None = None) timedelta ¶
Get a timedelta object
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.time_delta() ... datetime.timedelta(0) datetime.timedelta(0) datetime.timedelta(0) datetime.timedelta(0) datetime.timedelta(0)
- time_object(end_datetime: date | datetime | timedelta | str | int | None = None) time ¶
Get a time object
- Example:
datetime.time(15, 56, 56, 772876)
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.time_object() ... datetime.time(14, 45, 59, 625757) datetime.time(15, 56, 18, 747424) datetime.time(22, 51, 31, 135741) datetime.time(2, 54, 45, 832411) datetime.time(19, 3, 13, 599204)
- time_series(start_date: date | datetime | timedelta | str | int = '-30d', end_date: date | datetime | timedelta | str | int = 'now', precision: float | None = None, distrib: Callable[[datetime], float] | None = None, tzinfo: tzinfo | None = None) Iterator[Tuple[datetime, Any]] ¶
Returns a generator yielding tuples of
(<datetime>, <value>)
.The data points will start at
start_date
, and be at every time interval specified byprecision
.distrib
is a callable that accepts<datetime>
and returns<value>
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.time_series() ... <generator object Provider.time_series at 0x7f1b2ccb5000> <generator object Provider.time_series at 0x7f1b2ccb5000> <generator object Provider.time_series at 0x7f1b2ccb5000> <generator object Provider.time_series at 0x7f1b2ccb5000> <generator object Provider.time_series at 0x7f1b2ccb5000>
- timezone() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.timezone() ... 'Indian/Maldives' 'America/Barbados' 'Europe/Stockholm' 'Africa/Windhoek' 'Asia/Qatar'
- unix_time(end_datetime: date | datetime | timedelta | str | int | None = None, start_datetime: date | datetime | timedelta | str | int | None = None) float ¶
Get a timestamp between January 1, 1970 and now, unless passed explicit start_datetime or end_datetime values.
On Windows, the decimal part is always 0.
- Example:
1061306726.6
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.unix_time() ... 1462200359.6257565 1312473378.7474244 728261491.1357406 448340085.83241063 885322993.5992036
faker.providers.job
¶
- class faker.providers.job.ka_GE.Provider(generator: Any)¶
Bases:
Provider
- job() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.job() ... 'მექანიკის ინჟინერი' 'მსაჯი' 'არქეოლოგი' 'კასკადიორი' 'რედაქტორი'
faker.providers.person
¶
- class faker.providers.person.ka_GE.Provider(generator: Any)¶
Bases:
Provider
- first_name() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.first_name() ... 'მარი' 'ნაზიბროლა' 'გიგა' 'ევგენია' 'ციალა'
- first_name_female() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.first_name_female() ... 'მთვარისა' 'ნაირა' 'გალინა' 'ლარისა' 'რუსუდან'
- first_name_male() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.first_name_male() ... 'ჯაბა' 'ზაურ' 'რომან' 'თამაზ' 'ანზორ'
- first_name_nonbinary() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.first_name_nonbinary() ... 'მარი' 'ნაზიბროლა' 'გიგა' 'ევგენია' 'ციალა'
- language_name() str ¶
Generate a random i18n language name (e.g. English).
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.language_name() ... 'Luba-Katanga' 'Malay' 'Aymara' 'Interlingue' 'Quechua'
- last_name() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.last_name() ... 'ჭეიშვილი' 'კონცელიძე' 'შარაშიძე' 'ხვიჩია' 'ლობჟანიძე'
- last_name_female() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.last_name_female() ... 'ჭეიშვილი' 'კონცელიძე' 'შარაშიძე' 'ხვიჩია' 'ლობჟანიძე'
- last_name_male() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.last_name_male() ... 'ჭეიშვილი' 'კონცელიძე' 'შარაშიძე' 'ხვიჩია' 'ლობჟანიძე'
- last_name_nonbinary() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.last_name_nonbinary() ... 'ჭეიშვილი' 'კონცელიძე' 'შარაშიძე' 'ხვიჩია' 'ლობჟანიძე'
- name() str ¶
- Example:
‘John Doe’
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.name() ... 'ნაირა ასანიძე' 'რუსუდან მერებაშვილი' 'ლუდმილა მელიქიშვილი' 'ციალა ხიზანიშვილი' 'კარლო გაჩეჩილაძე'
- name_female() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.name_female() ... 'ნაირა ასანიძე' 'რუსუდან მერებაშვილი' 'ლუდმილა მელიქიშვილი' 'ციალა ხიზანიშვილი' 'როზა გაჩეჩილაძე'
- name_male() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.name_male() ... 'რომან ხვიჩია' 'ანზორ ვარშანიძე' 'ზვიად ჯანჯღავა' 'იოსებ კვირიკაშვილი' 'კარლო გაჩეჩილაძე'
- name_nonbinary() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.name_nonbinary() ... 'ნაირა ასანიძე' 'რუსუდან მერებაშვილი' 'ლუდმილა მელიქიშვილი' 'ციალა ხიზანიშვილი' 'კარლო გაჩეჩილაძე'
- prefix() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.prefix() ... '' '' '' '' ''
- prefix_female() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.prefix_female() ... '' '' '' '' ''
- prefix_male() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.prefix_male() ... '' '' '' '' ''
- prefix_nonbinary() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.prefix_nonbinary() ... '' '' '' '' ''
- suffix() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.suffix() ... '' '' '' '' ''
- suffix_female() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.suffix_female() ... '' '' '' '' ''
faker.providers.phone_number
¶
- class faker.providers.phone_number.ka_GE.Provider(generator: Any)¶
Bases:
Provider
- country_calling_code() str ¶
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.country_calling_code() ... '+687' '+595' '+880' '+964' '+41'
- msisdn() str ¶
https://en.wikipedia.org/wiki/MSISDN
- Examples:
>>> Faker.seed(0) >>> for _ in range(5): ... fake.msisdn() ... '6048764759382' '2194892411578' '5659387784080' '6097535139332' '1158714841858'