Skip to content

lavinigam-gcp/looker-datagenerator

 
 

Repository files navigation

Fictitious Data Generator

  1. Create Python Virtual Env and activate
python3 -m venv my_project_env
source my_project_env/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. 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

  1. Generate Workflow
  • Create/Update existing YAML file
  • Run code.py to generate python dataclass code which outputs our fake.py file
python code.py
  • Run fake.py to generate our actual data
python fake.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 61.4%
  • Jinja 38.6%