Generate test data from JSON schemata with Hypothesis
Project description
hypothesis-jsonschema
A Hypothesis strategy for generating data that matches some JSON schema. It is currently in early alpha, but you can use it if you want.
The public API consists of a just two functions:
hypothesis_jsonschema.from_schema
takes a JSON schema and returns a Hypothesis strategy which generates objects that match the schema.hypothesis_jsonschema.json_schemata
returns a Hypothesis strategy which generates arbitrary JSON schemata.
hypothesis-jsonschema
does not support Python 2, because
it's close to end of life and Python 3.6+ is a
much nicer language. Contact me if you would like this changed and are
willing to either pay for or do the work to support Python 2.
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
Close
Hashes for hypothesis-jsonschema-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f83538999bd0db96eed319a467e27dec57c88bd6e702e0486f1c82f361e4ded7 |
|
MD5 | 3ed63637a858609cf9a2149e07ac2f9b |
|
BLAKE2b-256 | a4898811b386fe212096b06da269d68046cd89b5fbf3c4acd45b33141b7778f0 |