![]() ![]() ![]() Now it`s on you to improve this tiny application! As example you could add file and/or database export, add more functionality or just improve the GUI. Run Fake-Data Application # set access permissions Self._result_nfig(borderwidth=1, highlightthickness=1) In this article, you will learn a different way to create Dummy data by using the Faker python package. Faker package is heavily inspired by PHP Faker, Perl Faker, and by Ruby Faker. Self._result_id(padx=5, pady=5, column=0, row=0, rowspan=7) Faker is a simple python package that generates fake data with different data types. Self._result_output = ScrolledText(self._root, width=80) Self._repeat_id(column=1, row=2, sticky=W+E)Ĭommand=self._run_fake_data).grid(column=1, row=3, sticky=W+E)Ĭommand=self._reset_output).grid(column=1, row=4, sticky=W+E)Ĭommand=self.quit_app).grid(column=1, row=6, sticky=W+E) Self._result_output.insert(END, 'No value selected!\n\n') Selection = self._selection.curselection() Self._root.resizable(width=FALSE, height=FALSE) Output += self._faker.phone_number() + '\n'įrom BasicGenerator import BasicGeneratorįrom Tkinter import (Tk, Button, Variable, Listbox, MULTIPLE, FALSE, END, """Constructor for vars and factory object""" Whether you need to bootstrap your database, create good-looking XML documents, fill-in your persistence to stress test it, or anonymize data taken from a production service, Faker is for you. SETTINGS = ('Prefix', 'Name', 'Address', 'E-Mail', 'Phone', According to their documentation, Faker is a ‘Python package that generates fake data for you. software testers need a lot of fake-dataĮxample Application Code # -*- coding: utf-8 -*.if you need such tool behind restricted areas ( without internet).In this episode i want to show you, how easy it is to create a fake-data generator application. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |