How to create fake data with Python and Faker | Aiven Developer Tips

How to create fake data with Python and Faker | Aiven Developer Tips

Jun 7, 2021

You can’t really test databases properly without data. In this video, Aiven’s Developer Advocate Francesco Tisiot shows you a great way to create fake data using Python and Faker. He also shares a pizza-related example - we hope you know your toppings!

LINKS
Faker documentation: https://faker.readthedocs.io/en/master/
Github repo: https://github.com/aiven/kafka-python-fake-data-producer
Blog post: https://aiven.io/blog/create-your-own-data-stream-for-kafka-with-python-and-faker
Aiven Kafka Python Notebooks: https://github.com/aiven/kafka-python-notebooks

TIMESTAMPS

0:00 Intro

0:25 Installing Faker within the Python Notebook

1:04 Create fake data in Faker

2:00 Localize the Faker instance

3:00 Other data types available on Faker

4:56 Add new data types to Faker

6:32 How to use the seed in Faker to control the data

7:56 Getting unique values with your fake data

8:34 Useful resources

Try it yourself with Aiven - it’s free for 30 days: https://console.aiven.io/signup

CONNECT WITH US
Website: http://aiven.io​​
GitHub: https://github.com/aiven​​
Facebook: https://facebook.com/aivencloud​​
Twitter: https://twitter.com/aiven_io​​
Linkedin: https://linkedin.com/company/aiven​​

ABOUT AIVEN
We help organizations fuel the continuous innovation needed to create awesome, data-intensive applications by using the leading open source technologies. After building expertise managing mission-critical data infrastructure for companies like F-Secure and Nokia, Aiven’s founders noticed that cloud adoption was increasing but infrastructure solutions were either proprietary or difficult to translate into business results.

They decided to strike out on their own to build a true, open source data cloud that allowed organizations to harness leading open source technology to build the modern infrastructure necessary to grow from prototyping to world-wide scale at greater and greater velocities.