flask-restplus-server-example
flask-restplus-server-example copied to clipboard
Add faker support for initial development data ?
(I am actually trying to implement it in my project, will release PR if I succeed and got the time)
Don't think it's a good idea for additional external dependency. Also, one can add Faker
or Elizabeth
with no problem.
Hi @askz, Thank you for the suggestion! I have no time to implement that myself at the moment, but I would love to see a PR for that!
@khorolets We can always make the dependency optional and just skip if the module is missing. However, I have never worked with fakers (I prefer plain Python where things should be simple), so I am not sure if they give any benefit at all.
@frol fakers make sense for fixtures for example. I think we can introduce some kind of invoke
task to populate some fake data based on factories, but I'm not sure there is a good place for them in initial development data only. If we have task then it's ok to use that factories in initial data IMO.
@khorolets I see.
@askz Please, let us know if you would like to work on a PR, otherwise, we can close this issue since this adds complexity to the example for no good reason.
@khorolets it's a good idea.
@frol I'm working on it !
@askz Hello is there any update on this? Asking because I didn't see any on the PR on this issue. Thank you
Hi unfortunately I stopped working on this project few weeks after writing my issue... so no update sorry !