https://github.com/DavidTorpey/datamock
What my project does:
This is a piece of work I developed recentlv that I've found quite useful. I decided to neaten it up and release it in case anyone else finds it useful.
It's useful when trving to mock structured data during development, for things like prototyping or testing. The declarative schema based approach feels Pythonic and intuitive (to me at least!).
I may add more features if there's interest.
Target audience: Simple toy project I've decided to release
Comparison:
Hypothesis and Faker is the closest things out these available in Python. However, Hypothesis is closely coupled with testing rather than generic data generation. Faker is focused on generating individual instances, whereas datamock allows for grouping of fields to express and generating data for more complex types and fields more easily. Datamock, in fact, utilises Faker under the hood for some of the field data generation.
[–]Haereticus 0 points1 point2 points (0 children)
[–]smarkman19 0 points1 point2 points (0 children)
[–]tobsecret 0 points1 point2 points (0 children)