textgraph-kg 3.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 (117) hide show
  1. textgraph/__init__.py +6 -0
  2. textgraph/cli.py +923 -0
  3. textgraph/console/__init__.py +10 -0
  4. textgraph/console/api.py +101 -0
  5. textgraph/console/chat.py +512 -0
  6. textgraph/console/ingest.py +124 -0
  7. textgraph/console/page.py +49 -0
  8. textgraph/console/renderer.py +592 -0
  9. textgraph/console/server.py +212 -0
  10. textgraph/core/__init__.py +27 -0
  11. textgraph/core/canonical_doc.py +131 -0
  12. textgraph/core/canonical_json.py +38 -0
  13. textgraph/core/config.py +120 -0
  14. textgraph/core/content_address.py +52 -0
  15. textgraph/core/incremental.py +122 -0
  16. textgraph/core/layout.py +109 -0
  17. textgraph/core/offsets.py +154 -0
  18. textgraph/doctor.py +201 -0
  19. textgraph/got/__init__.py +15 -0
  20. textgraph/got/reason.py +386 -0
  21. textgraph/got/thought.py +123 -0
  22. textgraph/gql/__init__.py +14 -0
  23. textgraph/gql/ast.py +96 -0
  24. textgraph/gql/engine.py +399 -0
  25. textgraph/gql/errors.py +16 -0
  26. textgraph/gql/parser.py +345 -0
  27. textgraph/gql/tokenizer.py +123 -0
  28. textgraph/integrations/__init__.py +22 -0
  29. textgraph/integrations/adapters.py +120 -0
  30. textgraph/l0_ingest/__init__.py +10 -0
  31. textgraph/l0_ingest/base.py +180 -0
  32. textgraph/l0_ingest/dispatch.py +38 -0
  33. textgraph/l0_ingest/logs.py +61 -0
  34. textgraph/l0_ingest/markdown.py +109 -0
  35. textgraph/l0_ingest/plaintext.py +48 -0
  36. textgraph/l0_ingest/richdocs.py +231 -0
  37. textgraph/l0_ingest/structured.py +98 -0
  38. textgraph/l0_ingest/transcript.py +52 -0
  39. textgraph/l1_structure/__init__.py +11 -0
  40. textgraph/l1_structure/decisions.py +149 -0
  41. textgraph/l1_structure/emit.py +81 -0
  42. textgraph/l1_structure/structure.py +276 -0
  43. textgraph/l2_linguistic/__init__.py +12 -0
  44. textgraph/l2_linguistic/negation.py +31 -0
  45. textgraph/l2_linguistic/sentences.py +65 -0
  46. textgraph/l3_encoder_ie/__init__.py +32 -0
  47. textgraph/l3_encoder_ie/canonicalize.py +100 -0
  48. textgraph/l3_encoder_ie/emit_ie.py +80 -0
  49. textgraph/l3_encoder_ie/extract.py +339 -0
  50. textgraph/l3_encoder_ie/gliner_backend.py +109 -0
  51. textgraph/l3_encoder_ie/model.py +72 -0
  52. textgraph/l3_encoder_ie/rules.py +181 -0
  53. textgraph/l4_llm_optional/__init__.py +12 -0
  54. textgraph/l4_llm_optional/cache.py +41 -0
  55. textgraph/l4_llm_optional/client.py +108 -0
  56. textgraph/l4_llm_optional/extract.py +113 -0
  57. textgraph/l4_llm_optional/synthesize.py +120 -0
  58. textgraph/l5_entity_resolution/__init__.py +25 -0
  59. textgraph/l5_entity_resolution/audit.py +38 -0
  60. textgraph/l5_entity_resolution/blocking.py +43 -0
  61. textgraph/l5_entity_resolution/clustering.py +52 -0
  62. textgraph/l5_entity_resolution/emit_er.py +47 -0
  63. textgraph/l5_entity_resolution/metrics.py +63 -0
  64. textgraph/l5_entity_resolution/model.py +53 -0
  65. textgraph/l5_entity_resolution/resolve.py +102 -0
  66. textgraph/l5_entity_resolution/scoring.py +57 -0
  67. textgraph/l5_entity_resolution/similarity.py +74 -0
  68. textgraph/l5_entity_resolution/splink_backend.py +33 -0
  69. textgraph/l6_graph_model/__init__.py +11 -0
  70. textgraph/l6_graph_model/claims.py +164 -0
  71. textgraph/l6_graph_model/conflicts.py +339 -0
  72. textgraph/l6_graph_model/temporal.py +99 -0
  73. textgraph/l7_analytics/__init__.py +10 -0
  74. textgraph/l7_analytics/algorithms.py +157 -0
  75. textgraph/l7_analytics/analyze.py +169 -0
  76. textgraph/l7_analytics/communities.py +194 -0
  77. textgraph/l7_analytics/enrich.py +80 -0
  78. textgraph/l7_analytics/layout.py +152 -0
  79. textgraph/l8_retrieval/__init__.py +11 -0
  80. textgraph/l8_retrieval/bm25.py +70 -0
  81. textgraph/l8_retrieval/dense.py +212 -0
  82. textgraph/l8_retrieval/emit_chunks.py +143 -0
  83. textgraph/l8_retrieval/engine.py +1138 -0
  84. textgraph/l8_retrieval/grounding.py +49 -0
  85. textgraph/l8_retrieval/model.py +446 -0
  86. textgraph/l8_retrieval/narrate.py +63 -0
  87. textgraph/l8_retrieval/rerank.py +72 -0
  88. textgraph/l8_retrieval/routing.py +145 -0
  89. textgraph/l8_retrieval/vision/__init__.py +20 -0
  90. textgraph/l8_retrieval/vision/embed.py +80 -0
  91. textgraph/l8_retrieval/vision/maxsim.py +45 -0
  92. textgraph/l8_retrieval/vision/retriever.py +59 -0
  93. textgraph/l9_artifacts/__init__.py +9 -0
  94. textgraph/l9_artifacts/analytics_lite.py +50 -0
  95. textgraph/l9_artifacts/artifacts.py +217 -0
  96. textgraph/l9_artifacts/graph_html.py +95 -0
  97. textgraph/l9_artifacts/graph_json.py +92 -0
  98. textgraph/l9_artifacts/prov.py +115 -0
  99. textgraph/l9_artifacts/report.py +249 -0
  100. textgraph/mcp/__init__.py +9 -0
  101. textgraph/mcp/server.py +99 -0
  102. textgraph/mcp/tools.py +132 -0
  103. textgraph/pipeline.py +465 -0
  104. textgraph/security/__init__.py +32 -0
  105. textgraph/security/abac.py +84 -0
  106. textgraph/security/context.py +42 -0
  107. textgraph/security/policy.py +119 -0
  108. textgraph/security/rebac.py +107 -0
  109. textgraph/store/__init__.py +10 -0
  110. textgraph/store/base.py +90 -0
  111. textgraph/store/duckdb_store.py +175 -0
  112. textgraph/store/memory.py +40 -0
  113. textgraph/watch.py +80 -0
  114. textgraph_kg-3.2.0.dist-info/METADATA +362 -0
  115. textgraph_kg-3.2.0.dist-info/RECORD +117 -0
  116. textgraph_kg-3.2.0.dist-info/WHEEL +4 -0
  117. textgraph_kg-3.2.0.dist-info/entry_points.txt +2 -0
textgraph/__init__.py ADDED
@@ -0,0 +1,6 @@
1
+ """TextGraph: any textual corpus -> queryable knowledge graph with byte-level provenance.
2
+
3
+ Local-first, deterministic, zero-LLM-by-default. See ARCHITECTURE.md for the L0-L9 stack.
4
+ """
5
+
6
+ __version__ = "3.2.0"