diff --git a/royalnet/sculptor/__init__.py b/royalnet/sculptor/__init__.py deleted file mode 100644 index 4117e111..00000000 --- a/royalnet/sculptor/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -""" -This module contains many :mod:`pydantic` models that may be useful to multiple projects. -""" - -from a_base import * diff --git a/royalnet/sculptor/a_base.py b/royalnet/sculptor/a_base.py deleted file mode 100644 index f7b5dfd2..00000000 --- a/royalnet/sculptor/a_base.py +++ /dev/null @@ -1,41 +0,0 @@ -""" -Base models are :class:`pydantic.BaseModel` that have specific configuration tailored for certain uses. -""" - -import pydantic - - -class RoyalnetModel(pydantic.BaseModel): - """ - A model for generic data. - """ - - class Config(pydantic.BaseModel.Config): - """ - The default :mod:`pydantic` configuration. - - .. seealso:: `Pydantic Configuration `_, - :class:`pydantic.BaseModel.Config` - """ - pass - - -class OrmModel(RoyalnetModel): - """ - A model for :mod:`sqlalchemy` table data. - """ - - class Config(RoyalnetModel.Config): - """ - A configuration which allows for the loading of data from ``__getattr__`` instead of ``__getitem__``. - - .. seealso:: `Pydantic ORM Mode `_ - """ - orm_mode = True - - -__all__ = ( - "RoyalnetModel", - "OrmModel", -)