tigrbl 0.3.3__py3-none-any.whl → 0.3.3.dev1__py3-none-any.whl

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/app/tigrbl_app.py CHANGED
@@ -1,7 +1,6 @@
1
1
  # tigrbl/v3/app/tigrbl_app.py
2
2
  from __future__ import annotations
3
3
 
4
- import asyncio
5
4
  import copy
6
5
  import inspect
7
6
  from types import SimpleNamespace
@@ -260,13 +259,7 @@ class TigrblApp(_App):
260
259
  if inspect.isawaitable(item):
261
260
  await item
262
261
 
263
- try:
264
- loop = asyncio.get_running_loop()
265
- except RuntimeError:
266
- asyncio.run(_inner())
267
- return None
268
-
269
- return loop.create_task(_inner())
262
+ return _inner()
270
263
 
271
264
  async def rpc_call(
272
265
  self,
tigrbl/table/_base.py CHANGED
@@ -252,27 +252,16 @@ class Base(DeclarativeBase):
252
252
  # 0) Remove any previously registered class with the same module path.
253
253
  try:
254
254
  reg = Base.registry._class_registry
255
- name = cls.__name__
256
- existing = reg.get(name)
255
+ key = f"{cls.__module__}.{cls.__name__}"
256
+ existing = reg.get(key)
257
257
  if existing is not None:
258
258
  try:
259
259
  Base.registry._dispose_cls(existing)
260
260
  except Exception:
261
261
  pass
262
- reg.pop(name, None)
263
- module_reg = reg.get("_sa_module_registry")
264
- if module_reg is not None:
265
- marker = module_reg
266
- for part in cls.__module__.split("."):
267
- contents = getattr(marker, "contents", None)
268
- if not isinstance(contents, dict) or part not in contents:
269
- marker = None
270
- break
271
- marker = contents.get(part)
272
- if marker is not None and isinstance(
273
- getattr(marker, "contents", None), dict
274
- ):
275
- marker.contents.pop(name, None)
262
+ reg.pop(key, None)
263
+ if reg.get(cls.__name__) is existing:
264
+ reg.pop(cls.__name__, None)
276
265
  except Exception:
277
266
  pass
278
267
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tigrbl
3
- Version: 0.3.3
3
+ Version: 0.3.3.dev1
4
4
  Summary: Automatic API generation tools by Swarmauri.
5
5
  License-Expression: Apache-2.0
6
6
  License-File: LICENSE
@@ -12,7 +12,7 @@ tigrbl/app/_model_registry.py,sha256=v6UoDd7hmv5J4DpNEV13BOgIKIcKou10w3zyZVPd-po
12
12
  tigrbl/app/app_spec.py,sha256=RzVHibgoIyQQtlQzRtrWDa4pSD7PpWsysgfztJ1tSRY,1474
13
13
  tigrbl/app/mro_collect.py,sha256=W-kOoKGUSW9dtsKaPuMkN5sLBw_0-H8MTqps1KPwPyI,3351
14
14
  tigrbl/app/shortcuts.py,sha256=PEMbmwaqW8a3jkcHM5AXsYA2mmuXGFpOTnqlJnUX9Lo,1775
15
- tigrbl/app/tigrbl_app.py,sha256=xM4tCdW43A-7C7-ne1okp3q2CsQynBWIgydxnZmlDlY,14836
15
+ tigrbl/app/tigrbl_app.py,sha256=vN1mlMoUy7ENWKBbVGuY_OFjYjvlf3nv5ybELvfGqgI,14656
16
16
  tigrbl/bindings/__init__.py,sha256=GcM5PTKNLS1Jx__OiAcjLI5yybL40RrA8OzMVPno4_U,2643
17
17
  tigrbl/bindings/api/__init__.py,sha256=ayw4ZBCvvUThQm9PXS6TyVkV1MEYY8YwGcyT4HwWZ7c,395
18
18
  tigrbl/bindings/api/common.py,sha256=ivTUwC35QKj0-5op_dksHx4vTsf-fWLYJjwHGuFMKcA,3599
@@ -238,7 +238,7 @@ tigrbl/system/diagnostics/router.py,sha256=5RAv6LPoN4luGwIPnYGak66uT9FslYPc-d_GK
238
238
  tigrbl/system/diagnostics/utils.py,sha256=qxC8pUNK2lQKh5cGlF-PSFA-cfJFLlAHW0-iEosvPgg,1172
239
239
  tigrbl/system/uvicorn.py,sha256=ogvIqfv-1CxAPZ8BADucaNAy_ePsLA3IVIZxmhdfL3A,1526
240
240
  tigrbl/table/__init__.py,sha256=yyP9iZBUJh-D7TCy9WQIvMXKL3ztyX-EXdTK4RTE7iw,207
241
- tigrbl/table/_base.py,sha256=k2ZEaMCygpoCMFEwOC2L02oe4cR8W3zwn2NInZcIcHI,18170
241
+ tigrbl/table/_base.py,sha256=JKZ6Q_2bxDyedw43HkBtinfJFGzWuH3ISRXWu_cnb4c,17660
242
242
  tigrbl/table/_table.py,sha256=B7ft2SMnbp3aTWKO44M4EWTHmzFKyQlpdj-3QULRaGk,1740
243
243
  tigrbl/table/mro_collect.py,sha256=PbuSZnUvVbs3NCe2otie7pvcjxeF54hSiVp_VywclSA,2733
244
244
  tigrbl/table/shortcuts.py,sha256=-IZAZyMTsiCdKV0w7nq1C2YBsB6iE_uNGJb-PatlO8I,1716
@@ -261,7 +261,7 @@ tigrbl/types/request_extras_provider.py,sha256=JOIpzx1PYA2AYYvkMiXrxlwpBLOPD2cQa
261
261
  tigrbl/types/response_extras_provider.py,sha256=sFB0R3vyUqmpT-o8983hH9FAlOq6-wwNVK6vfuCPHCg,653
262
262
  tigrbl/types/table_config_provider.py,sha256=EkfOhy9UDfy7EgiZddw9KIl5tRujRjXJlr4cSk1Rm5k,361
263
263
  tigrbl/types/uuid.py,sha256=pD-JrhS0L2GXeJ0Hv_oKzRuiXmxHDTVoMqExO48iqZE,1993
264
- tigrbl-0.3.3.dist-info/METADATA,sha256=jzA4dOJopmMt5CDrysJvNm2BrJDlnqLGQttYTIHp600,17848
265
- tigrbl-0.3.3.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
266
- tigrbl-0.3.3.dist-info/licenses/LICENSE,sha256=djUXOlCxLVszShEpZXshZ7v33G-2qIC_j9KXpWKZSzQ,11359
267
- tigrbl-0.3.3.dist-info/RECORD,,
264
+ tigrbl-0.3.3.dev1.dist-info/METADATA,sha256=CExkdEPpGN2jQMDVYfYSoPO8m1ev6hPqUoTi8IdA6do,17853
265
+ tigrbl-0.3.3.dev1.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
266
+ tigrbl-0.3.3.dev1.dist-info/licenses/LICENSE,sha256=djUXOlCxLVszShEpZXshZ7v33G-2qIC_j9KXpWKZSzQ,11359
267
+ tigrbl-0.3.3.dev1.dist-info/RECORD,,