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.1.0.tar.gz (2.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: hypothesis-jsonschema-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.6.5

File hashes

Hashes for hypothesis-jsonschema-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5e075eb20f4bd4ba81dc2fe8103d1f5c4f6ec8dbbe596ef1fa8a29fe132220d2
MD5 4779dccc1f1a3a89fd72e6d2196d3da3
BLAKE2b-256 a91cd552025d838f3afd37d2b98fcf2f5197e6e5294a92bf1a6f9f0cc094b4fc

See more details on using hashes here.

Supported by

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