Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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.

Files for ScheMatch, version 0.22
Filename, size File type Python version Upload date Hashes
Filename, size ScheMatch-0.22-py3-none-any.whl (2.4 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page