Simple package to check schema of NoSQL database (MongoDB).
Reason this release was yanked:
The code has logical errors.
Project description
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}
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 -
check_data
print_schema
compare_records
compare_record
update_records
update_record
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nosql_schema_check-0.0.1.tar.gz.
File metadata
- Download URL: nosql_schema_check-0.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baafbb7b45c44dea3b872a950ab4e8bd82207f44e35a87f7b24701425d96ee00
|
|
| MD5 |
f26b4f923b38c9028079c4d449df6ef8
|
|
| BLAKE2b-256 |
7c33a125b9d972ab9799aea9913f2ef0656a8049a29c88ae6ecc3dda3c8e0f6c
|
File details
Details for the file nosql_schema_check-0.0.1-py3-none-any.whl.
File metadata
- Download URL: nosql_schema_check-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
677cdaa88fa7d6e39c7e9ffde8baebdace45c765b01953329c3d72803ee1504a
|
|
| MD5 |
cb1af5dd0faecb318949629fca3bc815
|
|
| BLAKE2b-256 |
c59140c38d518a4e5ba1c52d92c6b8002397f1c498185207f08592b9777d5ffc
|