- Create Python Virtual Env and activate
python3 -m venv my_project_env
source my_project_env/bin/activate
- Install dependencies
pip install -r requirements.txt
- File structure:
code.py
Parses YAML file and generates python code based off specified jinja2 template
fake.py
Output from code generator that contains dataclass containing logic for data.
*.yaml
Contains our dataset schema/defined logic
/templates
Contains our jinja2 templates to generate code
/utils
Contains our utility class for datagenerator
/helper
Contains our static datasets used during dataset generation process
- Generate Workflow
- Create/Update existing YAML file
- Run
code.pyto generate python dataclass code which outputs ourfake.pyfile
python code.py
- Run
fake.pyto generate our actual data
python fake.py