Skip to main content

Basic dictionary schema checker

Project description

What?

Basic Python based tool to check schema of two dictionaries

Does it check values?

Nope.

Does it work if one of the keys is a dictionary itself?

It checks for nested dictionaries. So, yes.

What Python version is it based on?

Python 3.7

Dependencies?

None.

How to use?

  1. Import from schematch import match

  2. Prepare input

    dicOne = {"name":"Sumit", "likes": "sleeping"} dicTwo = {"name":"Shekhar", "likes": "guys"}

  3. Invoke method are_schemas_same = match.are_keys_same_in_dictionary(dicOne, dicTwo)

  4. Output (True, '')

The output is a tuple with a boolean and a string. The boolean determines if the schemas match and the string is the error message (if any)

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 Distribution

ScheMatch-0.22-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file ScheMatch-0.22-py3-none-any.whl.

File metadata

  • Download URL: ScheMatch-0.22-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.5

File hashes

Hashes for ScheMatch-0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 d938f0ca120767ce0762194015b2ad7a75486ea2d423f116f757911db5fbc37a
MD5 3c0409bfbd01a2958da540144a06f5e5
BLAKE2b-256 524821ad207adc1e4bbb044bd75886719e160fafb7060f5b648f31cf389b8bee

See more details on using hashes here.

Supported by

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