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.2.tar.gz (4.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.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nosql_schema_check-0.0.2.tar.gz
  • Upload date:
  • Size: 4.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.2.tar.gz
Algorithm Hash digest
SHA256 929b56550114805a686083c023740dafcaf072493f828d3c161b570ba6070d6f
MD5 0c38a5508d56cac684d55a5b421a51df
BLAKE2b-256 7310e78285b0b4b09fedcf1e9bb7d93d760aacf82f20c4182ca4dea41677b23b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nosql_schema_check-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c49c0a08e6f8d77dda849ca4306cc3520a1f988d5aa8f9e72037df64a7e0cd97
MD5 ab9a02098cae50733a6e414d477b04aa
BLAKE2b-256 edd7ac8c50c16362e42ea14f14185f35632440a491ae97306e6de0ae636aa394

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