![]() |
![]() |
![]() |
My Coding >
Programming language >
Python >
Python libraries and packages >
Faker
FakerFaker is a Python library for making dummy user profiles. It is very convenient when you need to have a lot of them with different localizations for some test purposes. To install it use:
You can create a name, email, phone, profession, address and many more other parameters which can be used by the user to fill in the information about him. Almost all languages are available. It is very convenient for creating test datasets. Examples of usage:Load module, create generator with default English localization and print a random name.
Very simple and straightforward procedure. It is possible to create a full dummy profile:
To create other locality, use standard code, or list of codes:
This is our short of showing this work:
|
Last 10 artitles
9 popular artitles
|
|
© 2020 MyCoding.uk -My blog about coding and further learning. This blog was writen with pure Perl and front-end output was performed with TemplateToolkit. |