tortoise-graph 0.2.0__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.
Files changed (93) hide show
  1. tortoise/__init__.py +45 -0
  2. tortoise/__main__.py +1865 -0
  3. tortoise/analyze.py +473 -0
  4. tortoise/api.py +303 -0
  5. tortoise/archived/search_legacy.py +31 -0
  6. tortoise/audit.py +236 -0
  7. tortoise/audit_events.py +284 -0
  8. tortoise/auth.py +107 -0
  9. tortoise/backup.py +155 -0
  10. tortoise/config.py +99 -0
  11. tortoise/connector_loader.py +74 -0
  12. tortoise/connectors/__init__.py +5 -0
  13. tortoise/connectors/github.py +432 -0
  14. tortoise/connectors/github_docs.py +146 -0
  15. tortoise/connectors/linear.py +199 -0
  16. tortoise/connectors/slack.py +222 -0
  17. tortoise/consistency.py +132 -0
  18. tortoise/crypto.py +52 -0
  19. tortoise/deployment.py +62 -0
  20. tortoise/domain_loader.py +142 -0
  21. tortoise/dream.py +153 -0
  22. tortoise/embedded_reaper.py +744 -0
  23. tortoise/embeddings.py +227 -0
  24. tortoise/ep.py +534 -0
  25. tortoise/exceptions.py +16 -0
  26. tortoise/extractor.py +945 -0
  27. tortoise/hosted_api.py +1982 -0
  28. tortoise/hosted_middleware.py +22 -0
  29. tortoise/idempotency.py +39 -0
  30. tortoise/ids.py +23 -0
  31. tortoise/indexer/github_indexer.py +129 -0
  32. tortoise/ingest.py +614 -0
  33. tortoise/log.py +29 -0
  34. tortoise/m0.py +50 -0
  35. tortoise/mcp_auth.py +337 -0
  36. tortoise/mcp_client.py +108 -0
  37. tortoise/mcp_server.py +1356 -0
  38. tortoise/memory_orchestrator.py +492 -0
  39. tortoise/memory_scope.py +15 -0
  40. tortoise/migrate_db.py +244 -0
  41. tortoise/migrate_kinds.py +141 -0
  42. tortoise/mining.py +338 -0
  43. tortoise/models.py +109 -0
  44. tortoise/monitoring.py +133 -0
  45. tortoise/navigation.py +216 -0
  46. tortoise/pack_registry.py +767 -0
  47. tortoise/pipeline_cli.py +197 -0
  48. tortoise/projection/__init__.py +913 -0
  49. tortoise/projection/edges.py +311 -0
  50. tortoise/projection/entities.py +521 -0
  51. tortoise/projection/grounding.py +95 -0
  52. tortoise/projection/propagation.py +114 -0
  53. tortoise/projection.py +37 -0
  54. tortoise/quadrature.py +90 -0
  55. tortoise/query_suggestions.py +194 -0
  56. tortoise/quota.py +163 -0
  57. tortoise/ranking.py +280 -0
  58. tortoise/render.py +108 -0
  59. tortoise/scripts/manifest.py +67 -0
  60. tortoise/sdk.py +4713 -0
  61. tortoise/search_engine.py +887 -0
  62. tortoise/security.py +268 -0
  63. tortoise/selfhost.py +157 -0
  64. tortoise/selfhost_api.py +201 -0
  65. tortoise/session_continuity.py +82 -0
  66. tortoise/session_indexer.py +569 -0
  67. tortoise/shared_state/__init__.py +20 -0
  68. tortoise/shared_state/concurrency.py +113 -0
  69. tortoise/shared_state/event_log.py +192 -0
  70. tortoise/shared_state/events.py +150 -0
  71. tortoise/shared_state/monitoring.py +87 -0
  72. tortoise/shared_state/recovery.py +126 -0
  73. tortoise/shared_state/tests/__init__.py +15 -0
  74. tortoise/shared_state/tests/test_concurrency.py +123 -0
  75. tortoise/shared_state/tests/test_events.py +145 -0
  76. tortoise/shared_state/tests/test_monitoring.py +54 -0
  77. tortoise/shared_state/tests/test_recovery.py +181 -0
  78. tortoise/source_credibility.py +306 -0
  79. tortoise/svbp.py +446 -0
  80. tortoise/taxonomy.py +71 -0
  81. tortoise/test_cross_ontology.py +180 -0
  82. tortoise/test_tortoise_client.py +206 -0
  83. tortoise/tool_registry.py +805 -0
  84. tortoise/tortoise_client.py +262 -0
  85. tortoise/verify_ontology.py +154 -0
  86. tortoise/version_vector.py +97 -0
  87. tortoise/weights.py +61 -0
  88. tortoise_graph-0.2.0.dist-info/METADATA +152 -0
  89. tortoise_graph-0.2.0.dist-info/RECORD +93 -0
  90. tortoise_graph-0.2.0.dist-info/WHEEL +5 -0
  91. tortoise_graph-0.2.0.dist-info/entry_points.txt +4 -0
  92. tortoise_graph-0.2.0.dist-info/licenses/LICENSE +95 -0
  93. tortoise_graph-0.2.0.dist-info/top_level.txt +1 -0
tortoise/__init__.py ADDED
@@ -0,0 +1,45 @@
1
+ """Tortoise — live epistemic-graph extraction from transcripts.
2
+
3
+ M0 spike: file → extractor → JSONL event log → projection → static grid render.
4
+ See ../BUILD_PLAN.md. This is the spine only; storage, streaming, idempotency,
5
+ and the eval loop are later milestones.
6
+
7
+ GAP-15 / #7003: Conversation mining pipeline (mining.py) now wired.
8
+
9
+ Import-time loud-fail guard (issue #176, plan Task 8):
10
+ `tortoise.FalkorDB` SUBCLASSES `redislite.falkordb_client.FalkorDB` and
11
+ raises RuntimeError on relative paths. BEST-EFFORT: only code importing
12
+ tortoise's re-export (or importing redislite AFTER `import tortoise`) is
13
+ guarded. Direct redislite imports BEFORE tortoise are documented bypasses —
14
+ the pre-commit grep (Child 3) is the source-level enforcement. We do NOT
15
+ monkeypatch the redislite module globally (non-tortoise users unaffected).
16
+
17
+ NOTE: the projection module imports redislite directly at its own
18
+ choke-point (`projection/__init__.py:131`); Python resolves that to the
19
+ ORIGINAL class regardless of this re-export. Protection for the projection
20
+ path comes from FalkorProjection's hard-reject (Task 7) — this guard covers
21
+ code importing `tortoise.FalkorDB` or importing redislite after tortoise.
22
+ """
23
+ from __future__ import annotations
24
+
25
+ import os
26
+
27
+ from redislite.falkordb_client import FalkorDB as _OriginalFalkorDB
28
+
29
+ from tortoise.config import RELATIVE_PATH_ERROR
30
+
31
+
32
+ class FalkorDB(_OriginalFalkorDB):
33
+ """Guarded subclass of redislite's FalkorDB.
34
+
35
+ Raises RuntimeError when `path` is relative (never permitted — relative
36
+ paths create per-CWD servers, the Category-3 leak). Absolute paths and
37
+ no-arg construction pass through to the original.
38
+ """
39
+
40
+ def __init__(self, *args, **kwargs):
41
+ if args and args[0] is not None and isinstance(args[0], str):
42
+ path = args[0]
43
+ if not os.path.isabs(path) and not path.startswith("~"):
44
+ raise RuntimeError(RELATIVE_PATH_ERROR.format(path=path))
45
+ super().__init__(*args, **kwargs)