tigrbl_engine_csv 0.1.1.dev7__tar.gz → 0.1.1.dev9__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.
- {tigrbl_engine_csv-0.1.1.dev7 → tigrbl_engine_csv-0.1.1.dev9}/PKG-INFO +1 -1
- {tigrbl_engine_csv-0.1.1.dev7 → tigrbl_engine_csv-0.1.1.dev9}/pyproject.toml +2 -1
- {tigrbl_engine_csv-0.1.1.dev7 → tigrbl_engine_csv-0.1.1.dev9}/src/tigrbl_engine_csv/__init__.py +9 -1
- {tigrbl_engine_csv-0.1.1.dev7 → tigrbl_engine_csv-0.1.1.dev9}/src/tigrbl_engine_csv/session.py +24 -0
- {tigrbl_engine_csv-0.1.1.dev7 → tigrbl_engine_csv-0.1.1.dev9}/tests/test_tigrblapp_rpc_usage.py +1 -1
- {tigrbl_engine_csv-0.1.1.dev7 → tigrbl_engine_csv-0.1.1.dev9}/.gitignore +0 -0
- {tigrbl_engine_csv-0.1.1.dev7 → tigrbl_engine_csv-0.1.1.dev9}/LICENSE +0 -0
- {tigrbl_engine_csv-0.1.1.dev7 → tigrbl_engine_csv-0.1.1.dev9}/README.md +0 -0
- {tigrbl_engine_csv-0.1.1.dev7 → tigrbl_engine_csv-0.1.1.dev9}/distout/.gitignore +0 -0
- {tigrbl_engine_csv-0.1.1.dev7 → tigrbl_engine_csv-0.1.1.dev9}/src/tigrbl_engine_csv/engine.py +0 -0
- {tigrbl_engine_csv-0.1.1.dev7 → tigrbl_engine_csv-0.1.1.dev9}/tests/test_smoke.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tigrbl_engine_csv
|
|
3
|
-
Version: 0.1.1.
|
|
3
|
+
Version: 0.1.1.dev9
|
|
4
4
|
Summary: CSV engine plugin for tigrbl backed by pandas DataFrames.
|
|
5
5
|
Project-URL: Homepage, https://github.com/swarmauri/swarmauri-sdk
|
|
6
6
|
Author-email: Jacob Stewart <jacob@swarmauri.com>
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tigrbl_engine_csv"
|
|
7
|
-
version = "0.1.1.
|
|
7
|
+
version = "0.1.1.dev9"
|
|
8
8
|
description = "CSV engine plugin for tigrbl backed by pandas DataFrames."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { file = "LICENSE" }
|
|
@@ -35,4 +35,5 @@ dev = [
|
|
|
35
35
|
"pytest>=8.0.0",
|
|
36
36
|
"pytest-asyncio>=0.24.0",
|
|
37
37
|
"sqlalchemy>=2.0",
|
|
38
|
+
"ruff>=0.11.0",
|
|
38
39
|
]
|
{tigrbl_engine_csv-0.1.1.dev7 → tigrbl_engine_csv-0.1.1.dev9}/src/tigrbl_engine_csv/__init__.py
RENAMED
|
@@ -2,11 +2,19 @@ from .engine import CsvEngine, csv_capabilities, csv_engine
|
|
|
2
2
|
from .session import CsvSession
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
class _Registration:
|
|
6
|
+
def build(self, *, mapping, spec, dsn):
|
|
7
|
+
return csv_engine(mapping=mapping, spec=spec, dsn=dsn)
|
|
8
|
+
|
|
9
|
+
def capabilities(self, *, spec, mapping=None):
|
|
10
|
+
return csv_capabilities()
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
def register() -> None:
|
|
6
14
|
"""Entry-point hook invoked by tigrbl to register this engine."""
|
|
7
15
|
from tigrbl.engine.registry import register_engine
|
|
8
16
|
|
|
9
|
-
register_engine("csv",
|
|
17
|
+
register_engine("csv", _Registration())
|
|
10
18
|
|
|
11
19
|
|
|
12
20
|
__all__ = [
|
{tigrbl_engine_csv-0.1.1.dev7 → tigrbl_engine_csv-0.1.1.dev9}/src/tigrbl_engine_csv/session.py
RENAMED
|
@@ -71,3 +71,27 @@ class CsvSession(TigrblSessionBase):
|
|
|
71
71
|
|
|
72
72
|
async def run_sync(self, fn: Callable[[Any], Any]) -> Any:
|
|
73
73
|
return await self._inner.run_sync(fn)
|
|
74
|
+
|
|
75
|
+
async def begin(self) -> None:
|
|
76
|
+
await self._tx_begin_impl()
|
|
77
|
+
|
|
78
|
+
async def commit(self) -> None:
|
|
79
|
+
await self._tx_commit_impl()
|
|
80
|
+
|
|
81
|
+
async def rollback(self) -> None:
|
|
82
|
+
await self._tx_rollback_impl()
|
|
83
|
+
|
|
84
|
+
async def flush(self) -> None:
|
|
85
|
+
await self._flush_impl()
|
|
86
|
+
|
|
87
|
+
async def refresh(self, obj: Any) -> None:
|
|
88
|
+
await self._refresh_impl(obj)
|
|
89
|
+
|
|
90
|
+
async def get(self, model: type, ident: Any) -> Any | None:
|
|
91
|
+
return await self._get_impl(model, ident)
|
|
92
|
+
|
|
93
|
+
async def execute(self, stmt: Any) -> Any:
|
|
94
|
+
return await self._execute_impl(stmt)
|
|
95
|
+
|
|
96
|
+
async def close(self) -> None:
|
|
97
|
+
await self._close_impl()
|
{tigrbl_engine_csv-0.1.1.dev7 → tigrbl_engine_csv-0.1.1.dev9}/tests/test_tigrblapp_rpc_usage.py
RENAMED
|
@@ -44,7 +44,7 @@ def app_and_db(tmp_path: Path) -> tuple[TigrblApp, object]:
|
|
|
44
44
|
db = session_factory()
|
|
45
45
|
|
|
46
46
|
api = TigrblApp(engine=spec)
|
|
47
|
-
api.
|
|
47
|
+
api.include_table(CsvWidget, mount_router=False)
|
|
48
48
|
api.initialize()
|
|
49
49
|
return api, db
|
|
50
50
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tigrbl_engine_csv-0.1.1.dev7 → tigrbl_engine_csv-0.1.1.dev9}/src/tigrbl_engine_csv/engine.py
RENAMED
|
File without changes
|
|
File without changes
|