Skip to content

Instantly share code, notes, and snippets.

@lnrsoft
Created March 16, 2018 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lnrsoft/a2ceb1aa810ed1d50029aa8f570fe65f to your computer and use it in GitHub Desktop.
Save lnrsoft/a2ceb1aa810ed1d50029aa8f570fe65f to your computer and use it in GitHub Desktop.
Random data generator using Python Faker package
from faker import Faker
fake = Faker()
#from faker.providers import BaseProvider
for _ in range(1000):
print('Username: ', fake.user_name())
print('Email: ', fake.free_email())
print('IP: ', fake.ipv4(network=False))
print('Time: ', fake.time(pattern="%H:%M:%S", end_datetime=None))
print('Date: ', fake.date_this_decade(before_today=True, after_today=False))
print('Timezone: ', fake.timezone())
print('------------------------------------------')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment