Generate data randomly
Project description
randog 0.1.0.x — Randomly object generator
randog is a package which helps to generate data randomly.
For example:
import uuid
import randog.factory
factory = randog.factory.from_example({"uuid": uuid.uuid4, "name": "", "age": 20})
generated = factory.next()
assert isinstance(generated, dict)
assert isinstance(generated["uuid"], uuid.UUID)
assert isinstance(generated["name"], str)
assert isinstance(generated["age"], int)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
randog-0.1.0.0.tar.gz
(11.0 kB
view hashes)
Built Distribution
randog-0.1.0.0-py3-none-any.whl
(17.6 kB
view hashes)