diff --git a/pyproject.toml b/pyproject.toml index 7bfd30bf..1eca9130 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,6 @@ redis = "^3.5.3" hiredis = "^1.1.0" sqlalchemy = "^1.3.19" toml = "^0.10.1" -pydantic-sqlalchemy = "^0.0.7" [tool.poetry.dev-dependencies] pytest = "^6.1.1" diff --git a/royalnet/alchemist/__init__.py b/royalnet/alchemist/__init__.py index ca3e7d85..2dc00c5e 100644 --- a/royalnet/alchemist/__init__.py +++ b/royalnet/alchemist/__init__.py @@ -1,3 +1,2 @@ from .func import * from .repr import * -from .model import * diff --git a/royalnet/alchemist/model.py b/royalnet/alchemist/model.py deleted file mode 100644 index ff696253..00000000 --- a/royalnet/alchemist/model.py +++ /dev/null @@ -1,15 +0,0 @@ -import pydantic_sqlalchemy -import functools - - -class PyModel: - """A mixin that can be added to a declared class to generate a Pydantic model from it.""" - - @classmethod - def pydantic(cls): - return pydantic_sqlalchemy.sqlalchemy_to_pydantic(cls) - - -__all__ = ( - "PyModel", -)