Created
March 16, 2018 21:34
-
-
Save lnrsoft/a2ceb1aa810ed1d50029aa8f570fe65f to your computer and use it in GitHub Desktop.
Random data generator using Python Faker package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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