sqlalchemy-studio 0.1.3__tar.gz → 0.1.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlalchemy-studio
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: FastAPI studio for inspecting SQLAlchemy databases
5
5
  Author-email: Xursand Qarlibayev <coderxuz2009@gmail.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sqlalchemy-studio"
7
- version = "0.1.3"
7
+ version = "0.1.4"
8
8
  description = "FastAPI studio for inspecting SQLAlchemy databases"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -8,12 +8,12 @@ from importlib.resources import files
8
8
  import uvicorn
9
9
 
10
10
 
11
- from studio.backend import create_tables_router
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 studio.backend import FilterRequest
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
 
@@ -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]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sqlalchemy-studio
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: FastAPI studio for inspecting SQLAlchemy databases
5
5
  Author-email: Xursand Qarlibayev <coderxuz2009@gmail.com>
6
6
  License: MIT