Skip to content

Snowfakery 1.5: random_reference, variables, snowfakery_locale and graphviz

Compare
Choose a tag to compare
@prescod prescod released this 04 Feb 02:06
d046989

Adds a "random_reference" feature to allow randomized
connections between objects as described in the documentation.
(PR #184)

Adds a notion of "variables" as described in the documentation. These allow computed values to be easily shared between object templates.
(PR #231)

Adds a "snowfakery_locale" variable which determines what locale drives fake data creation (person nammes, state/province name etc.)
(PR #231)

Does not depend upon pygraphviz library which can be difficult to install. One will still generally want to install
graphviz, but not both graphviz AND pygraphviz. (PR #171)

Calls to "fake" are optimized. Recipes that are heavily reliant on faked fields may be 10-15% faster. One tradeoff is that e.g. person names or state names do not follow a real-world statistical distribution. Rare names (in en_US locale) like "Mathias" are now as common as real-world common names like "Matthew". (PR #214)