xn-model 0.11.2__py3-none-any.whl → 0.11.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- x_model/__init__.py +4 -3
- x_model/{model.py → models.py} +1 -1
- {xn_model-0.11.2.dist-info → xn_model-0.11.4.dist-info}/METADATA +2 -3
- xn_model-0.11.4.dist-info/RECORD +9 -0
- {xn_model-0.11.2.dist-info → xn_model-0.11.4.dist-info}/WHEEL +1 -1
- xn_model-0.11.2.dist-info/RECORD +0 -9
- {xn_model-0.11.2.dist-info → xn_model-0.11.4.dist-info}/top_level.txt +0 -0
x_model/__init__.py
CHANGED
|
@@ -21,11 +21,12 @@ async def init_db(dsn: str, models: ModuleType, create_tables: bool = False) ->
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
class FailReason(IntEnum):
|
|
24
|
-
|
|
24
|
+
body = 8
|
|
25
25
|
query = 9
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
path = 10
|
|
27
|
+
host = 11
|
|
28
28
|
protocol = 12
|
|
29
|
+
method = 13
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
class HTTPException(BaseHTTPException):
|
x_model/{model.py → models.py}
RENAMED
|
@@ -104,7 +104,7 @@ class Model(BaseModel):
|
|
|
104
104
|
|
|
105
105
|
@classmethod
|
|
106
106
|
def pyd(cls) -> type[PydanticModel]:
|
|
107
|
-
cls._pyd = cls._pyd or pydantic_model_creator(cls)
|
|
107
|
+
cls._pyd = cls._pyd or pydantic_model_creator(cls, name=cls.__name__)
|
|
108
108
|
return cls._pyd
|
|
109
109
|
|
|
110
110
|
@classmethod
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: xn-model
|
|
3
|
-
Version: 0.11.
|
|
3
|
+
Version: 0.11.4
|
|
4
4
|
Summary: Base model for xn-api
|
|
5
5
|
Author-email: Mike Artemiev <mixartemev@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -10,12 +10,11 @@ Keywords: tortoise,model,crud,generator,api,admin
|
|
|
10
10
|
Requires-Python: >=3.12
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
Requires-Dist: tortoise-orm[accel,asyncpg]
|
|
13
|
-
Requires-Dist: python-dotenv
|
|
14
13
|
Provides-Extra: dev
|
|
15
14
|
Requires-Dist: pytest ; extra == 'dev'
|
|
15
|
+
Requires-Dist: python-dotenv ; extra == 'dev'
|
|
16
16
|
Requires-Dist: build ; extra == 'dev'
|
|
17
17
|
Requires-Dist: twine ; extra == 'dev'
|
|
18
|
-
Requires-Dist: setuptools-scm ; extra == 'dev'
|
|
19
18
|
|
|
20
19
|
## INSTALL
|
|
21
20
|
```bash
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
x_model/__init__.py,sha256=leq1K2Lq0zlTY2s5sdhDiGEyfNZPySCOJi0xB5xUSG0,1231
|
|
2
|
+
x_model/field.py,sha256=S461M94ryQG7yu8lreXtWnZo3YdCP97xhbcCJ3BzXsY,2751
|
|
3
|
+
x_model/func.py,sha256=E7jDoHJGaFpKvxbHnT_lyBxUZeMo-GRd5gv9dLw7B9s,289
|
|
4
|
+
x_model/models.py,sha256=V1lrDJH-DPnGznhxCkNKFI58igzO2KTVCQNX2MDKzuM,7048
|
|
5
|
+
x_model/pydantic.py,sha256=OjNCp4ZFGvUIxZSbDCmXISl9mOjI_UnWi5JMVntSqjM,590
|
|
6
|
+
xn_model-0.11.4.dist-info/METADATA,sha256=1Njxvb3fKUa8Vrjec4Mdy_2Oh7tjpIk8DR2WJO34SjY,972
|
|
7
|
+
xn_model-0.11.4.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
8
|
+
xn_model-0.11.4.dist-info/top_level.txt,sha256=QCYyfv5AA_8jPPtCpShkBXzQRUCGuuW7Ro0mqysDE8E,8
|
|
9
|
+
xn_model-0.11.4.dist-info/RECORD,,
|
xn_model-0.11.2.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
x_model/__init__.py,sha256=o2sQtkN15QxBtAIfmR0Pxf8UrdkKVRXL6nDecjgwEyU,1217
|
|
2
|
-
x_model/field.py,sha256=S461M94ryQG7yu8lreXtWnZo3YdCP97xhbcCJ3BzXsY,2751
|
|
3
|
-
x_model/func.py,sha256=E7jDoHJGaFpKvxbHnT_lyBxUZeMo-GRd5gv9dLw7B9s,289
|
|
4
|
-
x_model/model.py,sha256=VL6JE-oGU0xzolhEGD8Lp7xDV7LVNGS0klMsUOXPJi0,7029
|
|
5
|
-
x_model/pydantic.py,sha256=OjNCp4ZFGvUIxZSbDCmXISl9mOjI_UnWi5JMVntSqjM,590
|
|
6
|
-
xn_model-0.11.2.dist-info/METADATA,sha256=cePVGXEv8i744IcjtkecY1y4f05RnN5-dbzus8lkopo,1002
|
|
7
|
-
xn_model-0.11.2.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
8
|
-
xn_model-0.11.2.dist-info/top_level.txt,sha256=QCYyfv5AA_8jPPtCpShkBXzQRUCGuuW7Ro0mqysDE8E,8
|
|
9
|
-
xn_model-0.11.2.dist-info/RECORD,,
|
|
File without changes
|