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.6a3-cp313-cp313-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

jsoncompat_py-0.1.6a3-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.6a3-cp313-cp313-musllinux_1_2_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ ARM64

jsoncompat_py-0.1.6a3-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.6a3-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.6a3-cp313-cp313-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

jsoncompat_py-0.1.6a3-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.6a3-cp312-cp312-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

jsoncompat_py-0.1.6a3-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.6a3-cp312-cp312-musllinux_1_2_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ ARM64

jsoncompat_py-0.1.6a3-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.6a3-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.6a3-cp312-cp312-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

jsoncompat_py-0.1.6a3-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.6a3-cp311-cp311-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

jsoncompat_py-0.1.6a3-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.6a3-cp311-cp311-musllinux_1_2_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ ARM64

jsoncompat_py-0.1.6a3-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.6a3-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.6a3-cp311-cp311-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

jsoncompat_py-0.1.6a3-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.6a3-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 681963fd782a5928dddaa330103122e84d742e9ee60e4a29c95ae432fe674918
MD5 8bd92ef7b0f0357331a6b0bcbc30ce58
BLAKE2b-256 6c94a51ae3e42be7dffd09df27049a86ba490ba5718b9f0c4594594dffc8f94a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 18a6752dc184114cf815c774f8e572ce13b2b4b2819c156c68f14e2a22e60546
MD5 eacb061499bb27ddbafe2e2d5f1206b3
BLAKE2b-256 0f7d86553a3fc5bf306f8ea8093bc5ded9bdc642c7ea3bad85b5c96b8b20d5bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9a01c84558f1fde8a3ec3e0dbe0f89bf233aa05670a3a0b310fbb4273f85cf8d
MD5 85e2b09ec41b0bdb2ea2d0db1cf4c4b1
BLAKE2b-256 e4dfff293827c577981a4f8332adbfab9059f7f8c8c3ca2462fa1e7108eb9a0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp313-cp313-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 4f35f89ab6b5989b1d4235d2246c335d1efe5bb89746c2b4afb65dcae7aaba80
MD5 e750e00b3c145906e728b03c4f2eb586
BLAKE2b-256 daf4473900b5001bc9f22752526e89e8941353d2cb08c870199d2ce765338914

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 19e32c2c6189a526a9f453fc4c7871b96962fb4e284e15463dbdc9624c6fddbd
MD5 55fcdb120a6bbbc657fec1c58271f71f
BLAKE2b-256 185da3bfdb64eb6fb8ae17d2053fb368065c349e25427f1d3ef3f13d36b3bdcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 78976a4656c03c9928c5fbd8ce7e610187bc8d6d7a5c5ebfbc165a2966103b6c
MD5 0c9ec017f16ccc47d0e638d1368d6e91
BLAKE2b-256 1661bddcddea98744c646c6f26f7bf89b745f190e76f23bf8921154040553c6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b4dac76abdbe444083dd59aaf677ef5c0a35b3ce2cbac7ca351adc984aef15a
MD5 3e7f5911dc6a2e95ebb21d89b736b2fb
BLAKE2b-256 d44f4855a65c226c441cbebe2fec0d5fada6fe5b79962ea7e74706e71e566a0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ceda919b95b5652806d0edc5a18cc7921d86f771fea13a6079407da1854c1349
MD5 0ace54e966b3459d3ee19243e2840ca0
BLAKE2b-256 a932e4db905d71f0819d7a038e769cc5ccb234af9c5a783a8fde55c47e1c0d6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2ec893e19e0b35c0723275fbd38fca166271a6c8fa41d5461c6b10fdb3332b83
MD5 bc98b923d1755df05a062c50d1882bfc
BLAKE2b-256 f4debeb1cadfb4016fb6385f8cc06726a629c8214f2778bea64d42233d645b54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c38d27ca997551a8a9f5c1356a84bcadf8173679a4702a59d030bb348dee46cd
MD5 f5e60e12b704f193e36732499a7b2629
BLAKE2b-256 4b59252d272e0727c8ecca54797510f3a0aa563d32868496928b5e5b173599c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dfa3e7e56d930bd90fa749407647519bfd60567fee423c8a5dcf45b14f84351d
MD5 d072f89b893fc34d30cfc42cab726407
BLAKE2b-256 f229d81040e0a88c5ffe688ba4a392f4be9f118343cf79ef6178bb92ba5eec6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp312-cp312-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 221b540f541709d8455b8e20b37d7b649f7b6b95caf5dc1ebab5437afa3970e0
MD5 10c5d1eee60086c5ccb883cb6c544a6e
BLAKE2b-256 824d62b8370e623d0b384b9ad47a7a6dc34f830ed5de9856fb07157e619f7e03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b2097e80f6ae3b83fe7ca5d7fd25dd26de4bb493d3bd843f58a744b447cac70a
MD5 76f87e8e09d20d34039ef8d9d518e2d2
BLAKE2b-256 bee9c4075051ad580b6dc6c7722f4b3e0c230942ce599ad4ad752e30a6833e9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5a373511649838bd5e5c33aaab6a3cdd4d87f99b70287c68cac48129b7edadf9
MD5 8f554f132da8d6fa204517e2e0922ff3
BLAKE2b-256 4c5a577d7c3c96f4a85954b7e209ac3ab383821a55cf0fda46b115c5e0bba0c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4df7dec54bbc0e4d9a142ef8a18c2e6aa82b62219d2ae73a87e0ab2f36ff78f
MD5 aac888d382d009a5d40b595985ea4e56
BLAKE2b-256 35939744e77deac86e489741aa8cbd5a4ef2c6e47e4e84ad720cfb4aa45f4c22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 85ca312887e2a67eaa4735635ff1c76d9d0b78a7256625f548eb0059739b0c69
MD5 e6b0fc9e27b2bb31ffd574c7be312a8b
BLAKE2b-256 cf3bcda09b98f6d2b8478cf74f407e65ef7f24a6efd7d7de4e06367ff08a95c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 32d4558e1cc982f5cc160fabb8790c21e9a99d05228b0241cf29a5d24b925850
MD5 4b0944ccf5066976768d48f92aff6631
BLAKE2b-256 a3e35fed9c0cb80edcd39d6430b9911c014be9a5a7702210666c0d9ee4518eb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 907c8ce28faad771508b137c57d2c9bdb740ad6a85f95bd925c9269af3ad9ea9
MD5 8f93ff74c860bad5285ffb6ac6552e07
BLAKE2b-256 9d5951191427a13262ee91e87bc6408ce74398862e4e13e52e717bd167dfff47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b9ff21fb0dece90dbe64e199ed8cbf1526063bbfdc6057554368227395873092
MD5 1558e2f95fb466232a013a98579176f3
BLAKE2b-256 9fbbd565ebe99bf6493b50fdd7c9454a12efc9abca863691ef82989ab7c8e33a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 bc9e8dcb7eac81085225b2e35887a1bfb13b2585bfc7213e150d14aff6e732c4
MD5 974036b4fbb66c4be1895f438e407b7c
BLAKE2b-256 49f173143227e1a107d45386d009711215fd0447af322c6ecd25d84cdf298e9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2d6a586f707436941125a77b0f964f167dee204593234f3ea1a1abaf349cd400
MD5 530348164ae6b7b9a068b01527a883c8
BLAKE2b-256 7827dfeef29a8eadf445721ede539e379a5eb9759afedfcc0ecf2c35b2a490dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8e7fa0cab0c240cb46bab3b0ea624e5cb0e291f419dd5c091f03bc57b3bcceaa
MD5 7e43c3ecc746a74c68aa13362820dcd3
BLAKE2b-256 4066ede2132f220830465585e577ae405a713fe0be0c74aded89c16f7ccdc083

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d229bd3592dc7140c961fb21ebd1e2730f4227af1ec90696a4ecd86652f5840c
MD5 30a69456d6652b16d9f0092ae8596087
BLAKE2b-256 d2a18f5451c6d61d0a544d9b8bc32c6158ee847dabe958a38594662c641681e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a3-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c57cc1b8fdba2b08427bbac83ec47bc8cc63f070aff9708a7f5f638163b684f9
MD5 314859bc370f0b579c3f2131bdb55f21
BLAKE2b-256 964abe614ce359d70a0391a10807a4eaf0beef159284c6fcf2e6b1d92c285a3f

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