Skip to main content

Simple package to check schema of NoSQL database (MongoDB).

Project description

NoSQL-Schema-Check

pip install NoSQL_Schema_Check

from nosql_schema_check.model import Model

class Model_Class(Model):

    Schema={field: value}

    Validations={field: function -> True/False}

    Default={field: function -> Default value}

  Optional variable -

    collection=Collection object.

Model_Class.generate()


Schema = {

    "key": 'type', -> change 'type' with type string.

    "key1": {key: value, ...},

    "key2": ('list', 'type') -> change 'type' with type string. ([value1, value2, ...])

}


Validations = {

    "key": validate function for value,

    ...

    validation for 'type' only.

}


Default = {

    "key": function that returns default value,

    ...

    default value for field only.

}


functions -

   Model_Class.check_data

   Model_Class.print_schema

   Model_Class.compare_records

   Model_Class.compare_record

   Model_Class.update_records

   Model_Class.update_record

   Model_Class.collection


Project details


Download files

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

Source Distribution

nosql_schema_check-0.0.6.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

nosql_schema_check-0.0.6-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file nosql_schema_check-0.0.6.tar.gz.

File metadata

  • Download URL: nosql_schema_check-0.0.6.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for nosql_schema_check-0.0.6.tar.gz
Algorithm Hash digest
SHA256 93c0e35ecdc1eb0458f19502f0bfbd8ca57b63d086258173d79afb9ed11e546d
MD5 d067da5a907ad34f5b621aee464d1b47
BLAKE2b-256 2a223b96c184fdf59d92125325a2e8ad7fba70cdaf543ac5529f0872f5b7d0b4

See more details on using hashes here.

File details

Details for the file nosql_schema_check-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for nosql_schema_check-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6f6fa56d9a6cdd0135c430e3369368e6f8b9df632022df8aa965035aec0eb1e7
MD5 120e74ecce0c7fdf6e1500614d510283
BLAKE2b-256 ac0c767b3be8cbae475d42a2251a18cc779c722bf93bd36ffb85be5eaa2dcf9f

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