Announcement

Collapse
No announcement yet.

Blog Discussion: Python Faker (How to Create Fake Data with Faker)

Collapse

Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Blog Discussion: Python Faker (How to Create Fake Data with Faker)

    https://www.anti-forensics.com/quick...a-python-faker
    Click image for larger version  Name:	1620999717155?e=1623888000&v=beta&t=3JQuAvXeiqXcA-iqav7UnESb6EzaqefwLOJVqEOKntc.jpg Views:	0 Size:	58.8 KB ID:	50

    Let’s say you want to create data with certain data types (bool, float, text, integers) with special characteristics (names, address, color, email, phone number, location) to test some Python libraries or specific implementation. But it takes time to find that specific kind of data. You wonder: is there a quick way that you can create your own data?

    Read Full Article - Faker

    Some basic methods of Faker:

    >>> fake.color_name()
    'SeaGreen'

    >>> fake.name()
    'Vanessa Schroeder'

    >>> fake.address()
    '3138 Jennings Shore\nPort Anthony, MT 90833'

    >>> fake.job()
    'Buyer, industrial'
    >>> fake.date_of_birth(minimum_age=30)

    >>> fake.city()
    'Rebeccastad'
Working...
X