Skip to main content

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:

  1. hypothesis_jsonschema.from_schema takes a JSON schema and returns a Hypothesis strategy which generates objects that match the schema.
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hypothesis-jsonschema-0.2.0.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file hypothesis-jsonschema-0.2.0.tar.gz.

File metadata

  • Download URL: hypothesis-jsonschema-0.2.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for hypothesis-jsonschema-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f83538999bd0db96eed319a467e27dec57c88bd6e702e0486f1c82f361e4ded7
MD5 3ed63637a858609cf9a2149e07ac2f9b
BLAKE2b-256 a4898811b386fe212096b06da269d68046cd89b5fbf3c4acd45b33141b7778f0

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page