type-bridge 2.3.0__tar.gz → 2.3.2__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.0 → type_bridge-2.3.2}/PKG-INFO +5 -5
- {type_bridge-2.3.0 → type_bridge-2.3.2}/pyproject.toml +8 -8
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/__init__.py +1 -1
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/typedb_driver.py +6 -6
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/version.py +1 -1
- {type_bridge-2.3.0 → type_bridge-2.3.2}/.gitignore +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/LICENSE +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/README.md +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/_backend.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/_runtime_projection.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/_rust.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/_rust_runtime.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/attribute/__init__.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/attribute/base.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/attribute/boolean.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/attribute/date.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/attribute/datetime.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/attribute/datetimetz.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/attribute/decimal.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/attribute/double.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/attribute/duration.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/attribute/flags.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/attribute/integer.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/attribute/numeric.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/attribute/string.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/coercion.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/crud/__init__.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/crud/aggregates.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/crud/exceptions.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/crud/formatting.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/crud/has_lookup.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/crud/hooks.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/crud/lookup.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/crud/patterns.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/crud/role_lookup.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/crud/role_players.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/crud/rust_manager.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/crud/strategies.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/crud/typedb_manager.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/crud/types.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/crud/utils.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/expressions/__init__.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/expressions/aggregate.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/expressions/arithmetic.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/expressions/base.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/expressions/boolean.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/expressions/builtin.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/expressions/comparison.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/expressions/functions.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/expressions/iid.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/expressions/role_player.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/expressions/string.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/expressions/utils.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/failure.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/fields/__init__.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/fields/_generated_descriptors.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/fields/base.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/fields/role.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/__init__.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/__main__.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/_adoption_authority.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/_adoption_import.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/_archive_base.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/_archive_imports.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/_lower.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/_operations.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/_ref.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/exceptions.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/introspection.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/loader.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/sidecar.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/snapshots.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/state.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/state_schema.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/migration/utils.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/models/__init__.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/models/base.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/models/entity.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/models/registry.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/models/relation.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/models/role.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/models/schema_scanner.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/models/utils.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/plan.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/proxy.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/py.typed +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/query/__init__.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/query/ast.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/query/compiler.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/query/parser.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/query_v2.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/reserved_words.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/rules.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/session.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/typeql/__init__.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/typeql/_schema.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/type_bridge/typeql/annotations.py +0 -0
- {type_bridge-2.3.0 → type_bridge-2.3.2}/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.2
|
|
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.2
|
|
27
27
|
Requires-Dist: typer>=0.15.0
|
|
28
28
|
Requires-Dist: typing-extensions>=4.12
|
|
29
29
|
Provides-Extra: dev
|
|
@@ -35,7 +35,7 @@ Requires-Dist: pytest-order>=1.2.0; extra == 'dev'
|
|
|
35
35
|
Requires-Dist: pytest>=9.0.1; extra == 'dev'
|
|
36
36
|
Requires-Dist: pyyaml>=6.0.3; extra == 'dev'
|
|
37
37
|
Requires-Dist: ruff==0.15.21; extra == 'dev'
|
|
38
|
-
Requires-Dist: typedb-driver==3.
|
|
38
|
+
Requires-Dist: typedb-driver==3.14.0; (python_version >= '3.14') and extra == 'dev'
|
|
39
39
|
Requires-Dist: typedb-driver~=3.11.5; (python_version < '3.14') and extra == 'dev'
|
|
40
40
|
Provides-Extra: docs
|
|
41
41
|
Requires-Dist: mkdocs-gen-files>=0.5; extra == 'docs'
|
|
@@ -45,8 +45,8 @@ Requires-Dist: mkdocs-section-index>=0.3; extra == 'docs'
|
|
|
45
45
|
Requires-Dist: mkdocs>=1.6; extra == 'docs'
|
|
46
46
|
Requires-Dist: mkdocstrings[python]>=0.27; extra == 'docs'
|
|
47
47
|
Provides-Extra: typedb-driver
|
|
48
|
-
Requires-Dist: typedb-driver<3.
|
|
49
|
-
Requires-Dist: typedb-driver<3.
|
|
48
|
+
Requires-Dist: typedb-driver<3.15,>=3.11; (python_version < '3.14') and extra == 'typedb-driver'
|
|
49
|
+
Requires-Dist: typedb-driver<3.15,>=3.12.3; (python_version >= '3.14') and extra == 'typedb-driver'
|
|
50
50
|
Description-Content-Type: text/markdown
|
|
51
51
|
|
|
52
52
|
<p align="center">
|
|
@@ -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.2"
|
|
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.2",
|
|
34
34
|
"typing-extensions>=4.12",
|
|
35
35
|
]
|
|
36
36
|
|
|
@@ -54,11 +54,11 @@ dev = [
|
|
|
54
54
|
# CPython 3.12 and 3.13 use the band-8 driver matching the shared 3.11.5 test
|
|
55
55
|
# server. The first native driver line supporting CPython 3.14 is band 9,
|
|
56
56
|
# so that interpreter has a dedicated native-constructor smoke; direct
|
|
57
|
-
# connections from that lane require a 3.12 or 3.
|
|
58
|
-
# uses the embedded Rust runtime and serves TypeDB 3.11
|
|
59
|
-
# every supported interpreter.
|
|
57
|
+
# connections from that lane require a 3.12, 3.13 or 3.14 server. The ORM
|
|
58
|
+
# itself uses the embedded Rust runtime and serves TypeDB 3.11 through 3.14
|
|
59
|
+
# on every supported interpreter.
|
|
60
60
|
"typedb-driver~=3.11.5; python_version < '3.14'",
|
|
61
|
-
"typedb-driver==3.
|
|
61
|
+
"typedb-driver==3.14.0; python_version >= '3.14'",
|
|
62
62
|
"pytest>=9.0.1",
|
|
63
63
|
"pytest-asyncio>=1.3.0",
|
|
64
64
|
"pytest-order>=1.2.0",
|
|
@@ -80,8 +80,8 @@ docs = [
|
|
|
80
80
|
"mkdocs-section-index>=0.3",
|
|
81
81
|
]
|
|
82
82
|
typedb-driver = [
|
|
83
|
-
"typedb-driver>=3.11,<3.
|
|
84
|
-
"typedb-driver>=3.12.3,<3.
|
|
83
|
+
"typedb-driver>=3.11,<3.15; python_version < '3.14'",
|
|
84
|
+
"typedb-driver>=3.12.3,<3.15; python_version >= '3.14'",
|
|
85
85
|
]
|
|
86
86
|
|
|
87
87
|
[tool.ty.environment]
|
|
@@ -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.2"
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
_LAZY_EXPORTS: dict[str, tuple[str, str]] = {
|
|
@@ -93,7 +93,7 @@ def _ensure_driver_interpreter_supported(installed: str) -> int | None:
|
|
|
93
93
|
Driver metadata import can succeed even when its bundled native library is
|
|
94
94
|
incompatible with the running interpreter. Keep this check ahead of every
|
|
95
95
|
native constructor so a manually installed 3.11 wheel cannot crash
|
|
96
|
-
CPython 3.14 before TypeBridge can report the supported
|
|
96
|
+
CPython 3.14 before TypeBridge can report the supported band-9 driver path.
|
|
97
97
|
"""
|
|
98
98
|
import type_bridge.version as _version # local import avoids circular dependency
|
|
99
99
|
|
|
@@ -102,7 +102,7 @@ def _ensure_driver_interpreter_supported(installed: str) -> int | None:
|
|
|
102
102
|
raise _version.UnsupportedVersionError(
|
|
103
103
|
f"Installed typedb-driver {installed!r} has no compatible native wheel "
|
|
104
104
|
"for CPython 3.14. Install `type-bridge[typedb-driver]` "
|
|
105
|
-
"(
|
|
105
|
+
"(a band-9 driver line) and target TypeDB 3.12, 3.13 or 3.14."
|
|
106
106
|
)
|
|
107
107
|
return driver_band
|
|
108
108
|
|
|
@@ -127,7 +127,7 @@ def create_driver_options(
|
|
|
127
127
|
"""Create TypeDB driver options for the retained driver lines.
|
|
128
128
|
|
|
129
129
|
The same band map that drives the version gate drives option construction.
|
|
130
|
-
Supported 3.11, 3.12, and 3.
|
|
130
|
+
Supported 3.11, 3.12, 3.13 and 3.14 drivers all use the positional
|
|
131
131
|
``DriverOptions(tls_config)`` form.
|
|
132
132
|
|
|
133
133
|
Args:
|
|
@@ -166,8 +166,8 @@ def create_driver_options(
|
|
|
166
166
|
max_l = _version.max_supported_line()
|
|
167
167
|
if sys.version_info >= (3, 14):
|
|
168
168
|
remediation = (
|
|
169
|
-
"Install `type-bridge[typedb-driver]` (
|
|
170
|
-
"CPython 3.14) and target TypeDB 3.12 or 3.
|
|
169
|
+
"Install `type-bridge[typedb-driver]` (a band-9 driver line on "
|
|
170
|
+
"CPython 3.14) and target TypeDB 3.12, 3.13 or 3.14."
|
|
171
171
|
)
|
|
172
172
|
else:
|
|
173
173
|
remediation = (
|
|
@@ -209,7 +209,7 @@ def embedded_driver_versions() -> dict[int, str]:
|
|
|
209
209
|
"""Return all driver versions compiled into the Rust runtime, keyed by band.
|
|
210
210
|
|
|
211
211
|
Delegates to ``type_bridge_core.embedded_driver_versions``. The default
|
|
212
|
-
build returns ``{8: "3.11.5", 9: "3.
|
|
212
|
+
build returns ``{8: "3.11.5", 9: "3.14.0"}``; a
|
|
213
213
|
single-band build returns only the one entry for its compiled band.
|
|
214
214
|
"""
|
|
215
215
|
return _core.embedded_driver_versions()
|
|
@@ -65,7 +65,7 @@ def ensure_runtime_supported(server: str) -> None:
|
|
|
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
|
-
supported window (3.11–3.
|
|
68
|
+
supported window (3.11–3.14; confirmed 3.12, 3.13 and 3.14 servers normally
|
|
69
69
|
negotiate embedded band 9, with band 8 retained for discovery/fallback). Core makes
|
|
70
70
|
the decision using band-set intersection —
|
|
71
71
|
the band set is derived from the compiled features in the Rust runtime
|
|
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
|