Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ Book
Class
Book
benchmarks/test_basic_doc_ops.py:23–28 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
21
22
def
test_basic():
23
class
Book(Document):
24
name = StringField()
25
pages = IntField()
26
tags = ListField(StringField())
27
is_published = BooleanField()
28
author_email = EmailField()
29
30
Book.drop_collection()
31
Callers
1
init_book
Function · 0.70
Calls
5
StringField
Class · 0.90
IntField
Class · 0.90
ListField
Class · 0.90
BooleanField
Class · 0.90
EmailField
Class · 0.90
Tested by
1
init_book
Function · 0.56