Project information
- Category: Python Console
- Project's goal: Generate data for tests
- Python Libraries: shapely, geopy, numpy, pandas, cx_Freeze
- Project URL: gerador_dados
Generate data for tests
This program has the objective of generating: name, email, CPF (Brazilian identification card), city, state, telephone, zipcode. To generate the name, pandas was used to fetch a random sample in a .csd file with various names. With this name a personalized and valid email is created, using the random function with strings. The CPF is created through a function with a mathematical algorithm that validates it. To generate city, state and zipcode, first, with the random function, two coordinates (latitude and longitude) are generated, then through the shapely library and the creation of a polygon on the map of Brazil, a function checks if this coordinate is in Brazil , once validated, through the geopy library Nominatim, the data of this coordinate are collected. The telephone is generated with a random function, following the Brazilian standard and the DDD code is generated according to the state found.The data is visualized and can be saved in a .txt file with the date and time and have been generated.