Faker is a Python package that generates fake data for you
31–37 of 37 posts
Re: Faker is a Python package that generates fake data for you
#32Re: Faker is a Python package that generates fake data for you
#33The name looked familiar and it's indeed inspired by the Faker library for PHP: https://github.com/fzaninotto/Faker Another interesting library that is build on top of Faker is Alice. It allows you to define complex fixtures in .yml: https://github.com/nelmio/alice
Aren't they all kind of inspired by the original Perl implementation? I use the Ruby one for testing. Something kind of similar and worth thinking about is this: http://en.wikipedia.org/wiki/QuickCheck
The original Perl implementation is Data::Faker (https://metacpan.org/pod/Data::Faker). The earliest version available on CPAN appears to be from 2005.
Re: Faker is a Python package that generates fake data for you
#34I love faker! It pisses me off a bit that the library is named faker but the package is fake-factory. It trips me up all the time. I use it with factory_boy ( http://factoryboy.readthedocs.org/en/latest/ ) to generate test fixtures that seem to make logical sense. Usernames are real names, birthdays are real dates, etc. I think it helps with experimentation when you're using the REPL and also makes bugs stand out a b…
Nice, fake.bs() looks pretty useful as does fake.catchPhrase()
Re: Faker is a Python package that generates fake data for you
#35In Andrew Ng's Machine Learning class he talked about taking labeled images and expanding the set by inverting, shearing, flipping, distorting them etc. He called the technique 'data synthesis'.
The test data problem has been hampering my team's ability to create maintainable automated tests.
Re: Faker is a Python package that generates fake data for you
#36I used to maintain one over 15 years ago.
At least City Street address post number and telephone had to be internally linked. Those are things that can be easily and automatically checked. So those constraints need to be checked also when generating data. It's also silly to give flat address on area where there aren't any flats etc. 30th floor on country side? Oh yeah. Distance based address downtown. As silly.
Re: Faker is a Python package that generates fake data for you
#37Has anyone ever done a project like this that builds test databases from larger production databases? I mean something that can look at a prod db and model the data in the columns and the relationships between tables and produce a much smaller test db that has the same statistical properties? For numeric columns you could just fit a statistical distribution and sample from that. For names I'm thinking you could look…