faker-schema icon indicating copy to clipboard operation
faker-schema copied to clipboard

Random choices, date generator handling and passing args/kwargs to generators

Open marquicus opened this issue 5 years ago • 1 comments

Example:

schema = {
    'sexo': '(M|F)',  # produces M or F
    'edad': 'random_int(18,80)',  # passing args, see readme
    'ocupacion': 'job',
...
    'fecha_nacimiento': 'date_of_birth',  # date as isoformat
...
}

marquicus avatar Apr 04 '20 01:04 marquicus

how's this one coming along? it's so useful!

denisesenguel avatar May 28 '20 08:05 denisesenguel