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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nosql_schema_check-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 d42f5dfde59995aaea2877a19ff59df5aa5900c9068a22153458114246b4b196
MD5 bbc25647aae464197b389558d298ed46
BLAKE2b-256 fa3d0652ebcabc334b3df780207681bc7f96787ad233e0f5a1d438bfd3a518a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nosql_schema_check-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 383785685de6484a9ef50478bac59acc7f899be40f1aa7e6955d6388b23a93eb
MD5 78f6e316b388457ce25e30be5fb5ef63
BLAKE2b-256 5546f198c57f2513d2e2ce4ae3d94443a3401c56dfb69d105cff0272ac766bf3

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