Giter Site home page Giter Site logo

data_generator's Introduction

Data generator

Data generator used for create csv files. User can specify number of columns and rows, type of data, headers name, etc...

setup

go to data_generator directory

$ cd <path to data_generator directory>

activate virtual environment

$ source venv/bin/activate

run main.py file

(venv)$ python main.py

data type

COMMON

[id] - unique number
[number,100,1000] - random number /ex. from 100 to 1000/
[string,10,20] - random string /ex. 10 to 20 characters/
[float,2,5] - random float number /min, max/
[word] - random word
[sentence,3] - random sentence with 3 words
[color] - random color /ex. yellow/
[timestamp,2015-01-01,2018-01-01] - random timestamp between /ex. 2003-12-18 16:35:17/
[date,2015-01-01,2018-01-01] - random date between /ex. 2003-12-18/
[time] - random time
[bool] - random boolean /True or False/
[special_char,5] - random set of special characters /number/
[food_group] - random group of food /ex. vegetables/

PERSON

[gender] - /male or female/
[name] - random first name and last name as one string /ex. Michelle Gibson/
[fname_male] - random first male name
[fname_female] - random first female name
[fname] - random first name /male or female
[lname] - random last name
[email] - random e-mail address /ex. [email protected]/
[job] - random job
[credit_card] - random credit card provider
[card_number] - random credit card number /ex 4459660909206004 /
[ssn] - random ssn number
[url] - random URL
[education] - random education /ex. Bachelors degree/

ADDRESS

[country] - random country 
[state] - random state 
[city] - random city 
[zipcode] - random zipcode
[street] - random street address /ex. 52555 Pamela Rue Apt. 160/

output

File output.csv is created in data_generator directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.