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 details)
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 bsonschema-0.0.0.tar.gz.
File metadata
- Download URL: bsonschema-0.0.0.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9002eec83e8a004b0a4019c116b6b1c6ddc9b1a4c079b939ef2eab83dcb3796
|
|
| MD5 |
8a04bafc560ffc9220ba1879b6d833a4
|
|
| BLAKE2b-256 |
8613efea12aac81baa8942a1b1d8c2383051e4390eaeda436d079a99bed3fb45
|
File details
Details for the file bsonschema-0.0.0-py3-none-any.whl.
File metadata
- Download URL: bsonschema-0.0.0-py3-none-any.whl
- Upload date:
- Size: 24.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e0618e0d6f2570b15f40e74113fac9b2357e88ea39cb35cdf0988ca67afb05b
|
|
| MD5 |
ee9f9782124e7b8de33577dc9ca7be10
|
|
| BLAKE2b-256 |
bdcb1f095d7798d51a91b021b51ae78f54b0eee433480f4901ca4ab88d32a06e
|