Validation similar to bsonschema using BSON types
Project description
bsonschema
Simple bson validator written similarly to jsonschema but for BSON types.
Example of Use
import bsonschema;
inst = read_bson_from_disk("./tests/test_bson_for_validation.bson")
valid = bsonschema.Validator(json.load(open("./tests/mdb_schema.json", "r")))
valid.validate(inst)
print('Test file passed validation.')
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
bsonschema-0.0.0.tar.gz
(21.6 kB
view hashes)
Built Distribution
bsonschema-0.0.0-py3-none-any.whl
(24.6 kB
view hashes)
Close
Hashes for bsonschema-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e0618e0d6f2570b15f40e74113fac9b2357e88ea39cb35cdf0988ca67afb05b |
|
MD5 | ee9f9782124e7b8de33577dc9ca7be10 |
|
BLAKE2b-256 | bdcb1f095d7798d51a91b021b51ae78f54b0eee433480f4901ca4ab88d32a06e |