Skip to main content

No project description provided

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

jsoncompat-py

JSON Schema Compatibility Checker Python Bindings

Check compatibility of evolving JSON schemas and generate example values using Python.

Installation

Install from PyPI:

pip install jsoncompat-py

Usage

import jsoncompat_py as jsc

# Define old and new schemas as JSON strings
old_schema = '{"type": "string"}'
new_schema = '{"type": "number"}'

# Check compatibility (role: "serializer", "deserializer", or "both")
is_compatible = jsc.check_compat(old_schema, new_schema, "both")
print(is_compatible)

# Generate an example value for a schema
example = jsc.generate_value(old_schema, depth=5)
print(example)

API Reference

  • check_compat(old_schema_json: str, new_schema_json: str, role: str = "both") -> bool
  • generate_value(schema_json: str, depth: int = 5) -> str

Examples

See the basic demo for a complete end-to-end script.

License

MIT License. See LICENSE.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

jsoncompat_py-0.1.6a1-cp313-cp313-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.13Windows x86-64

jsoncompat_py-0.1.6a1-cp313-cp313-win32.whl (1.2 MB view details)

Uploaded CPython 3.13Windows x86

jsoncompat_py-0.1.6a1-cp313-cp313-musllinux_1_2_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

jsoncompat_py-0.1.6a1-cp313-cp313-musllinux_1_2_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ ARM64

jsoncompat_py-0.1.6a1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

jsoncompat_py-0.1.6a1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

jsoncompat_py-0.1.6a1-cp313-cp313-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

jsoncompat_py-0.1.6a1-cp313-cp313-macosx_10_12_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

jsoncompat_py-0.1.6a1-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

jsoncompat_py-0.1.6a1-cp312-cp312-win32.whl (1.2 MB view details)

Uploaded CPython 3.12Windows x86

jsoncompat_py-0.1.6a1-cp312-cp312-musllinux_1_2_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

jsoncompat_py-0.1.6a1-cp312-cp312-musllinux_1_2_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ ARM64

jsoncompat_py-0.1.6a1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

jsoncompat_py-0.1.6a1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

jsoncompat_py-0.1.6a1-cp312-cp312-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

jsoncompat_py-0.1.6a1-cp312-cp312-macosx_10_12_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

jsoncompat_py-0.1.6a1-cp311-cp311-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.11Windows x86-64

jsoncompat_py-0.1.6a1-cp311-cp311-win32.whl (1.2 MB view details)

Uploaded CPython 3.11Windows x86

jsoncompat_py-0.1.6a1-cp311-cp311-musllinux_1_2_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

jsoncompat_py-0.1.6a1-cp311-cp311-musllinux_1_2_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ ARM64

jsoncompat_py-0.1.6a1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

jsoncompat_py-0.1.6a1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

jsoncompat_py-0.1.6a1-cp311-cp311-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

jsoncompat_py-0.1.6a1-cp311-cp311-macosx_10_12_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

Details for the file jsoncompat_py-0.1.6a1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 284945e05372c149096b8999033b46858200036f65941f03257c85d1a29d5408
MD5 5d29bf2f9b51854a278bb0bcf259ceaf
BLAKE2b-256 8ac88f2daa7269405abefa0129db72c5057791c85c1888f2e3565e18d3ca0ac9

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp313-cp313-win32.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 0a20c7fb86e2f0aa969a0f3a55bacb98214b5d8af26dea00b69137e1d9b80322
MD5 d9a51106f758c40c0813f6ba0a84d920
BLAKE2b-256 3d052c9d6ecc20a6a079eb71e1ea2d72f999bf9d61886e7430e664205343fa57

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 55bb3b31ef5ecf6fa71c811f0e1ddf5a04c30dfaf20f4d6641640512538f03dc
MD5 05badc943793634e19c60617f160294c
BLAKE2b-256 ca8a23a0808786abd62d29bf5d14e38f6245bfc8599f7b3d5fa1c97da47a6c51

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp313-cp313-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp313-cp313-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 4bad0131fe7799f37394533e44ad5a068fa306275e729c902ad1cfe032d78075
MD5 8544bf3630cb5466a44ee0569aa3739a
BLAKE2b-256 f1855052bd0abb6b4bb96695651c3bfa85c2776688df85bacf69f98c33553ee5

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5ffa246087703760ac47079a8e3277e358c6dfa1adc183fbadb73829997e11ed
MD5 49ec128dfe36a7e606576bb9cf6ac3d3
BLAKE2b-256 376fd8492aeeb1cd0ea7adbdef768772812894e5b53bffc52ebd862226b1656d

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fad0ed0b53ab831c6b335d00c4771e7ca21d1503c6b437064fa9c1bd6fe3a356
MD5 56388dc7d25765acbba0c0e29d5443f3
BLAKE2b-256 acc2c6b1efee294ec5c89ffff30e0617ced1ff6c950bdeb9344e304f0a39e52f

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab35abbc9cb18689dca2aee9b43826f24c53b06c181a40a0e0fc4ead4e726f0c
MD5 c5ab6ae7c53c028b2edcd1034584d4bc
BLAKE2b-256 b330b881ea8261c49fadfb6c3da0d15d01e1b3114631c346c7e0e9ab78d39752

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 73755a5f4f17e553f4e8bc594b7adedbcce88eb8b6828492606ef2b966167587
MD5 658640dcbcbde04e7977c473466516c2
BLAKE2b-256 39aaf0f481d8b27b1c5be617fe11b9bc5cb9e5954253bce8f8a9fede31ffb37d

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e0caecc70f856c45372c2341a6493af8c70be4cdee54bf990505d72aafbe8ff7
MD5 25d1b52ef8e0f84e6b3e0cf8a65e453d
BLAKE2b-256 dd369e26d011372450f243cc1b494904d65a7f1f0c642deda1a04b103baf5db5

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp312-cp312-win32.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 68c94b627f2cfe120c4a8dcb61ec156f211bc8ffe79725a299a94106f2ce0357
MD5 d7b36e20c64d4769104633ff9d8e407d
BLAKE2b-256 a33e48125c9f06794bb385306ae7f8fd65c34701b95167bbe1c8cfd9efef625a

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 68c5574c3f9d6a3c42d17168f1c6d962dd8135ae9d002f877648bb187a9a7d56
MD5 5f007d96865a0f9ac98f9a007d122ece
BLAKE2b-256 07d051b09ad6fa66ea756b1b88f9bf2755646657a3e304c73b3f9ef9115edc69

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp312-cp312-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp312-cp312-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 0eccda1a439700edc8b80bba5738d9a461a3980aa0cdd2676201ade849077af2
MD5 7cf3daefe0e14f464c396e1f0b4992f3
BLAKE2b-256 a908f0b9715b87bd562d4160190219bf5fa6d3c0d8a120a213f97c99326740f8

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1d2d868776ec1f975285139e456986ab8cce352a16d9347d0361e8274ecae07b
MD5 45cbebe79b3d89edb419b7f7dbc735f5
BLAKE2b-256 1caad479f62463dd27040b83e5b54b6cc7a977eadb479f067a03b3221e00fad7

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2ece9e43977a808a60c9f77760e9900444c747dd57da84195ca92fb80fb74d09
MD5 92d34f9a8cb5827a74de16333d3a9451
BLAKE2b-256 3e05501a7172fd9d37377478ce7d1761e856ccda0cbff60ff88b6d0f038151ce

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d434bb5450ff259d868ee7e2d14ea31ba30fe884639e64f55bf8870506329eb3
MD5 d3cafa57c99716bd839b268b1dc79fd9
BLAKE2b-256 5e248d6b204104469acbbbf489392c024e2f170a5136705d5c80cc71a4ad94db

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 537f444d8216f2f0f244d3650f23ee9d09c176de49131e1623f0bea3d60059d7
MD5 cde955aa131a8c3ca7e19e9c42e594bc
BLAKE2b-256 d5b3423ffc37b7c2335c81531da47b83d9376ce81240ae39eb716e31235e1335

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cb035e2bdd2f8ccd678063078206395600f9a66bd8f36e45e57a58dae783c68f
MD5 2374c38caa870143e245b0f50e577f28
BLAKE2b-256 4c8c4b1ada4e991825797814cd48f4d3229841b665c3a63dd0dd065b83e6924e

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a26beff936371778bee43bd9a8edd83d84145d2e62930753ec0043ebf2df77e9
MD5 e653f336278518b6bf37de6312766841
BLAKE2b-256 9080fde18f233afa87318faebc9d7586d4222db9ea216826f1a676bd2b41338d

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 190e9bbae25fbbae20c6e2fe554470e67aa2c10cb767d015227b4c04263a570a
MD5 b96d0305a1edb6ef177cf5aa0c9918c7
BLAKE2b-256 28a072dcf2e683aeb6d93e5880c8d34d265538082a28756b3031d471bb827ecf

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp311-cp311-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 9166e22caa3444326d5688a0a9eecb765f541f9ee1f92260002bd6c7dfab445d
MD5 fb38556edab08255d508d1aa080b93f3
BLAKE2b-256 c48eb610a9a4e805f258762a8b8a767d9731c813f9d3e977f6f134a308ef0113

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e29fa11e3b7812260412f5839bd54f0840c586cef6aadb739fec55ce21780c69
MD5 8e6fa4aeba305e74a7edea5dc0e872f6
BLAKE2b-256 4a481112aed620f8dd1a3b33fa0751700972ab36a271cedd0a8214508668f6fd

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bb9fc6aa47bad39ba5cfab5f56265e6e5f082a31099500b6f9f8d36447cda0d1
MD5 5111f7031b1e4aec94596425a11c22a0
BLAKE2b-256 f0217dcf97a38e46290f26ec185d6ba847d735cd4a256fb875457a9d31ce4f48

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 90b9e420913c31ab14a402285d7170c32da0b83531b701caec7226a303909955
MD5 c53c15946d0820faff13bb390fbbf062
BLAKE2b-256 cb5e6612fb3bcf1fba95e72afcda47872573e7b1eaedea4274ea9e82ae914d74

See more details on using hashes here.

File details

Details for the file jsoncompat_py-0.1.6a1-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 27c6f14c6cd0792c8630631f78c9304ee8084ab83b607d188fd079b16a3dbca0
MD5 5a75b1dde064b454333ef755d647bb37
BLAKE2b-256 461a4a0b16785517a81c944de7dd827613a3746dc2fbd529dde6d83c363518f1

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