1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
| from faker import Faker
fake = Faker() fake.am_pm() fake.century() fake.date(pattern="%Y-%m-%d", end_datetime=None) fake.date_between(start_date="-30y", end_date="today") fake.date_between_dates(date_start=None, date_end=None) fake.date_object(end_datetime=None) fake.date_of_birth(tzinfo=None, minimum_age=0, maximum_age=115) fake.date_this_century(before_today=True, after_today=False) fake.date_this_decade(before_today=True, after_today=False) fake.date_this_month(before_today=True, after_today=False) fake.date_this_year(before_today=True, after_today=False) fake.date_time(tzinfo=None, end_datetime=None) fake.date_time_ad(tzinfo=None, end_datetime=None, start_datetime=None) fake.date_time_between(start_date="-30y", end_date="now", tzinfo=None) fake.date_time_between_dates(datetime_start=None, datetime_end=None, tzinfo=None) fake.date_time_this_century(before_now=True, after_now=False, tzinfo=None) fake.date_time_this_decade(before_now=True, after_now=False, tzinfo=None) fake.date_time_this_month(before_now=True, after_now=False, tzinfo=None) fake.date_time_this_year(before_now=True, after_now=False, tzinfo=None) fake.day_of_month() fake.day_of_week() fake.future_date(end_date="+30d", tzinfo=None) fake.future_datetime(end_date="+30d", tzinfo=None) fake.iso8601(tzinfo=None, end_datetime=None) fake.month() fake.month_name() fake.past_date(start_date="-30d", tzinfo=None) fake.past_datetime(start_date="-30d", tzinfo=None) fake.time(pattern="%H:%M:%S", end_datetime=None) fake.time_delta(end_datetime=None) fake.time_object(end_datetime=None) fake.time_series(start_date="-30d", end_date="now", precision=None, distrib=None, tzinfo=None) fake.timezone() fake.unix_time(end_datetime=None, start_datetime=None) fake.year()
|