mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 03:24:20 +00:00
Remove royalnet.sculptor
, which was basically useless anyways
This commit is contained in:
parent
5b0c59a424
commit
774cf2253a
2 changed files with 0 additions and 46 deletions
|
@ -1,5 +0,0 @@
|
||||||
"""
|
|
||||||
This module contains many :mod:`pydantic` models that may be useful to multiple projects.
|
|
||||||
"""
|
|
||||||
|
|
||||||
from a_base import *
|
|
|
@ -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 <https://pydantic-docs.helpmanual.io/usage/model_config/>`_,
|
|
||||||
: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 <https://pydantic-docs.helpmanual.io/usage/models/#orm-mode-aka-arbitrary
|
|
||||||
-class-instances>`_
|
|
||||||
"""
|
|
||||||
orm_mode = True
|
|
||||||
|
|
||||||
|
|
||||||
__all__ = (
|
|
||||||
"RoyalnetModel",
|
|
||||||
"OrmModel",
|
|
||||||
)
|
|
Loading…
Reference in a new issue