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.5.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.5-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nosql_schema_check-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 1fcf83d57c4451c44f9a8df08d63df596f3916d79e0a4d44cf73d9c5189a1118
MD5 d4c2c211c7f73c567a5ef572123884eb
BLAKE2b-256 2d53759c3e2408a1def0e41895eb1be76fd06b690a1f0a6e46fa714dc5db3524

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nosql_schema_check-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cffd2c78ed3869de9009c9afae2f327ac5d72011c7b21b979673a217d1d1423d
MD5 5496511ec7674fac1d0f6b14ea613b43
BLAKE2b-256 12765a2f19ffc87185a50627280f3ea66a66139167b8b68785aa3dfb17d80cac

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