Skip to content

Commit db5d58f

Browse files
committed
added common imports and info to __init__ and moved to v0.0.5
1 parent 581d2c9 commit db5d58f

6 files changed

Lines changed: 11 additions & 5 deletions

File tree

example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from dbtogo.dbmodel import DBEngineFactory, DBModel
1+
from dbtogo import DBEngineFactory, DBModel
22

33

44
class Duck(DBModel):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "dbtogo"
7-
version = "0.0.4"
7+
version = "0.0.5"
88
dependencies = [
99
"pydantic>=2.0",
1010
]

src/dbtogo/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"""Python ORM on top of Pydantic models with focus on simplicity"""
2+
3+
__version__ = "0.0.5"
4+
5+
from .dbmodel import DBEngineFactory as DBEngineFactory
6+
from .dbmodel import DBModel as DBModel

tests/test_crud.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from dbtogo.dbmodel import DBEngineFactory, DBModel
3+
from dbtogo import DBEngineFactory, DBModel
44
from dbtogo.exceptions import NoBindError, UnboundDeleteError
55

66

tests/test_identity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from dbtogo.dbmodel import DBEngineFactory, DBModel
1+
from dbtogo import DBEngineFactory, DBModel
22

33

44
class SimpleDuck(DBModel):

tests/test_inheratance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from dbtogo.dbmodel import DBModel
1+
from dbtogo import DBModel
22
from dbtogo.serialization import GeneralSQLSerializer
33

44

0 commit comments

Comments
 (0)