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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13Windows x86

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

Uploaded CPython 3.13musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11musllinux: musl 1.2+ ARM64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ddb3f9dad12dbdf883554ca801278416641ce0cbcd3568da43733f2ec8cb4823
MD5 4d173882d5c73b5ba6976b8c349fdb02
BLAKE2b-256 f2e7d895f4d8a127738fb316ea928cdfed1f4e7f459593c2cdfd32b04ddf5f63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 fee38d0448c17fa8c3d888701bb7307d56d1581636c496b1449d189d75653d09
MD5 12d44847a27fd38d7b3c4a5d0c41edd4
BLAKE2b-256 b5336a0c445df3e9293962af2278173a0425e1a2aa14ab5122dafd4431f57fa7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c5315e07a2078ec2d36110858dc20995166f503efb70deb14ac58b02edcafdf9
MD5 a102259421a695812c1993bfc7a17f6b
BLAKE2b-256 e85caed93172871a8e9a88d67e4dcbb6bcb33c5c3453e8d82cf92f3dc024d5d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp313-cp313-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 4e69163540b9c3804b388350644335b72447f3f9ee04fd038234167fb438c1b1
MD5 d1b30f10ccf5ceeca82c4ac68a263060
BLAKE2b-256 7bf12cbacea19fb22c972da9dff2dac4de199c711ad53e4a5ede9d50ab353c78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 708ec140dab212ca9312e830d26bce5d137590da3ccbb99239d236fac191b188
MD5 3b81089f6bacf33a2e009a9baf8133e6
BLAKE2b-256 0f63ad1bb6c0121cbc4a287931e837026d9e111f129f9dc1280a93849b01b205

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4e147d653feac86bb97f07ffe2eb7c96664c1519cc104020b165aa4cb222e77f
MD5 28b7314815c2e035e28261f83bb6a8c9
BLAKE2b-256 83dfd9d805b65c10544dcd8b5994d51343006ac82ac0244fc7d7e77f24cac19e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d99a635b186bff6e4f9d68e2a9ea53afa024bb139b17693e2499b5eefca849be
MD5 0fdc577919b6b9ef726421c6439c33c0
BLAKE2b-256 3aca6c59ff08e7e7f37e641ea11076b7c1f0699f68b369f767c86fb1221f5b25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b5b8dcb2172e83d0649f4067ba08f66f73cbeec9cfd8d848536d2f6a4d7cfe4f
MD5 6291f645e32c71251e6860df9d66d05b
BLAKE2b-256 3fe43c3ae9a87cf2344a2c2511461a9da4494171540d40f42dbd449d188f87cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 88de4fa3c4c54cf38473cc30d649086391dd56bba41854c0d21288bbe58eac9f
MD5 ff89a50fdc16ae7928848b63900b2ea5
BLAKE2b-256 72f6e5d223edde08845ab2798a8a8d96eb4d1559cbed06639fe9cf49b154968c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ebaccb3484221b58b973f90e07b0cf10428f59156066898ba39d067e44b95610
MD5 5394e9a1b8132ff93b33d8e8269bc291
BLAKE2b-256 302fb3c00d5880b1d26258a3c5a89de7e3ecd91fbf56e5eb65eb9d07bf905b30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0134b9f32cb49f83c5e336f08ff55ec3674103d8b20c19c388e11351dfacf441
MD5 660bdd6192ebee8828f747c67efdf10f
BLAKE2b-256 19e0de94e323f05661e9634c953de58be23b506f539431089bc2d9a8d93cd20d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp312-cp312-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 8b0cab3ca407bd853241816866859cc925ccdd319a83c8c74a26e18c34e84963
MD5 e7f07160998b84e2b25cbb1292c74aeb
BLAKE2b-256 fe2189858a436ac9beb2cdfe1b0ec5a4257361344cefa872d4075cbfea3e1c81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 137301b549613ee8776c9c7ea4b8253415dbcd4e5235d378596f985724f029c1
MD5 f3e6e7d93e07bf561dc517ad0c602325
BLAKE2b-256 3467fea57f21c5dc92de851cc170d2b99afc410fed6cdf7edaeabe6b8f8d9b8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2f0cce053aae9d68524dafa43891def04f63f6bf355dc3b37a9cf5fa43b01c6a
MD5 749f90d1a4c6f5215902296815ab4ccc
BLAKE2b-256 4bf5857f702a143cea267aca5dbe378804c954036f115c2cd26664526e0c3b79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6130aad309d14f9efef7d69e8455375dd5a1904d7aa80baf951f6522e3928e38
MD5 d74ab47b4b65bb1261700e6db7edb1f2
BLAKE2b-256 74126dd9a2a8cc14266feef61bcc30dc3cdbfa07951dbc392e9373d7465087d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 80f5487a63806dae1d90cd7d0c3344546496334cfe830bd1fc2bed7a970d70f0
MD5 ff019fce73e6c2a4c6fd1fe76947d394
BLAKE2b-256 693a9901a4e053da62d1d167193a8644e1ec3a37bfc8cdd6ca3e495515441543

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 70403a6c9f07c5ca5f095e8f9f4c9f3f0660bce56c8e41f48666ab10cd77d590
MD5 76bd9ddfef79efcea55857f56ea83f9e
BLAKE2b-256 ac4c33978acc4d763901bda58ff340bf796433ab3e7cc177c9f3c153d01e5423

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c92a356468e37a865fcf85eaaf763170188b9b38d72bbbfd5186b8aed6d1fe70
MD5 8e28c06747f5fcae1b37465170323004
BLAKE2b-256 bc43eb9f410226f8c14c3f4e1fe7fb5838083099b4fb601c4d32865e38b30331

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 230cc7e9f9c7d74af63b6d10d9dca14f05172c4e22bf41a7683408688a795d4a
MD5 ccffdc5c3d629f300d1fb4adecbf309b
BLAKE2b-256 585622f78fa81d955183af3d732c0e4927112772cbdaa8e597c2255e99c37e8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 cb67365401d23df1369ad1137039e64e5f6d97077c208fbf1178c157979e9612
MD5 28bcc26715243fd974820769a4ab2418
BLAKE2b-256 2a2017d5ef3508fdc5347e8fadd56a8e808a9cec5b1bd05a5887cbffb25c3693

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6cf5704abed7047029d6e0450b1f2dcc4b438c56e18ae3a5fd9fb2b2c88a4629
MD5 e1bb6bd77e7448ded14d8dffedf2c5cf
BLAKE2b-256 14800317be5e9cdb4e511759a08310791ea39392f473881f51996b609080d9d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f44ed434ea4587a05e8653eec8185e1846ac5ea22992de2e57ef8bb8ef0f71c0
MD5 0834ab86d2a46a2ea89e70405d37a979
BLAKE2b-256 1965c4198bed1ea65617e33d50ff54606560204e4e21c96f11419ced909ff2c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eaf340e1604d2b1eb05883b0ab58536d48e70396ee9c233c386f976a9d2a9312
MD5 d42a6520e270941764e96207bb9d7fd2
BLAKE2b-256 e3d5e56575956e89c44a963f5b3d4d6f5db54a54a0e60221d93634e12b084b8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jsoncompat_py-0.1.6a2-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 02e738dc9ceea8521025270533ddc31e66e6bec7022dc6483fd1fb5e6899986c
MD5 a668c6fdf13b72ad6b03a2c7517b3881
BLAKE2b-256 80a43cee13e2f23cab0e401cc4b1232d56b5e5e8272bfaa2d9d45a10182ed695

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