Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dufferzafar/01013cb28448f5273b83 to your computer and use it in GitHub Desktop.
Save dufferzafar/01013cb28448f5273b83 to your computer and use it in GitHub Desktop.
Python utility to generate random test databases. #python #dbms #random #ideabin

Similar to cheater which is written in Perl and Mockaroo which is web based.

Generating random data is not a problem as the faker package is quite nice.

The main task would be to correctly implement the 'SQL-Like little language' from cheater.

Rather than just supporting regexes, we could support all faker data types, like {first_name} for random first names etc. Mocakroo does this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment