smart-data-engine-sdk 0.1.0__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.
- smart_data_engine_sdk-0.1.0/.gitignore +38 -0
- smart_data_engine_sdk-0.1.0/LICENSE +201 -0
- smart_data_engine_sdk-0.1.0/NOTICE +13 -0
- smart_data_engine_sdk-0.1.0/PKG-INFO +174 -0
- smart_data_engine_sdk-0.1.0/README.md +139 -0
- smart_data_engine_sdk-0.1.0/pyproject.toml +137 -0
- smart_data_engine_sdk-0.1.0/src/sde/__init__.py +318 -0
- smart_data_engine_sdk-0.1.0/src/sde/_cutover_project.py +179 -0
- smart_data_engine_sdk-0.1.0/src/sde/_local_state.py +188 -0
- smart_data_engine_sdk-0.1.0/src/sde/_operator_deadline.py +50 -0
- smart_data_engine_sdk-0.1.0/src/sde/_usage.py +314 -0
- smart_data_engine_sdk-0.1.0/src/sde/bulk.py +79 -0
- smart_data_engine_sdk-0.1.0/src/sde/canonical.py +141 -0
- smart_data_engine_sdk-0.1.0/src/sde/capabilities.py +62 -0
- smart_data_engine_sdk-0.1.0/src/sde/cutover.py +286 -0
- smart_data_engine_sdk-0.1.0/src/sde/engines/__init__.py +0 -0
- smart_data_engine_sdk-0.1.0/src/sde/engines/_clickhouse_connection.py +224 -0
- smart_data_engine_sdk-0.1.0/src/sde/engines/_index_build.py +294 -0
- smart_data_engine_sdk-0.1.0/src/sde/engines/_operator.py +394 -0
- smart_data_engine_sdk-0.1.0/src/sde/engines/_staging.py +222 -0
- smart_data_engine_sdk-0.1.0/src/sde/engines/_storage.py +22 -0
- smart_data_engine_sdk-0.1.0/src/sde/engines/_write_fences.py +271 -0
- smart_data_engine_sdk-0.1.0/src/sde/engines/clickhouse.py +1115 -0
- smart_data_engine_sdk-0.1.0/src/sde/engines/orderbook.py +457 -0
- smart_data_engine_sdk-0.1.0/src/sde/engines/postgres.py +967 -0
- smart_data_engine_sdk-0.1.0/src/sde/entity.py +170 -0
- smart_data_engine_sdk-0.1.0/src/sde/errors.py +103 -0
- smart_data_engine_sdk-0.1.0/src/sde/explain.py +300 -0
- smart_data_engine_sdk-0.1.0/src/sde/frozen_verification.py +152 -0
- smart_data_engine_sdk-0.1.0/src/sde/generation.py +131 -0
- smart_data_engine_sdk-0.1.0/src/sde/groups.py +97 -0
- smart_data_engine_sdk-0.1.0/src/sde/hashing.py +242 -0
- smart_data_engine_sdk-0.1.0/src/sde/index_build.py +313 -0
- smart_data_engine_sdk-0.1.0/src/sde/index_operator.py +347 -0
- smart_data_engine_sdk-0.1.0/src/sde/infer.py +461 -0
- smart_data_engine_sdk-0.1.0/src/sde/inspection.py +62 -0
- smart_data_engine_sdk-0.1.0/src/sde/internal.py +90 -0
- smart_data_engine_sdk-0.1.0/src/sde/layout.py +669 -0
- smart_data_engine_sdk-0.1.0/src/sde/local_cutover.py +801 -0
- smart_data_engine_sdk-0.1.0/src/sde/logging.py +143 -0
- smart_data_engine_sdk-0.1.0/src/sde/migration.py +856 -0
- smart_data_engine_sdk-0.1.0/src/sde/model.py +482 -0
- smart_data_engine_sdk-0.1.0/src/sde/physical.py +531 -0
- smart_data_engine_sdk-0.1.0/src/sde/placement.py +1010 -0
- smart_data_engine_sdk-0.1.0/src/sde/provisioning.py +63 -0
- smart_data_engine_sdk-0.1.0/src/sde/py.typed +0 -0
- smart_data_engine_sdk-0.1.0/src/sde/query.py +521 -0
- smart_data_engine_sdk-0.1.0/src/sde/routing.py +85 -0
- smart_data_engine_sdk-0.1.0/src/sde/schema.py +466 -0
- smart_data_engine_sdk-0.1.0/src/sde/session.py +993 -0
- smart_data_engine_sdk-0.1.0/src/sde/shapes.py +153 -0
- smart_data_engine_sdk-0.1.0/src/sde/staging.py +264 -0
- smart_data_engine_sdk-0.1.0/src/sde/staging_operator.py +393 -0
- smart_data_engine_sdk-0.1.0/src/sde/telemetry.py +1087 -0
- smart_data_engine_sdk-0.1.0/src/sde/testing/__init__.py +14 -0
- smart_data_engine_sdk-0.1.0/src/sde/testing/loader.py +175 -0
- smart_data_engine_sdk-0.1.0/src/sde/testing/memory.py +331 -0
- smart_data_engine_sdk-0.1.0/src/sde/types.py +228 -0
- smart_data_engine_sdk-0.1.0/src/sde/verification.py +220 -0
- smart_data_engine_sdk-0.1.0/src/sde/watermark.py +222 -0
- smart_data_engine_sdk-0.1.0/src/sde/write_fence.py +283 -0
- smart_data_engine_sdk-0.1.0/src/sde_demo/__init__.py +1 -0
- smart_data_engine_sdk-0.1.0/src/sde_demo/__main__.py +183 -0
- smart_data_engine_sdk-0.1.0/src/sde_demo/diagnostics.py +92 -0
- smart_data_engine_sdk-0.1.0/src/sde_demo/model.py +75 -0
- smart_data_engine_sdk-0.1.0/src/sde_demo/project.py +312 -0
- smart_data_engine_sdk-0.1.0/src/sde_demo/py.typed +0 -0
- smart_data_engine_sdk-0.1.0/src/sde_demo/query_count.py +301 -0
- smart_data_engine_sdk-0.1.0/src/sde_demo/resources.py +969 -0
- smart_data_engine_sdk-0.1.0/src/sde_demo/runtime.py +419 -0
- smart_data_engine_sdk-0.1.0/src/sde_demo/verification.py +242 -0
- smart_data_engine_sdk-0.1.0/src/sde_operator/__init__.py +1 -0
- smart_data_engine_sdk-0.1.0/src/sde_operator/__main__.py +210 -0
- smart_data_engine_sdk-0.1.0/tests/_claims.py +101 -0
- smart_data_engine_sdk-0.1.0/tests/_cutover_driver.py +43 -0
- smart_data_engine_sdk-0.1.0/tests/_cutover_worker.py +71 -0
- smart_data_engine_sdk-0.1.0/tests/_generation.py +47 -0
- smart_data_engine_sdk-0.1.0/tests/_index_worker.py +64 -0
- smart_data_engine_sdk-0.1.0/tests/_staging_driver.py +49 -0
- smart_data_engine_sdk-0.1.0/tests/_staging_worker.py +85 -0
- smart_data_engine_sdk-0.1.0/tests/_weather_fixture.py +67 -0
- smart_data_engine_sdk-0.1.0/tests/_write_fence.py +56 -0
- smart_data_engine_sdk-0.1.0/tests/bulk_vectors.py +66 -0
- smart_data_engine_sdk-0.1.0/tests/datetime_query_peer.py +31 -0
- smart_data_engine_sdk-0.1.0/tests/fence_peer.py +44 -0
- smart_data_engine_sdk-0.1.0/tests/qualification/__init__.py +1 -0
- smart_data_engine_sdk-0.1.0/tests/qualification/metrics.py +115 -0
- smart_data_engine_sdk-0.1.0/tests/qualification/operation_metrics.py +77 -0
- smart_data_engine_sdk-0.1.0/tests/qualification/operation_worker.py +170 -0
- smart_data_engine_sdk-0.1.0/tests/qualification/operations.py +221 -0
- smart_data_engine_sdk-0.1.0/tests/qualification/operator_worker.py +38 -0
- smart_data_engine_sdk-0.1.0/tests/qualification/packets.py +110 -0
- smart_data_engine_sdk-0.1.0/tests/qualification/project.py +181 -0
- smart_data_engine_sdk-0.1.0/tests/qualification/run.py +322 -0
- smart_data_engine_sdk-0.1.0/tests/qualification/transition.py +145 -0
- smart_data_engine_sdk-0.1.0/tests/qualification/weather_worker.py +236 -0
- smart_data_engine_sdk-0.1.0/tests/test_bulk.py +313 -0
- smart_data_engine_sdk-0.1.0/tests/test_bulk_live.py +289 -0
- smart_data_engine_sdk-0.1.0/tests/test_canonical.py +139 -0
- smart_data_engine_sdk-0.1.0/tests/test_clickhouse_datetime_queries.py +178 -0
- smart_data_engine_sdk-0.1.0/tests/test_clickhouse_slice.py +426 -0
- smart_data_engine_sdk-0.1.0/tests/test_clickhouse_tls.py +435 -0
- smart_data_engine_sdk-0.1.0/tests/test_clickhouse_transport.py +79 -0
- smart_data_engine_sdk-0.1.0/tests/test_compatibility_views.py +272 -0
- smart_data_engine_sdk-0.1.0/tests/test_conformance.py +1103 -0
- smart_data_engine_sdk-0.1.0/tests/test_copy_freshness.py +495 -0
- smart_data_engine_sdk-0.1.0/tests/test_cutover_plan.py +110 -0
- smart_data_engine_sdk-0.1.0/tests/test_cutover_project.py +234 -0
- smart_data_engine_sdk-0.1.0/tests/test_demo_query_count.py +505 -0
- smart_data_engine_sdk-0.1.0/tests/test_demo_resources.py +634 -0
- smart_data_engine_sdk-0.1.0/tests/test_demo_starter.py +707 -0
- smart_data_engine_sdk-0.1.0/tests/test_demo_starter_live.py +145 -0
- smart_data_engine_sdk-0.1.0/tests/test_demo_verification.py +436 -0
- smart_data_engine_sdk-0.1.0/tests/test_denormalized_layout.py +303 -0
- smart_data_engine_sdk-0.1.0/tests/test_dual_write.py +313 -0
- smart_data_engine_sdk-0.1.0/tests/test_engine_agreement.py +201 -0
- smart_data_engine_sdk-0.1.0/tests/test_enrollment_durability.py +81 -0
- smart_data_engine_sdk-0.1.0/tests/test_explain_live.py +659 -0
- smart_data_engine_sdk-0.1.0/tests/test_failure_semantics.py +367 -0
- smart_data_engine_sdk-0.1.0/tests/test_frozen_verification_live.py +162 -0
- smart_data_engine_sdk-0.1.0/tests/test_generation_map.py +91 -0
- smart_data_engine_sdk-0.1.0/tests/test_generation_migration_live.py +137 -0
- smart_data_engine_sdk-0.1.0/tests/test_generation_session_live.py +159 -0
- smart_data_engine_sdk-0.1.0/tests/test_groups_and_shapes.py +190 -0
- smart_data_engine_sdk-0.1.0/tests/test_hashing.py +439 -0
- smart_data_engine_sdk-0.1.0/tests/test_implementer_documents.py +390 -0
- smart_data_engine_sdk-0.1.0/tests/test_index_change_live.py +401 -0
- smart_data_engine_sdk-0.1.0/tests/test_index_operator_live.py +1084 -0
- smart_data_engine_sdk-0.1.0/tests/test_index_plan.py +95 -0
- smart_data_engine_sdk-0.1.0/tests/test_infer.py +253 -0
- smart_data_engine_sdk-0.1.0/tests/test_integration_guard.py +48 -0
- smart_data_engine_sdk-0.1.0/tests/test_internal_failures.py +225 -0
- smart_data_engine_sdk-0.1.0/tests/test_layout_dialects.py +266 -0
- smart_data_engine_sdk-0.1.0/tests/test_local_cutover_live.py +995 -0
- smart_data_engine_sdk-0.1.0/tests/test_map_unicode.py +101 -0
- smart_data_engine_sdk-0.1.0/tests/test_map_unicode_live.py +26 -0
- smart_data_engine_sdk-0.1.0/tests/test_measure_storage.py +164 -0
- smart_data_engine_sdk-0.1.0/tests/test_measure_storage_live.py +64 -0
- smart_data_engine_sdk-0.1.0/tests/test_migration.py +1052 -0
- smart_data_engine_sdk-0.1.0/tests/test_migration_live.py +393 -0
- smart_data_engine_sdk-0.1.0/tests/test_model.py +290 -0
- smart_data_engine_sdk-0.1.0/tests/test_neutral_declaration.py +92 -0
- smart_data_engine_sdk-0.1.0/tests/test_no_account.py +400 -0
- smart_data_engine_sdk-0.1.0/tests/test_no_account_live.py +455 -0
- smart_data_engine_sdk-0.1.0/tests/test_no_expiry.py +389 -0
- smart_data_engine_sdk-0.1.0/tests/test_no_retry.py +309 -0
- smart_data_engine_sdk-0.1.0/tests/test_operation_metrics.py +102 -0
- smart_data_engine_sdk-0.1.0/tests/test_operation_oracle.py +46 -0
- smart_data_engine_sdk-0.1.0/tests/test_operator_cli.py +141 -0
- smart_data_engine_sdk-0.1.0/tests/test_operator_deadline.py +60 -0
- smart_data_engine_sdk-0.1.0/tests/test_operator_native_live.py +154 -0
- smart_data_engine_sdk-0.1.0/tests/test_orderbook_adapter.py +449 -0
- smart_data_engine_sdk-0.1.0/tests/test_orderbook_shape.py +227 -0
- smart_data_engine_sdk-0.1.0/tests/test_orderbook_slice.py +272 -0
- smart_data_engine_sdk-0.1.0/tests/test_overhead.py +247 -0
- smart_data_engine_sdk-0.1.0/tests/test_owned_session.py +179 -0
- smart_data_engine_sdk-0.1.0/tests/test_owned_session_live.py +60 -0
- smart_data_engine_sdk-0.1.0/tests/test_packaging.py +452 -0
- smart_data_engine_sdk-0.1.0/tests/test_physical.py +413 -0
- smart_data_engine_sdk-0.1.0/tests/test_physical_live.py +349 -0
- smart_data_engine_sdk-0.1.0/tests/test_placement_and_routing.py +401 -0
- smart_data_engine_sdk-0.1.0/tests/test_platforms.py +132 -0
- smart_data_engine_sdk-0.1.0/tests/test_postgres_slice.py +386 -0
- smart_data_engine_sdk-0.1.0/tests/test_postgres_tls.py +117 -0
- smart_data_engine_sdk-0.1.0/tests/test_qualification_cleanup.py +27 -0
- smart_data_engine_sdk-0.1.0/tests/test_qualification_metrics.py +168 -0
- smart_data_engine_sdk-0.1.0/tests/test_qualification_workers.py +30 -0
- smart_data_engine_sdk-0.1.0/tests/test_query_live.py +447 -0
- smart_data_engine_sdk-0.1.0/tests/test_query_plan.py +159 -0
- smart_data_engine_sdk-0.1.0/tests/test_query_session.py +130 -0
- smart_data_engine_sdk-0.1.0/tests/test_query_summary.py +75 -0
- smart_data_engine_sdk-0.1.0/tests/test_query_vectors.py +87 -0
- smart_data_engine_sdk-0.1.0/tests/test_readme_claims.py +227 -0
- smart_data_engine_sdk-0.1.0/tests/test_release.py +510 -0
- smart_data_engine_sdk-0.1.0/tests/test_rollback_protection.py +303 -0
- smart_data_engine_sdk-0.1.0/tests/test_rollback_protection_live.py +181 -0
- smart_data_engine_sdk-0.1.0/tests/test_runtime_privileges_live.py +366 -0
- smart_data_engine_sdk-0.1.0/tests/test_schema_statements.py +162 -0
- smart_data_engine_sdk-0.1.0/tests/test_schema_vectors_live.py +230 -0
- smart_data_engine_sdk-0.1.0/tests/test_session.py +273 -0
- smart_data_engine_sdk-0.1.0/tests/test_session_hashed.py +200 -0
- smart_data_engine_sdk-0.1.0/tests/test_session_ownership_live.py +364 -0
- smart_data_engine_sdk-0.1.0/tests/test_staging_abandon_live.py +414 -0
- smart_data_engine_sdk-0.1.0/tests/test_staging_native_live.py +125 -0
- smart_data_engine_sdk-0.1.0/tests/test_staging_operator_live.py +696 -0
- smart_data_engine_sdk-0.1.0/tests/test_staging_plan.py +84 -0
- smart_data_engine_sdk-0.1.0/tests/test_storage_sizes_live.py +78 -0
- smart_data_engine_sdk-0.1.0/tests/test_telemetry.py +589 -0
- smart_data_engine_sdk-0.1.0/tests/test_telemetry_storage_time.py +372 -0
- smart_data_engine_sdk-0.1.0/tests/test_verification_request.py +190 -0
- smart_data_engine_sdk-0.1.0/tests/test_write_fence.py +172 -0
- smart_data_engine_sdk-0.1.0/tests/test_write_fence_live.py +232 -0
- smart_data_engine_sdk-0.1.0/tests/timestamp_peer.py +55 -0
- smart_data_engine_sdk-0.1.0/tests/tls_certificates.py +143 -0
- smart_data_engine_sdk-0.1.0/tests/verification_peer.py +31 -0
- smart_data_engine_sdk-0.1.0/tests/weather_starter_peer.py +39 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
.venv/
|
|
5
|
+
venv/
|
|
6
|
+
.mypy_cache/
|
|
7
|
+
.pytest_cache/
|
|
8
|
+
.ruff_cache/
|
|
9
|
+
*.egg-info/
|
|
10
|
+
dist/
|
|
11
|
+
build/
|
|
12
|
+
|
|
13
|
+
# Node, for the TypeScript library
|
|
14
|
+
node_modules/
|
|
15
|
+
typescript/dist/
|
|
16
|
+
|
|
17
|
+
# Java, Rust
|
|
18
|
+
target/
|
|
19
|
+
.gradle/
|
|
20
|
+
|
|
21
|
+
# Artefacts that could carry a client's data. A placement map is fine to commit - it names tables,
|
|
22
|
+
# not rows - but anything a running application produced is not, and the cost of being wrong here is
|
|
23
|
+
# not a tidy repository, it is somebody else's data in our history.
|
|
24
|
+
*.profile.json
|
|
25
|
+
telemetry-*.json
|
|
26
|
+
|
|
27
|
+
# Local configuration and anything holding a key
|
|
28
|
+
.env
|
|
29
|
+
.env.*
|
|
30
|
+
!.env.example
|
|
31
|
+
*.pem
|
|
32
|
+
*.key
|
|
33
|
+
|
|
34
|
+
# Editors and OS
|
|
35
|
+
.idea/
|
|
36
|
+
.vscode/
|
|
37
|
+
.DS_Store
|
|
38
|
+
Thumbs.db
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Smart Data Engine client libraries
|
|
2
|
+
Copyright 2026 Smart Data Engines
|
|
3
|
+
|
|
4
|
+
This product includes software developed at Smart Data Engines
|
|
5
|
+
(https://smartdataengines.com).
|
|
6
|
+
|
|
7
|
+
The libraries in this repository are the client side of Smart Data Engine: they
|
|
8
|
+
declare a data model, cache a placement map, route operations and manage schema.
|
|
9
|
+
They connect to database engines directly and they work without an account.
|
|
10
|
+
|
|
11
|
+
The control plane - the placement planner, the scoring model and the migration
|
|
12
|
+
orchestrator - is a separate, private program and is not covered by this notice
|
|
13
|
+
or by this licence.
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: smart-data-engine-sdk
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Smart Data Engine client library: declare a data model, we place it and move it
|
|
5
|
+
Project-URL: Homepage, https://github.com/Smart-Data-Engines/smart-data-engine-sdk
|
|
6
|
+
Project-URL: Repository, https://github.com/Smart-Data-Engines/smart-data-engine-sdk
|
|
7
|
+
Project-URL: Issues, https://github.com/Smart-Data-Engines/smart-data-engine-sdk/issues
|
|
8
|
+
Project-URL: Format contract, https://github.com/Smart-Data-Engines/smart-data-engine-sdk/blob/main/docs/format-contract.md
|
|
9
|
+
Project-URL: Failure semantics, https://github.com/Smart-Data-Engines/smart-data-engine-sdk/blob/main/docs/failure-semantics.md
|
|
10
|
+
Author: Smart Data Engines
|
|
11
|
+
License-Expression: Apache-2.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
License-File: NOTICE
|
|
14
|
+
Keywords: clickhouse,database,placement,polystore,postgresql
|
|
15
|
+
Classifier: Development Status :: 3 - Alpha
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
+
Classifier: Topic :: Database
|
|
22
|
+
Classifier: Typing :: Typed
|
|
23
|
+
Requires-Python: <3.15,>=3.11
|
|
24
|
+
Provides-Extra: clickhouse
|
|
25
|
+
Requires-Dist: clickhouse-connect>=1.7.2; extra == 'clickhouse'
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: mypy>=1.11; extra == 'dev'
|
|
28
|
+
Requires-Dist: pytest>=8; extra == 'dev'
|
|
29
|
+
Requires-Dist: ruff>=0.6; extra == 'dev'
|
|
30
|
+
Provides-Extra: postgres
|
|
31
|
+
Requires-Dist: psycopg[binary]>=3.1; extra == 'postgres'
|
|
32
|
+
Provides-Extra: signed
|
|
33
|
+
Requires-Dist: cryptography>=42; extra == 'signed'
|
|
34
|
+
Description-Content-Type: text/markdown
|
|
35
|
+
|
|
36
|
+
# sde — Smart Data Engine client library for Python
|
|
37
|
+
|
|
38
|
+
Declare your data model. We decide which database engine each part of it lives in, how it is laid out
|
|
39
|
+
there, and when it should move — and move it while your application keeps running.
|
|
40
|
+
|
|
41
|
+
Your code never names a table or an engine. That absence is the point: it is what lets the physical
|
|
42
|
+
schema change underneath you without touching a line of your code.
|
|
43
|
+
|
|
44
|
+
```python
|
|
45
|
+
from datetime import datetime
|
|
46
|
+
from decimal import Decimal
|
|
47
|
+
from typing import Annotated
|
|
48
|
+
from uuid import UUID
|
|
49
|
+
import sde
|
|
50
|
+
|
|
51
|
+
@sde.entity
|
|
52
|
+
class User:
|
|
53
|
+
id: UUID
|
|
54
|
+
email: str
|
|
55
|
+
|
|
56
|
+
class Meta:
|
|
57
|
+
pii = ["email"]
|
|
58
|
+
|
|
59
|
+
@sde.entity
|
|
60
|
+
class Order:
|
|
61
|
+
id: UUID
|
|
62
|
+
user: sde.Ref[User]
|
|
63
|
+
total: Annotated[Decimal, sde.precision(12, 2)]
|
|
64
|
+
created_at: datetime
|
|
65
|
+
|
|
66
|
+
class Meta:
|
|
67
|
+
residency = "EU"
|
|
68
|
+
|
|
69
|
+
model = sde.build_model()
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## What you declare, and what you do not
|
|
73
|
+
|
|
74
|
+
You declare entities, relations, and four invariants. Everything else about storage is ours to
|
|
75
|
+
decide.
|
|
76
|
+
|
|
77
|
+
The four exist because no amount of watching traffic reveals them:
|
|
78
|
+
|
|
79
|
+
| Declaration | Why traffic cannot tell us |
|
|
80
|
+
|---|---|
|
|
81
|
+
| `atomic_with` | that two entities must commit together is a business rule, not a pattern |
|
|
82
|
+
| `residency` | where data may legally live is not visible in a query |
|
|
83
|
+
| `pii` | which column is personal data determines retention and what may be denormalised |
|
|
84
|
+
| `cost_ceiling` | your budget is not in your workload |
|
|
85
|
+
|
|
86
|
+
Anything beyond those four and the list of engines you have available would be us handing work back
|
|
87
|
+
to you, which is the opposite of what this is for.
|
|
88
|
+
|
|
89
|
+
## Two guarantees, and how to check them yourself
|
|
90
|
+
|
|
91
|
+
**We are not in your data path.** The library connects to your engines directly and answers every
|
|
92
|
+
operation from a locally cached placement map. Our service being down does not make your application
|
|
93
|
+
down. There is no configuration for this — there is no code path that routes your queries through us,
|
|
94
|
+
which you can confirm by reading `routing.py`: it is a dictionary lookup and three conditions.
|
|
95
|
+
|
|
96
|
+
**We never see a row.** Telemetry carries operation *shapes* and counts, never values, and a shape is
|
|
97
|
+
assembled from the structure of the call rather than from a query string — so there is nowhere for a
|
|
98
|
+
value to come from. This is the reason the library is open source: the guarantee is checkable instead
|
|
99
|
+
of promised.
|
|
100
|
+
|
|
101
|
+
## It works without an account
|
|
102
|
+
|
|
103
|
+
Write a placement map by hand, point the library at it, and everything runs: no key, no network, no
|
|
104
|
+
account.
|
|
105
|
+
|
|
106
|
+
```python
|
|
107
|
+
placement = sde.load_map(json.load(open("placement.json")), model=model)
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
An unsigned map is valid. A *signed* map with no key to verify it is not, because a signature is a
|
|
111
|
+
claim that it came from us and an unverifiable claim is worse than no claim. This mode is supported
|
|
112
|
+
and tested, not tolerated — it is also the honest answer to what happens if you stop paying us.
|
|
113
|
+
|
|
114
|
+
## Install
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
pip install smart-data-engine-sdk # core, no dependencies at all
|
|
118
|
+
pip install 'smart-data-engine-sdk[signed]' # verify maps we signed
|
|
119
|
+
pip install 'smart-data-engine-sdk[postgres]' # PostgreSQL engine driver
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
The core has no runtime dependencies. This library goes into your application, so every dependency
|
|
123
|
+
would be one you inherit and a version conflict you might have to resolve.
|
|
124
|
+
|
|
125
|
+
**The distribution is `smart-data-engine-sdk` and the import is `sde`, and neither half of that is a
|
|
126
|
+
preference.** `sde` alone is taken on PyPI by somebody else, and renaming the import to a
|
|
127
|
+
squatting-adjacent misspelling is worse for you than a distribution name that differs from it. The
|
|
128
|
+
obvious distribution name, `smart-data-engine`, is *refused by PyPI*: it answers 400, "the name is
|
|
129
|
+
too similar to an existing project". The project is `smartdata-engine`, registered by somebody else
|
|
130
|
+
with zero releases — PyPI compares names after stripping `._-` and folding `l`/`i` to `1` and `o` to
|
|
131
|
+
`0`, and both reduce to `smartdataeng1ne`. The suffix changes the reduction, and it matches the
|
|
132
|
+
repository name, which is the consistency worth having regardless.
|
|
133
|
+
|
|
134
|
+
Published to PyPI on 12 September 2026. Until then this section was the one instruction in this
|
|
135
|
+
repository that was knowingly untrue, and it carried a warning saying so; the warning is gone because
|
|
136
|
+
the commands work.
|
|
137
|
+
|
|
138
|
+
## Conformance
|
|
139
|
+
|
|
140
|
+
Everything in `canonical.py`, `model.py`, `shapes.py` and `routing.py` implements a cross-language
|
|
141
|
+
contract, pinned by vectors in `../conformance/vectors`. The Python, TypeScript, Java and Rust
|
|
142
|
+
libraries run the same vectors in their own test runners, so a divergence is a red test for whoever
|
|
143
|
+
caused it rather than an operation written to the wrong engine in production.
|
|
144
|
+
|
|
145
|
+
If you are porting this to another language, `docs/format-contract.md` is meant to be sufficient on
|
|
146
|
+
its own. If it is not, that is a bug in the document.
|
|
147
|
+
|
|
148
|
+
## Licence
|
|
149
|
+
|
|
150
|
+
Apache-2.0.
|
|
151
|
+
|
|
152
|
+
## Bound migration verification
|
|
153
|
+
|
|
154
|
+
Managed cutover uses a `VerificationRequest` from the controller. Configure `Session(...,
|
|
155
|
+
project_id=...)` from your local enrollment manifest, load the request with
|
|
156
|
+
`VerificationRequest.from_record`, and pass it to `verify(..., request=request)`. The returned
|
|
157
|
+
`as_record()` includes the request and counts, while row-level differences remain local.
|
|
158
|
+
See [the request protocol](../docs/format-contract.md#7b-verification-requests-and-bound-reports).
|
|
159
|
+
Loaded placement maps are immutable; load a new document when their layout or routing changes.
|
|
160
|
+
|
|
161
|
+
Batch operations: [logical bulk writes](../docs/bulk-writes.md) document `save_many` / `saveMany`,
|
|
162
|
+
bounds, source/copy ordering and uncertain outcomes.
|
|
163
|
+
|
|
164
|
+
[Logical reads and exact summaries](../docs/logical-reads.md) cover scan, count and summarize,
|
|
165
|
+
including portable keyset pages, typed values and explicit failure semantics.
|
|
166
|
+
|
|
167
|
+
## Local Weather starter
|
|
168
|
+
|
|
169
|
+
The [Weather starter](https://github.com/Smart-Data-Engines/smart-data-engine-sdk/blob/main/docs/weather-starter.md)
|
|
170
|
+
is part of this package, as the `sde-weather` command. It exercises logical operations with
|
|
171
|
+
restricted runtime credentials, and it includes local setup, telemetry, operator handoffs and an
|
|
172
|
+
ownership-checked reset.
|
|
173
|
+
|
|
174
|
+
Engine credentials and verified TLS configuration: [connection guide](../docs/engine-connections.md).
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# sde — Smart Data Engine client library for Python
|
|
2
|
+
|
|
3
|
+
Declare your data model. We decide which database engine each part of it lives in, how it is laid out
|
|
4
|
+
there, and when it should move — and move it while your application keeps running.
|
|
5
|
+
|
|
6
|
+
Your code never names a table or an engine. That absence is the point: it is what lets the physical
|
|
7
|
+
schema change underneath you without touching a line of your code.
|
|
8
|
+
|
|
9
|
+
```python
|
|
10
|
+
from datetime import datetime
|
|
11
|
+
from decimal import Decimal
|
|
12
|
+
from typing import Annotated
|
|
13
|
+
from uuid import UUID
|
|
14
|
+
import sde
|
|
15
|
+
|
|
16
|
+
@sde.entity
|
|
17
|
+
class User:
|
|
18
|
+
id: UUID
|
|
19
|
+
email: str
|
|
20
|
+
|
|
21
|
+
class Meta:
|
|
22
|
+
pii = ["email"]
|
|
23
|
+
|
|
24
|
+
@sde.entity
|
|
25
|
+
class Order:
|
|
26
|
+
id: UUID
|
|
27
|
+
user: sde.Ref[User]
|
|
28
|
+
total: Annotated[Decimal, sde.precision(12, 2)]
|
|
29
|
+
created_at: datetime
|
|
30
|
+
|
|
31
|
+
class Meta:
|
|
32
|
+
residency = "EU"
|
|
33
|
+
|
|
34
|
+
model = sde.build_model()
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## What you declare, and what you do not
|
|
38
|
+
|
|
39
|
+
You declare entities, relations, and four invariants. Everything else about storage is ours to
|
|
40
|
+
decide.
|
|
41
|
+
|
|
42
|
+
The four exist because no amount of watching traffic reveals them:
|
|
43
|
+
|
|
44
|
+
| Declaration | Why traffic cannot tell us |
|
|
45
|
+
|---|---|
|
|
46
|
+
| `atomic_with` | that two entities must commit together is a business rule, not a pattern |
|
|
47
|
+
| `residency` | where data may legally live is not visible in a query |
|
|
48
|
+
| `pii` | which column is personal data determines retention and what may be denormalised |
|
|
49
|
+
| `cost_ceiling` | your budget is not in your workload |
|
|
50
|
+
|
|
51
|
+
Anything beyond those four and the list of engines you have available would be us handing work back
|
|
52
|
+
to you, which is the opposite of what this is for.
|
|
53
|
+
|
|
54
|
+
## Two guarantees, and how to check them yourself
|
|
55
|
+
|
|
56
|
+
**We are not in your data path.** The library connects to your engines directly and answers every
|
|
57
|
+
operation from a locally cached placement map. Our service being down does not make your application
|
|
58
|
+
down. There is no configuration for this — there is no code path that routes your queries through us,
|
|
59
|
+
which you can confirm by reading `routing.py`: it is a dictionary lookup and three conditions.
|
|
60
|
+
|
|
61
|
+
**We never see a row.** Telemetry carries operation *shapes* and counts, never values, and a shape is
|
|
62
|
+
assembled from the structure of the call rather than from a query string — so there is nowhere for a
|
|
63
|
+
value to come from. This is the reason the library is open source: the guarantee is checkable instead
|
|
64
|
+
of promised.
|
|
65
|
+
|
|
66
|
+
## It works without an account
|
|
67
|
+
|
|
68
|
+
Write a placement map by hand, point the library at it, and everything runs: no key, no network, no
|
|
69
|
+
account.
|
|
70
|
+
|
|
71
|
+
```python
|
|
72
|
+
placement = sde.load_map(json.load(open("placement.json")), model=model)
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
An unsigned map is valid. A *signed* map with no key to verify it is not, because a signature is a
|
|
76
|
+
claim that it came from us and an unverifiable claim is worse than no claim. This mode is supported
|
|
77
|
+
and tested, not tolerated — it is also the honest answer to what happens if you stop paying us.
|
|
78
|
+
|
|
79
|
+
## Install
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
pip install smart-data-engine-sdk # core, no dependencies at all
|
|
83
|
+
pip install 'smart-data-engine-sdk[signed]' # verify maps we signed
|
|
84
|
+
pip install 'smart-data-engine-sdk[postgres]' # PostgreSQL engine driver
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
The core has no runtime dependencies. This library goes into your application, so every dependency
|
|
88
|
+
would be one you inherit and a version conflict you might have to resolve.
|
|
89
|
+
|
|
90
|
+
**The distribution is `smart-data-engine-sdk` and the import is `sde`, and neither half of that is a
|
|
91
|
+
preference.** `sde` alone is taken on PyPI by somebody else, and renaming the import to a
|
|
92
|
+
squatting-adjacent misspelling is worse for you than a distribution name that differs from it. The
|
|
93
|
+
obvious distribution name, `smart-data-engine`, is *refused by PyPI*: it answers 400, "the name is
|
|
94
|
+
too similar to an existing project". The project is `smartdata-engine`, registered by somebody else
|
|
95
|
+
with zero releases — PyPI compares names after stripping `._-` and folding `l`/`i` to `1` and `o` to
|
|
96
|
+
`0`, and both reduce to `smartdataeng1ne`. The suffix changes the reduction, and it matches the
|
|
97
|
+
repository name, which is the consistency worth having regardless.
|
|
98
|
+
|
|
99
|
+
Published to PyPI on 12 September 2026. Until then this section was the one instruction in this
|
|
100
|
+
repository that was knowingly untrue, and it carried a warning saying so; the warning is gone because
|
|
101
|
+
the commands work.
|
|
102
|
+
|
|
103
|
+
## Conformance
|
|
104
|
+
|
|
105
|
+
Everything in `canonical.py`, `model.py`, `shapes.py` and `routing.py` implements a cross-language
|
|
106
|
+
contract, pinned by vectors in `../conformance/vectors`. The Python, TypeScript, Java and Rust
|
|
107
|
+
libraries run the same vectors in their own test runners, so a divergence is a red test for whoever
|
|
108
|
+
caused it rather than an operation written to the wrong engine in production.
|
|
109
|
+
|
|
110
|
+
If you are porting this to another language, `docs/format-contract.md` is meant to be sufficient on
|
|
111
|
+
its own. If it is not, that is a bug in the document.
|
|
112
|
+
|
|
113
|
+
## Licence
|
|
114
|
+
|
|
115
|
+
Apache-2.0.
|
|
116
|
+
|
|
117
|
+
## Bound migration verification
|
|
118
|
+
|
|
119
|
+
Managed cutover uses a `VerificationRequest` from the controller. Configure `Session(...,
|
|
120
|
+
project_id=...)` from your local enrollment manifest, load the request with
|
|
121
|
+
`VerificationRequest.from_record`, and pass it to `verify(..., request=request)`. The returned
|
|
122
|
+
`as_record()` includes the request and counts, while row-level differences remain local.
|
|
123
|
+
See [the request protocol](../docs/format-contract.md#7b-verification-requests-and-bound-reports).
|
|
124
|
+
Loaded placement maps are immutable; load a new document when their layout or routing changes.
|
|
125
|
+
|
|
126
|
+
Batch operations: [logical bulk writes](../docs/bulk-writes.md) document `save_many` / `saveMany`,
|
|
127
|
+
bounds, source/copy ordering and uncertain outcomes.
|
|
128
|
+
|
|
129
|
+
[Logical reads and exact summaries](../docs/logical-reads.md) cover scan, count and summarize,
|
|
130
|
+
including portable keyset pages, typed values and explicit failure semantics.
|
|
131
|
+
|
|
132
|
+
## Local Weather starter
|
|
133
|
+
|
|
134
|
+
The [Weather starter](https://github.com/Smart-Data-Engines/smart-data-engine-sdk/blob/main/docs/weather-starter.md)
|
|
135
|
+
is part of this package, as the `sde-weather` command. It exercises logical operations with
|
|
136
|
+
restricted runtime credentials, and it includes local setup, telemetry, operator handoffs and an
|
|
137
|
+
ownership-checked reset.
|
|
138
|
+
|
|
139
|
+
Engine credentials and verified TLS configuration: [connection guide](../docs/engine-connections.md).
|