Data Generator

Note: This is a new tool, there are bound to be issues with it

Often when working on projects, it's critical to have dummy data that can be used to test the functionality of an app. The Data Generator (alpha) reduces the effort on the part of the developer to populate their local database with the corresponding data to quickly start prototyping.

The repository is available at - https://github.com/aegion-dynamic/data-gen

Installation

Run the following in your development environment to install the tool

pip install data-gen@git+https://github.com/aegion-dynamic/data-gen

Generation

python -m data_gen

Underlying Algorithm

In order to generate the data, the algorithm queries the database schema tables for getting the descriptions of the tables. It then proceeds to create a dependency graph based on the retrieved information. Once the dependency graph is created, it then proceeds to perform a topological sort to get the order of dependencies to ensure that every table that will have foreign key dependencies will have their dependency tables generated prior to the current tables.

Last updated