flask-restplus-server-example icon indicating copy to clipboard operation
flask-restplus-server-example copied to clipboard

Add faker support for initial development data ?

Open askz opened this issue 6 years ago • 8 comments

(I am actually trying to implement it in my project, will release PR if I succeed and got the time)

askz avatar Jul 05 '17 11:07 askz

Don't think it's a good idea for additional external dependency. Also, one can add Faker or Elizabeth with no problem.

khorolets avatar Jul 05 '17 11:07 khorolets

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!

frol avatar Jul 05 '17 11:07 frol

@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 avatar Jul 05 '17 11:07 frol

@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 avatar Jul 05 '17 12:07 khorolets

@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.

frol avatar Jul 05 '17 12:07 frol

@khorolets it's a good idea.

@frol I'm working on it !

askz avatar Jul 05 '17 12:07 askz

@askz Hello is there any update on this? Asking because I didn't see any on the PR on this issue. Thank you

Ochirgarid avatar Jun 15 '20 09:06 Ochirgarid

Hi unfortunately I stopped working on this project few weeks after writing my issue... so no update sorry !

askz avatar Jun 24 '20 11:06 askz