kardioutils 1.0.22__tar.gz → 1.0.23__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.
- {kardioutils-1.0.22/kardioutils.egg-info → kardioutils-1.0.23}/PKG-INFO +1 -1
- kardioutils-1.0.23/dl2050utils/__version__.py +1 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/rest.py +9 -6
- {kardioutils-1.0.22 → kardioutils-1.0.23/kardioutils.egg-info}/PKG-INFO +1 -1
- kardioutils-1.0.22/dl2050utils/__version__.py +0 -1
- {kardioutils-1.0.22 → kardioutils-1.0.23}/LICENSE.txt +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/README.md +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/__config__.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/__init__.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/api.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/auth.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/com.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/common.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/core.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/db copy.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/db.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/dbdf.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/dbutils.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/df.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/df_utils.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/env.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/etl.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/fdb.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/fs.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/graphql.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/gs.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/ju.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/log.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/mq.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/restapp.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/restutils.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/sqlite.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/ulists.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/dl2050utils/wsgi.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/kardioutils.egg-info/SOURCES.txt +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/kardioutils.egg-info/dependency_links.txt +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/kardioutils.egg-info/top_level.txt +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/setup.cfg +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/setup.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/test/test_core.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/test/test_db.py +0 -0
- {kardioutils-1.0.22 → kardioutils-1.0.23}/test/test_env.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
version = "1.0.23"
|
|
@@ -131,7 +131,6 @@ class ASGI_Server:
|
|
|
131
131
|
Middleware(RestEndMiddleware, LOG=self.LOG, auth=auth),
|
|
132
132
|
]
|
|
133
133
|
self.routes = auth.get_routes() + app.get_routes()
|
|
134
|
-
|
|
135
134
|
|
|
136
135
|
async def http_exception(self, request, exc):
|
|
137
136
|
"""Handles HTTP exceptions, returning a formatted error response.
|
|
@@ -176,8 +175,14 @@ class ASGI_Server:
|
|
|
176
175
|
async def shutdown(self):
|
|
177
176
|
"""Logs and performs necessary shutdown tasks for the server."""
|
|
178
177
|
self.LOG(2, 0, label="REST", label2="SHUTDOWN")
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
|
|
179
|
+
def run(self, port=None):
|
|
180
|
+
"""Runs the ASGI server on the specified port.
|
|
181
|
+
|
|
182
|
+
Args:
|
|
183
|
+
port (int, optional): Port to run the server. Defaults to self.port.
|
|
184
|
+
"""
|
|
185
|
+
rest = Starlette(
|
|
181
186
|
debug=DEBUG,
|
|
182
187
|
exception_handlers=self.exception_handlers,
|
|
183
188
|
middleware=self.middleware,
|
|
@@ -185,10 +190,8 @@ class ASGI_Server:
|
|
|
185
190
|
on_shutdown=[self.shutdown],
|
|
186
191
|
routes=self.routes,
|
|
187
192
|
)
|
|
188
|
-
|
|
189
|
-
def run(self, port=None):
|
|
190
193
|
port = port or self.port
|
|
191
|
-
uvicorn.run(
|
|
194
|
+
uvicorn.run(rest, port=port, host="0.0.0.0", log_level="critical")
|
|
192
195
|
|
|
193
196
|
class RestStartMiddleware(BaseHTTPMiddleware):
|
|
194
197
|
"""Middleware to initialize request state.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
version = "1.0.22"
|
|
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
|
|
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
|