Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add new SyncEngine, support async and sync code #2

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions odmantic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
from .bson import ObjectId
from .engine import AIOEngine
from .engine import AIOEngine, SyncEngine
from .field import Field
from .model import EmbeddedModel, Model
from .reference import Reference

__all__ = ["AIOEngine", "Model", "EmbeddedModel", "Field", "Reference", "ObjectId"]
__all__ = [
"AIOEngine",
"Model",
"EmbeddedModel",
"Field",
"Reference",
"ObjectId",
"SyncEngine",
]

# Cleanest way to handle version changes with poetry while not hardcoding the version
# https://github.com/python-poetry/poetry/pull/2366#issuecomment-652418094
Expand Down
Loading