sqlalchemy-studio 0.1.3__tar.gz → 0.1.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.
- {sqlalchemy_studio-0.1.3 → sqlalchemy_studio-0.1.5}/PKG-INFO +1 -1
- {sqlalchemy_studio-0.1.3 → sqlalchemy_studio-0.1.5}/pyproject.toml +1 -1
- {sqlalchemy_studio-0.1.3 → sqlalchemy_studio-0.1.5}/sqlalchemy_studio/Studio.py +8 -8
- {sqlalchemy_studio-0.1.3 → sqlalchemy_studio-0.1.5}/sqlalchemy_studio.egg-info/PKG-INFO +1 -1
- {sqlalchemy_studio-0.1.3 → sqlalchemy_studio-0.1.5}/README.md +0 -0
- {sqlalchemy_studio-0.1.3 → sqlalchemy_studio-0.1.5}/setup.cfg +0 -0
- {sqlalchemy_studio-0.1.3 → sqlalchemy_studio-0.1.5}/sqlalchemy_studio/__init__.py +0 -0
- {sqlalchemy_studio-0.1.3 → sqlalchemy_studio-0.1.5}/sqlalchemy_studio/backend.py +0 -0
- {sqlalchemy_studio-0.1.3 → sqlalchemy_studio-0.1.5}/sqlalchemy_studio.egg-info/SOURCES.txt +0 -0
- {sqlalchemy_studio-0.1.3 → sqlalchemy_studio-0.1.5}/sqlalchemy_studio.egg-info/dependency_links.txt +0 -0
- {sqlalchemy_studio-0.1.3 → sqlalchemy_studio-0.1.5}/sqlalchemy_studio.egg-info/requires.txt +0 -0
- {sqlalchemy_studio-0.1.3 → sqlalchemy_studio-0.1.5}/sqlalchemy_studio.egg-info/top_level.txt +0 -0
|
@@ -8,12 +8,12 @@ from importlib.resources import files
|
|
|
8
8
|
import uvicorn
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
from
|
|
11
|
+
from sqlalchemy_studio.backend import create_tables_router
|
|
12
12
|
|
|
13
13
|
from typing import Self, TypedDict, Any, cast, TYPE_CHECKING
|
|
14
14
|
|
|
15
15
|
if TYPE_CHECKING:
|
|
16
|
-
from
|
|
16
|
+
from sqlalchemy_studio.backend import FilterRequest
|
|
17
17
|
|
|
18
18
|
engine = create_engine("sqlite:///test.db")
|
|
19
19
|
|
|
@@ -50,7 +50,7 @@ class Studio:
|
|
|
50
50
|
self._register_routes()
|
|
51
51
|
# Serve built frontend from the `static` directory at the project root.
|
|
52
52
|
# Keep this catch-all mount after API routes so `/api/*` resolves first.
|
|
53
|
-
|
|
53
|
+
|
|
54
54
|
self._set_cors()
|
|
55
55
|
self.base = base
|
|
56
56
|
|
|
@@ -71,7 +71,7 @@ class Studio:
|
|
|
71
71
|
|
|
72
72
|
def _register_routes(self):
|
|
73
73
|
self.app.include_router(create_tables_router(self))
|
|
74
|
-
static_dir = files("
|
|
74
|
+
static_dir = files("sqlalchemy_studio").joinpath("static")
|
|
75
75
|
if static_dir.is_dir():
|
|
76
76
|
self.app.mount(
|
|
77
77
|
"/",
|
|
@@ -80,11 +80,11 @@ class Studio:
|
|
|
80
80
|
)
|
|
81
81
|
|
|
82
82
|
def run(self, port: int = 8000):
|
|
83
|
-
print("-"*50)
|
|
84
|
-
print("-"*50)
|
|
83
|
+
print("-" * 50)
|
|
84
|
+
print("-" * 50)
|
|
85
85
|
print(f"link:http://localhost:{port}")
|
|
86
|
-
print("-"*50)
|
|
87
|
-
print("-"*50)
|
|
86
|
+
print("-" * 50)
|
|
87
|
+
print("-" * 50)
|
|
88
88
|
uvicorn.run(self.app, host="0.0.0.0", port=port)
|
|
89
89
|
|
|
90
90
|
def show_tables(self: Self) -> list[TablesType]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sqlalchemy_studio-0.1.3 → sqlalchemy_studio-0.1.5}/sqlalchemy_studio.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{sqlalchemy_studio-0.1.3 → sqlalchemy_studio-0.1.5}/sqlalchemy_studio.egg-info/top_level.txt
RENAMED
|
File without changes
|