type-bridge 2.3.2__tar.gz → 2.3.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.
- {type_bridge-2.3.2 → type_bridge-2.3.4}/PKG-INFO +2 -2
- {type_bridge-2.3.2 → type_bridge-2.3.4}/pyproject.toml +2 -2
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/__init__.py +1 -1
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/version.py +14 -12
- {type_bridge-2.3.2 → type_bridge-2.3.4}/.gitignore +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/LICENSE +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/README.md +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/_backend.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/_runtime_projection.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/_rust.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/_rust_runtime.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/attribute/__init__.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/attribute/base.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/attribute/boolean.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/attribute/date.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/attribute/datetime.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/attribute/datetimetz.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/attribute/decimal.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/attribute/double.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/attribute/duration.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/attribute/flags.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/attribute/integer.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/attribute/numeric.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/attribute/string.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/coercion.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/crud/__init__.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/crud/aggregates.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/crud/exceptions.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/crud/formatting.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/crud/has_lookup.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/crud/hooks.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/crud/lookup.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/crud/patterns.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/crud/role_lookup.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/crud/role_players.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/crud/rust_manager.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/crud/strategies.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/crud/typedb_manager.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/crud/types.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/crud/utils.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/expressions/__init__.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/expressions/aggregate.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/expressions/arithmetic.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/expressions/base.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/expressions/boolean.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/expressions/builtin.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/expressions/comparison.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/expressions/functions.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/expressions/iid.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/expressions/role_player.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/expressions/string.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/expressions/utils.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/failure.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/fields/__init__.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/fields/_generated_descriptors.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/fields/base.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/fields/role.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/__init__.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/__main__.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/_adoption_authority.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/_adoption_import.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/_archive_base.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/_archive_imports.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/_lower.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/_operations.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/_ref.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/exceptions.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/introspection.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/loader.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/sidecar.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/snapshots.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/state.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/state_schema.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/migration/utils.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/models/__init__.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/models/base.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/models/entity.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/models/registry.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/models/relation.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/models/role.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/models/schema_scanner.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/models/utils.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/plan.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/proxy.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/py.typed +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/query/__init__.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/query/ast.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/query/compiler.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/query/parser.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/query_v2.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/reserved_words.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/rules.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/session.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/typedb_driver.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/typeql/__init__.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/typeql/_schema.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/typeql/annotations.py +0 -0
- {type_bridge-2.3.2 → type_bridge-2.3.4}/type_bridge/validation.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: type-bridge
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.4
|
|
4
4
|
Summary: Typed Python, TypeScript, Rust, and C application tooling for TypeDB
|
|
5
5
|
Project-URL: Homepage, https://github.com/ds1sqe/type-bridge
|
|
6
6
|
Project-URL: Repository, https://github.com/ds1sqe/type-bridge
|
|
@@ -23,7 +23,7 @@ Requires-Python: <3.15,>=3.12
|
|
|
23
23
|
Requires-Dist: isodate==0.7.2
|
|
24
24
|
Requires-Dist: jinja2>=3.1.0
|
|
25
25
|
Requires-Dist: pydantic>=2.12.4
|
|
26
|
-
Requires-Dist: type-bridge-core==2.3.
|
|
26
|
+
Requires-Dist: type-bridge-core==2.3.4
|
|
27
27
|
Requires-Dist: typer>=0.15.0
|
|
28
28
|
Requires-Dist: typing-extensions>=4.12
|
|
29
29
|
Provides-Extra: dev
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "type-bridge"
|
|
7
|
-
version = "2.3.
|
|
7
|
+
version = "2.3.4"
|
|
8
8
|
description = "Typed Python, TypeScript, Rust, and C application tooling for TypeDB"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.12,<3.15"
|
|
@@ -30,7 +30,7 @@ dependencies = [
|
|
|
30
30
|
"jinja2>=3.1.0",
|
|
31
31
|
"typer>=0.15.0",
|
|
32
32
|
# The facade and native semantic engine are one release unit.
|
|
33
|
-
"type-bridge-core==2.3.
|
|
33
|
+
"type-bridge-core==2.3.4",
|
|
34
34
|
"typing-extensions>=4.12",
|
|
35
35
|
]
|
|
36
36
|
|
|
@@ -26,7 +26,7 @@ if TYPE_CHECKING:
|
|
|
26
26
|
from type_bridge.migration.exceptions import SchemaConflictError, SchemaValidationError
|
|
27
27
|
from type_bridge.migration.introspection import SchemaIntrospector
|
|
28
28
|
|
|
29
|
-
__version__ = "2.3.
|
|
29
|
+
__version__ = "2.3.4"
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
_LAZY_EXPORTS: dict[str, tuple[str, str]] = {
|
|
@@ -24,7 +24,7 @@ from type_bridge_core import min_supported_version as min_supported_version
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class UnsupportedVersionError(type_bridge_core.VersionError):
|
|
27
|
-
"""Raised when the driver/server pair
|
|
27
|
+
"""Raised when the driver/server pair is below the admission floor or spans
|
|
28
28
|
incompatible protocol bands.
|
|
29
29
|
|
|
30
30
|
The exception message contains both detected version strings and a
|
|
@@ -38,7 +38,7 @@ class UnsupportedVersionError(type_bridge_core.VersionError):
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
def ensure_supported(driver: str, server: str) -> None:
|
|
41
|
-
"""Assert that a driver/server
|
|
41
|
+
"""Assert that a driver/server pair meets the admission floor and protocol band.
|
|
42
42
|
|
|
43
43
|
Translates ``type_bridge_core.VersionError`` into
|
|
44
44
|
:class:`UnsupportedVersionError` so all version-gate failures surface as the
|
|
@@ -50,7 +50,7 @@ def ensure_supported(driver: str, server: str) -> None:
|
|
|
50
50
|
server: Detected server version string (e.g. ``"3.11.5"``).
|
|
51
51
|
|
|
52
52
|
Raises:
|
|
53
|
-
UnsupportedVersionError: When the pair
|
|
53
|
+
UnsupportedVersionError: When the pair is below the admission floor or crosses
|
|
54
54
|
protocol bands. The message names both versions and a remediation
|
|
55
55
|
hint.
|
|
56
56
|
"""
|
|
@@ -61,15 +61,18 @@ def ensure_supported(driver: str, server: str) -> None:
|
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
def ensure_runtime_supported(server: str) -> None:
|
|
64
|
-
"""
|
|
64
|
+
"""Check the embedded runtime's version admission for the detected server.
|
|
65
65
|
|
|
66
66
|
Every TypeBridge transaction executes through the Rust runtime's own
|
|
67
67
|
typedb-driver, and the default build embeds drivers covering the full
|
|
68
|
-
|
|
69
|
-
negotiate embedded band 9, with band 8 retained for discovery/fallback).
|
|
68
|
+
measured lines (3.11–3.14; confirmed 3.12, 3.13 and 3.14 servers normally
|
|
69
|
+
negotiate embedded band 9, with band 8 retained for discovery/fallback).
|
|
70
|
+
Newer versions are admitted using the newest measured assumptions and
|
|
71
|
+
are not tested or supported by this TypeBridge release. The runtime emits
|
|
72
|
+
one warning per connection to a newer line. Core makes
|
|
70
73
|
the decision using band-set intersection —
|
|
71
74
|
the band set is derived from the compiled features in the Rust runtime
|
|
72
|
-
(``check_server_supported`` reads them directly), so any
|
|
75
|
+
(``check_server_supported`` reads them directly), so any admitted server
|
|
73
76
|
is accepted by the default build. This wrapper only reframes the failure
|
|
74
77
|
— the "install a different typedb-driver" remediation does not apply to a
|
|
75
78
|
driver compiled into the wheel.
|
|
@@ -78,20 +81,19 @@ def ensure_runtime_supported(server: str) -> None:
|
|
|
78
81
|
server: Detected server version string.
|
|
79
82
|
|
|
80
83
|
Raises:
|
|
81
|
-
UnsupportedVersionError: When the server is
|
|
84
|
+
UnsupportedVersionError: When the server is below the admission floor
|
|
82
85
|
or (in a non-default single-band build) its band is not compiled in.
|
|
83
|
-
The message names the
|
|
86
|
+
The message names the admission floor and gives wheel-appropriate
|
|
84
87
|
remediation.
|
|
85
88
|
"""
|
|
86
89
|
try:
|
|
87
90
|
_check_server_supported(server)
|
|
88
91
|
except type_bridge_core.VersionError as exc:
|
|
89
92
|
min_v = min_supported_version()
|
|
90
|
-
max_l = max_supported_line()
|
|
91
93
|
raise UnsupportedVersionError(
|
|
92
94
|
f"TypeBridge's embedded runtime does not support server {server}: {exc} "
|
|
93
|
-
f"(
|
|
94
|
-
f"
|
|
95
|
+
f"(minimum admitted version {min_v}; use a type-bridge release "
|
|
96
|
+
f"with a compatible embedded protocol driver)"
|
|
95
97
|
) from exc
|
|
96
98
|
|
|
97
99
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|