sera-2 1.4.4__tar.gz → 1.4.5__tar.gz
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.
- {sera_2-1.4.4 → sera_2-1.4.5}/PKG-INFO +2 -2
- {sera_2-1.4.4 → sera_2-1.4.5}/pyproject.toml +2 -2
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/make/make_python_api.py +7 -3
- {sera_2-1.4.4 → sera_2-1.4.5}/README.md +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/__init__.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/constants.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/libs/__init__.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/libs/api_helper.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/libs/base_orm.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/libs/base_service.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/make/__init__.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/make/__main__.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/make/make_app.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/make/make_python_model.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/make/make_python_services.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/make/make_typescript_model.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/misc/__init__.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/misc/_utils.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/models/__init__.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/models/_class.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/models/_collection.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/models/_datatype.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/models/_module.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/models/_multi_lingual_string.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/models/_parse.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/models/_property.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/models/_schema.py +0 -0
- {sera_2-1.4.4 → sera_2-1.4.5}/sera/typing.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: sera-2
|
3
|
-
Version: 1.4.
|
3
|
+
Version: 1.4.5
|
4
4
|
Summary:
|
5
5
|
Author: Binh Vu
|
6
6
|
Author-email: bvu687@gmail.com
|
@@ -9,7 +9,7 @@ Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.12
|
10
10
|
Classifier: Programming Language :: Python :: 3.13
|
11
11
|
Requires-Dist: black (>=25.1.0,<26.0.0)
|
12
|
-
Requires-Dist: codegen-2 (>=2.1
|
12
|
+
Requires-Dist: codegen-2 (>=2.5.1,<3.0.0)
|
13
13
|
Requires-Dist: litestar (>=2.15.1,<3.0.0)
|
14
14
|
Requires-Dist: loguru (>=0.7.0,<0.8.0)
|
15
15
|
Requires-Dist: msgspec (>=0.19.0,<0.20.0)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "sera-2"
|
3
|
-
version = "1.4.
|
3
|
+
version = "1.4.5"
|
4
4
|
description = ""
|
5
5
|
authors = ["Binh Vu <bvu687@gmail.com>"]
|
6
6
|
readme = "README.md"
|
@@ -9,7 +9,7 @@ repository = "https://github.com/binh-vu/sera"
|
|
9
9
|
|
10
10
|
[tool.poetry.dependencies]
|
11
11
|
python = "^3.12"
|
12
|
-
codegen-2 = "^2.1
|
12
|
+
codegen-2 = "^2.5.1"
|
13
13
|
msgspec = "^0.19.0"
|
14
14
|
litestar = "^2.15.1"
|
15
15
|
loguru = "^0.7.0"
|
@@ -83,6 +83,12 @@ def make_main(target_pkg: Package, routes: Sequence[Module]):
|
|
83
83
|
|
84
84
|
program.root(
|
85
85
|
stmt.LineBreak(),
|
86
|
+
lambda ast: ast.assign(
|
87
|
+
DeferredVar.simple("app_routes"),
|
88
|
+
PredefinedFn.list(
|
89
|
+
[expr.ExprIdent(route.path + ".router") for route in routes]
|
90
|
+
),
|
91
|
+
),
|
86
92
|
lambda ast: ast.assign(
|
87
93
|
DeferredVar.simple("app"),
|
88
94
|
expr.ExprFuncCall(
|
@@ -90,9 +96,7 @@ def make_main(target_pkg: Package, routes: Sequence[Module]):
|
|
90
96
|
[
|
91
97
|
PredefinedFn.keyword_assignment(
|
92
98
|
"route_handlers",
|
93
|
-
|
94
|
-
[expr.ExprIdent(route.path + ".router") for route in routes]
|
95
|
-
),
|
99
|
+
expr.ExprIdent("app_routes"),
|
96
100
|
)
|
97
101
|
],
|
98
102
|
),
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|