Skip to main content

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

Reason this release was yanked:

Bugs.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nosql_schema_check-0.0.7.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.7.tar.gz
Algorithm Hash digest
SHA256 26729d18fcb155a8eb75f36e36e94c84b12491d9ea29a6ba9124586d363486ee
MD5 3b8661abe282610183dc1dbb7d022966
BLAKE2b-256 0315aa9c6595d68875e1f2e89dd2888a7ef79c5061cd0b6e0762b14f98f997c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nosql_schema_check-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5eda8b14d918fcaf36c262e0da5debf7c3157cd65d9064cda5f04147f9d90826
MD5 db40d5f18d9e01fda6f6a57357e30313
BLAKE2b-256 3897e4e3cb5a97c010b749217b4f93d308b1990f3caf2d5a52a7f53050ac8830

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