fake again...
First post with email generator here.
Usable service for create spreadsheet with fake data: http://www.yandataellan.com/
And fake-factory:
One more example: http://gowrishankarnath.com/generate-fake-data-programmatically-using-faker-with-python/
[code language="python"]
from faker import Faker
fake = Faker()
fake.name()
print(fake.name())
fake.address()
print(fake.street_address())
fake.text()
print(fake.text())
for _ in range(0, 10):
print fake.name()
fake.random
fake.random.getstate()
print(fake.random.getstate())
[/code]
[code language="python"]
from faker import Factory
def create_fake_stuff(fake):
""""""
stuff = ["email", "bs", "address",
"city", "state",
"paragraph"]
for item in stuff:
print "%s = %s" % (item, getattr(fake, item)())
if __name__ == "__main__":
fake = Factory.create()
create_fake_stuff(fake)
[/code]
Usable service for create spreadsheet with fake data: http://www.yandataellan.com/
And fake-factory:
One more example: http://gowrishankarnath.com/generate-fake-data-programmatically-using-faker-with-python/
[code language="python"]
from faker import Faker
fake = Faker()
fake.name()
print(fake.name())
fake.address()
print(fake.street_address())
fake.text()
print(fake.text())
for _ in range(0, 10):
print fake.name()
fake.random
fake.random.getstate()
print(fake.random.getstate())
[/code]
[code language="python"]
from faker import Factory
def create_fake_stuff(fake):
""""""
stuff = ["email", "bs", "address",
"city", "state",
"paragraph"]
for item in stuff:
print "%s = %s" % (item, getattr(fake, item)())
if __name__ == "__main__":
fake = Factory.create()
create_fake_stuff(fake)
[/code]
Comments
Post a Comment