Hacker News new | ask | show | jobs
by Dowwie 3081 days ago
Well done, then! :) Is plait a drop-in replacement for faker?
1 comments

it's a drop in replacement for stympy/faker, but not joke2k faker

joke2k/faker is python and the data is stored in code (all or most of the random values are in .py files around the codebase), perhaps leading to its slowness.

stympy/faker is ruby and its random values are in yaml files, with some fields defined as ruby functions (those are not supported by plait.py).

can use 'plait -l' and 'plait -ll name' and 'plait -ll name.name' (more info in the README) to get a list of fake fields available.

if/when you tire with the latest performance improvement, consider porting to Rust and adapting it to python via cffi