Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mongodb/mongo-python-driver
/ decode
Function
decode
bson/__init__.py:1057–1058 ·
view source on GitHub ↗
(data: _ReadableBuffer, codec_options: None = None)
Source
from the content-addressed store, hash-verified
1055
1056
@overload
1057
def
decode(data: _ReadableBuffer, codec_options: None = None) -> dict[str, Any]:
1058
...
1059
1060
1061
@overload
Callers
15
test_raw_bson_document_embedded
Method · 0.90
test_contains_code_with_scope
Method · 0.90
test_contains_dbref
Method · 0.90
test_basic_decode
Method · 0.90
test_decode_buffer_protocol
Method · 0.90
test_invalid_field_name
Method · 0.90
test_data_timestamp
Method · 0.90
test_unknown_type
Method · 0.90
test_dbpointer
Method · 0.90
test_bad_dbref
Method · 0.90
test_datetime_encode_decode
Method · 0.90
test_large_datetime_truncation
Method · 0.90
Calls
1
_bson_to_dict
Function · 0.85
Tested by
15
test_raw_bson_document_embedded
Method · 0.72
test_contains_code_with_scope
Method · 0.72
test_contains_dbref
Method · 0.72
test_basic_decode
Method · 0.72
test_decode_buffer_protocol
Method · 0.72
test_invalid_field_name
Method · 0.72
test_data_timestamp
Method · 0.72
test_unknown_type
Method · 0.72
test_dbpointer
Method · 0.72
test_bad_dbref
Method · 0.72
test_datetime_encode_decode
Method · 0.72
test_large_datetime_truncation
Method · 0.72