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.
- tortoise/__init__.py +45 -0
- tortoise/__main__.py +1865 -0
- tortoise/analyze.py +473 -0
- tortoise/api.py +303 -0
- tortoise/archived/search_legacy.py +31 -0
- tortoise/audit.py +236 -0
- tortoise/audit_events.py +284 -0
- tortoise/auth.py +107 -0
- tortoise/backup.py +155 -0
- tortoise/config.py +99 -0
- tortoise/connector_loader.py +74 -0
- tortoise/connectors/__init__.py +5 -0
- tortoise/connectors/github.py +432 -0
- tortoise/connectors/github_docs.py +146 -0
- tortoise/connectors/linear.py +199 -0
- tortoise/connectors/slack.py +222 -0
- tortoise/consistency.py +132 -0
- tortoise/crypto.py +52 -0
- tortoise/deployment.py +62 -0
- tortoise/domain_loader.py +142 -0
- tortoise/dream.py +153 -0
- tortoise/embedded_reaper.py +744 -0
- tortoise/embeddings.py +227 -0
- tortoise/ep.py +534 -0
- tortoise/exceptions.py +16 -0
- tortoise/extractor.py +945 -0
- tortoise/hosted_api.py +1982 -0
- tortoise/hosted_middleware.py +22 -0
- tortoise/idempotency.py +39 -0
- tortoise/ids.py +23 -0
- tortoise/indexer/github_indexer.py +129 -0
- tortoise/ingest.py +614 -0
- tortoise/log.py +29 -0
- tortoise/m0.py +50 -0
- tortoise/mcp_auth.py +337 -0
- tortoise/mcp_client.py +108 -0
- tortoise/mcp_server.py +1356 -0
- tortoise/memory_orchestrator.py +492 -0
- tortoise/memory_scope.py +15 -0
- tortoise/migrate_db.py +244 -0
- tortoise/migrate_kinds.py +141 -0
- tortoise/mining.py +338 -0
- tortoise/models.py +109 -0
- tortoise/monitoring.py +133 -0
- tortoise/navigation.py +216 -0
- tortoise/pack_registry.py +767 -0
- tortoise/pipeline_cli.py +197 -0
- tortoise/projection/__init__.py +913 -0
- tortoise/projection/edges.py +311 -0
- tortoise/projection/entities.py +521 -0
- tortoise/projection/grounding.py +95 -0
- tortoise/projection/propagation.py +114 -0
- tortoise/projection.py +37 -0
- tortoise/quadrature.py +90 -0
- tortoise/query_suggestions.py +194 -0
- tortoise/quota.py +163 -0
- tortoise/ranking.py +280 -0
- tortoise/render.py +108 -0
- tortoise/scripts/manifest.py +67 -0
- tortoise/sdk.py +4713 -0
- tortoise/search_engine.py +887 -0
- tortoise/security.py +268 -0
- tortoise/selfhost.py +157 -0
- tortoise/selfhost_api.py +201 -0
- tortoise/session_continuity.py +82 -0
- tortoise/session_indexer.py +569 -0
- tortoise/shared_state/__init__.py +20 -0
- tortoise/shared_state/concurrency.py +113 -0
- tortoise/shared_state/event_log.py +192 -0
- tortoise/shared_state/events.py +150 -0
- tortoise/shared_state/monitoring.py +87 -0
- tortoise/shared_state/recovery.py +126 -0
- tortoise/shared_state/tests/__init__.py +15 -0
- tortoise/shared_state/tests/test_concurrency.py +123 -0
- tortoise/shared_state/tests/test_events.py +145 -0
- tortoise/shared_state/tests/test_monitoring.py +54 -0
- tortoise/shared_state/tests/test_recovery.py +181 -0
- tortoise/source_credibility.py +306 -0
- tortoise/svbp.py +446 -0
- tortoise/taxonomy.py +71 -0
- tortoise/test_cross_ontology.py +180 -0
- tortoise/test_tortoise_client.py +206 -0
- tortoise/tool_registry.py +805 -0
- tortoise/tortoise_client.py +262 -0
- tortoise/verify_ontology.py +154 -0
- tortoise/version_vector.py +97 -0
- tortoise/weights.py +61 -0
- tortoise_graph-0.2.0.dist-info/METADATA +152 -0
- tortoise_graph-0.2.0.dist-info/RECORD +93 -0
- tortoise_graph-0.2.0.dist-info/WHEEL +5 -0
- tortoise_graph-0.2.0.dist-info/entry_points.txt +4 -0
- tortoise_graph-0.2.0.dist-info/licenses/LICENSE +95 -0
- 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)
|