faker-schema
faker-schema copied to clipboard
Generate fake data using joke2k's faker and your own schema
The faker.unique property wraps the provider to ensure that unique values are preserved. getattr(v) does not support such "chained" calls as for v="unique.IBAN". But attrgetter does support this.
Hi, I'm using Python 3.8 and I did a fresh install like this "pip install faker-schema" in a "venv" I create a python file and write that: ```python import json...
Hi, I'm using Python 3.8 and I did a fresh install like this "pip install faker-schema" in a "venv" I create a python file and write that: ```python import json...
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 ... }...
- Add possibility to pass parameters to fake. - Add possibility to pass value as is. - Add `__all__` attributes.
I have few json schema's which refer to a number of schema pieces outside of the file. Will be great to include it in. Thanks!
Basically a constant stream of JSON data. Just curious.