auto-rest-api 0.1.8__tar.gz → 0.1.10__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.
Potentially problematic release.
This version of auto-rest-api might be problematic. Click here for more details.
- {auto_rest_api-0.1.8 → auto_rest_api-0.1.10}/PKG-INFO +14 -14
- {auto_rest_api-0.1.8 → auto_rest_api-0.1.10}/auto_rest/app.py +1 -1
- {auto_rest_api-0.1.8 → auto_rest_api-0.1.10}/auto_rest/handlers.py +1 -1
- {auto_rest_api-0.1.8 → auto_rest_api-0.1.10}/auto_rest/interfaces.py +2 -2
- {auto_rest_api-0.1.8 → auto_rest_api-0.1.10}/pyproject.toml +16 -16
- {auto_rest_api-0.1.8 → auto_rest_api-0.1.10}/LICENSE.md +0 -0
- {auto_rest_api-0.1.8 → auto_rest_api-0.1.10}/README.md +0 -0
- {auto_rest_api-0.1.8 → auto_rest_api-0.1.10}/auto_rest/__init__.py +0 -0
- {auto_rest_api-0.1.8 → auto_rest_api-0.1.10}/auto_rest/__main__.py +0 -0
- {auto_rest_api-0.1.8 → auto_rest_api-0.1.10}/auto_rest/cli.py +0 -0
- {auto_rest_api-0.1.8 → auto_rest_api-0.1.10}/auto_rest/models.py +0 -0
- {auto_rest_api-0.1.8 → auto_rest_api-0.1.10}/auto_rest/queries.py +0 -0
- {auto_rest_api-0.1.8 → auto_rest_api-0.1.10}/auto_rest/routers.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: auto-rest-api
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.10
|
|
4
4
|
Summary: Automatically map database schemas and deploy per-table REST API endpoints.
|
|
5
5
|
License: GPL-3.0-only
|
|
6
6
|
Keywords: Better,HPC,automatic,rest,api
|
|
@@ -18,20 +18,20 @@ Classifier: Topic :: Internet :: WWW/HTTP
|
|
|
18
18
|
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
|
|
19
19
|
Classifier: Topic :: Software Development
|
|
20
20
|
Classifier: Typing :: Typed
|
|
21
|
-
Requires-Dist: aiomysql (
|
|
22
|
-
Requires-Dist: aioodbc (
|
|
23
|
-
Requires-Dist: aiosqlite (
|
|
24
|
-
Requires-Dist: asgi-correlation-id (
|
|
25
|
-
Requires-Dist: asyncpg (
|
|
21
|
+
Requires-Dist: aiomysql (==0.3.2)
|
|
22
|
+
Requires-Dist: aioodbc (==0.5.0)
|
|
23
|
+
Requires-Dist: aiosqlite (==0.20.0)
|
|
24
|
+
Requires-Dist: asgi-correlation-id (==4.3.4)
|
|
25
|
+
Requires-Dist: asyncpg (==0.30.0)
|
|
26
26
|
Requires-Dist: colorlog (>=6.9.0,<7.0.0)
|
|
27
|
-
Requires-Dist: fastapi (
|
|
28
|
-
Requires-Dist: greenlet (
|
|
29
|
-
Requires-Dist: httpx (
|
|
30
|
-
Requires-Dist: oracledb (
|
|
31
|
-
Requires-Dist: pydantic (
|
|
32
|
-
Requires-Dist: pyyaml (
|
|
33
|
-
Requires-Dist: sqlalchemy (
|
|
34
|
-
Requires-Dist: uvicorn (
|
|
27
|
+
Requires-Dist: fastapi (==0.120.1)
|
|
28
|
+
Requires-Dist: greenlet (==3.2.4)
|
|
29
|
+
Requires-Dist: httpx (==0.28.1)
|
|
30
|
+
Requires-Dist: oracledb (==2.5.1)
|
|
31
|
+
Requires-Dist: pydantic (==2.12.3)
|
|
32
|
+
Requires-Dist: pyyaml (==6.0.3)
|
|
33
|
+
Requires-Dist: sqlalchemy (==2.0.44)
|
|
34
|
+
Requires-Dist: uvicorn (==0.38.0)
|
|
35
35
|
Description-Content-Type: text/markdown
|
|
36
36
|
|
|
37
37
|
# Auto-REST
|
|
@@ -55,7 +55,7 @@ async def logging_middleware(request: Request, call_next: callable) -> Response:
|
|
|
55
55
|
response = await call_next(request)
|
|
56
56
|
|
|
57
57
|
except Exception as exc:
|
|
58
|
-
logger.error(str(
|
|
58
|
+
logger.error(str(exc), exc_info=exc, extra=request_meta)
|
|
59
59
|
raise
|
|
60
60
|
|
|
61
61
|
# Log the outgoing response
|
|
@@ -325,7 +325,7 @@ def create_put_record_handler(engine: DBEngine, table: Table) -> Callable[..., A
|
|
|
325
325
|
setattr(record, key, value)
|
|
326
326
|
|
|
327
327
|
await commit_session(session)
|
|
328
|
-
return
|
|
328
|
+
return record
|
|
329
329
|
|
|
330
330
|
return put_record_handler
|
|
331
331
|
|
|
@@ -52,7 +52,7 @@ def create_field_definition(col: Column, mode: MODE_TYPE = "default") -> tuple[t
|
|
|
52
52
|
Modes:
|
|
53
53
|
default: Values are marked as (not)required based on the column schema.
|
|
54
54
|
required: Values are always marked required.
|
|
55
|
-
|
|
55
|
+
optional: Values are always marked optional.
|
|
56
56
|
|
|
57
57
|
Args:
|
|
58
58
|
col: The column to return values for.
|
|
@@ -91,7 +91,7 @@ def create_interface(table: Table, pk_only: bool = False, mode: MODE_TYPE = "def
|
|
|
91
91
|
Modes:
|
|
92
92
|
default: Values are marked as (not)required based on the column schema.
|
|
93
93
|
required: Values are always marked required.
|
|
94
|
-
|
|
94
|
+
optional: Values are always marked optional.
|
|
95
95
|
|
|
96
96
|
Args:
|
|
97
97
|
table: The SQLAlchemy table to create an interface for.
|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "auto-rest-api"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.10"
|
|
8
8
|
readme = "README.md"
|
|
9
9
|
description = "Automatically map database schemas and deploy per-table REST API endpoints."
|
|
10
10
|
authors = [{ name = "Better HPC LLC" }]
|
|
@@ -26,20 +26,20 @@ classifiers = [
|
|
|
26
26
|
]
|
|
27
27
|
requires-python = ">=3.11,<4"
|
|
28
28
|
dependencies = [
|
|
29
|
-
"aiomysql
|
|
30
|
-
"aioodbc
|
|
31
|
-
"aiosqlite
|
|
32
|
-
"asgi-correlation-id
|
|
33
|
-
"asyncpg
|
|
29
|
+
"aiomysql==0.3.2",
|
|
30
|
+
"aioodbc==0.5.0",
|
|
31
|
+
"aiosqlite==0.20.0",
|
|
32
|
+
"asgi-correlation-id==4.3.4",
|
|
33
|
+
"asyncpg==0.30.0",
|
|
34
34
|
"colorlog (>=6.9.0,<7.0.0)",
|
|
35
|
-
"fastapi
|
|
36
|
-
"greenlet
|
|
37
|
-
"httpx
|
|
38
|
-
"oracledb
|
|
39
|
-
"pydantic
|
|
40
|
-
"pyyaml
|
|
41
|
-
"sqlalchemy
|
|
42
|
-
"uvicorn
|
|
35
|
+
"fastapi==0.120.1",
|
|
36
|
+
"greenlet==3.2.4",
|
|
37
|
+
"httpx==0.28.1",
|
|
38
|
+
"oracledb==2.5.1",
|
|
39
|
+
"pydantic==2.12.3",
|
|
40
|
+
"pyyaml==6.0.3",
|
|
41
|
+
"sqlalchemy==2.0.44",
|
|
42
|
+
"uvicorn==0.38.0",
|
|
43
43
|
]
|
|
44
44
|
|
|
45
45
|
[tool.poetry]
|
|
@@ -52,8 +52,8 @@ coverage = "*"
|
|
|
52
52
|
|
|
53
53
|
[tool.poetry.group.docs.dependencies]
|
|
54
54
|
mkdocs = "^1.6.1"
|
|
55
|
-
mkdocs-material = "^9.6.
|
|
56
|
-
mkdocstrings-python = "^1.
|
|
55
|
+
mkdocs-material = "^9.6.18"
|
|
56
|
+
mkdocstrings-python = "^1.18.2"
|
|
57
57
|
|
|
58
58
|
[tool.poetry.scripts]
|
|
59
59
|
auto-rest = "auto_rest.__main__:main"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|