mantisfetch 1.9.7__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.
Files changed (169) hide show
  1. mantisfetch-1.9.7/LICENSE +21 -0
  2. mantisfetch-1.9.7/PKG-INFO +783 -0
  3. mantisfetch-1.9.7/README.md +755 -0
  4. mantisfetch-1.9.7/i18n.py +290 -0
  5. mantisfetch-1.9.7/mantisfetch.egg-info/PKG-INFO +783 -0
  6. mantisfetch-1.9.7/mantisfetch.egg-info/SOURCES.txt +167 -0
  7. mantisfetch-1.9.7/mantisfetch.egg-info/dependency_links.txt +1 -0
  8. mantisfetch-1.9.7/mantisfetch.egg-info/requires.txt +15 -0
  9. mantisfetch-1.9.7/mantisfetch.egg-info/top_level.txt +8 -0
  10. mantisfetch-1.9.7/mantisfetch_common/__init__.py +13 -0
  11. mantisfetch-1.9.7/mantisfetch_common/actor.py +125 -0
  12. mantisfetch-1.9.7/mantisfetch_common/allowed_hosts.py +66 -0
  13. mantisfetch-1.9.7/mantisfetch_common/atomic.py +53 -0
  14. mantisfetch-1.9.7/mantisfetch_common/doc_index_store.py +274 -0
  15. mantisfetch-1.9.7/mantisfetch_common/http_headers.py +42 -0
  16. mantisfetch-1.9.7/mantisfetch_common/metrics.py +76 -0
  17. mantisfetch-1.9.7/mantisfetch_common/paths.py +42 -0
  18. mantisfetch-1.9.7/mantisfetch_common/search_cache.py +97 -0
  19. mantisfetch-1.9.7/mantisfetch_common/storage.py +88 -0
  20. mantisfetch-1.9.7/mantisfetch_deliverables.py +171 -0
  21. mantisfetch-1.9.7/mantisfetch_server.py +457 -0
  22. mantisfetch-1.9.7/providers/__init__.py +231 -0
  23. mantisfetch-1.9.7/providers/base.py +94 -0
  24. mantisfetch-1.9.7/providers/errors.py +179 -0
  25. mantisfetch-1.9.7/providers/failover.py +166 -0
  26. mantisfetch-1.9.7/providers/gemini.py +273 -0
  27. mantisfetch-1.9.7/providers/openai_compat.py +396 -0
  28. mantisfetch-1.9.7/providers/search/__init__.py +288 -0
  29. mantisfetch-1.9.7/providers/search/base.py +138 -0
  30. mantisfetch-1.9.7/providers/search/bocha.py +115 -0
  31. mantisfetch-1.9.7/providers/search/brave.py +92 -0
  32. mantisfetch-1.9.7/providers/search/searxng.py +86 -0
  33. mantisfetch-1.9.7/providers/search/tavily.py +98 -0
  34. mantisfetch-1.9.7/providers/sentinel.py +64 -0
  35. mantisfetch-1.9.7/providers/vendor_profiles.py +72 -0
  36. mantisfetch-1.9.7/pyproject.toml +84 -0
  37. mantisfetch-1.9.7/services/browser/mantisfetch_browser/__init__.py +4310 -0
  38. mantisfetch-1.9.7/services/browser/mantisfetch_browser/extract.py +449 -0
  39. mantisfetch-1.9.7/services/browser/mantisfetch_browser/models.py +412 -0
  40. mantisfetch-1.9.7/services/browser/mantisfetch_browser/negotiate.py +337 -0
  41. mantisfetch-1.9.7/services/browser/mantisfetch_browser/ranking.py +335 -0
  42. mantisfetch-1.9.7/services/browser/mantisfetch_browser/readability.js +2812 -0
  43. mantisfetch-1.9.7/services/browser/mantisfetch_browser/security.py +174 -0
  44. mantisfetch-1.9.7/services/browser/mantisfetch_browser/session.py +148 -0
  45. mantisfetch-1.9.7/services/browser/mantisfetch_browser/vision.py +178 -0
  46. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/__init__.py +7549 -0
  47. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/config_profiles/document/bid_cn.json +80 -0
  48. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/config_profiles/document/contract_cn.json +170 -0
  49. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/config_profiles/field/contract_cn.json +138 -0
  50. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/images.py +207 -0
  51. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/models.py +295 -0
  52. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/ocr/__init__.py +1 -0
  53. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/ocr/engines.py +396 -0
  54. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/ocr/tables.py +467 -0
  55. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/ocr_text.py +403 -0
  56. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/paddle_ocr_worker.py +310 -0
  57. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/pdf.py +755 -0
  58. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/pdf_planning.py +350 -0
  59. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/profiles.py +475 -0
  60. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/regions.py +553 -0
  61. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/sectioning.py +739 -0
  62. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/storage.py +796 -0
  63. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/summaries.py +481 -0
  64. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/tabular.py +416 -0
  65. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/text_utils.py +177 -0
  66. mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/word.py +415 -0
  67. mantisfetch-1.9.7/services/mcp/mantisfetch_mcp/__init__.py +1655 -0
  68. mantisfetch-1.9.7/setup.cfg +4 -0
  69. mantisfetch-1.9.7/tests/test_action_budget_packer.py +126 -0
  70. mantisfetch-1.9.7/tests/test_action_hardening.py +387 -0
  71. mantisfetch-1.9.7/tests/test_agent_eval_papercuts.py +115 -0
  72. mantisfetch-1.9.7/tests/test_api_contract.py +105 -0
  73. mantisfetch-1.9.7/tests/test_atomic_guards.py +140 -0
  74. mantisfetch-1.9.7/tests/test_browser_evaluate_smoke.py +362 -0
  75. mantisfetch-1.9.7/tests/test_capture_concurrency_queue.py +290 -0
  76. mantisfetch-1.9.7/tests/test_capture_digest_and_brief.py +247 -0
  77. mantisfetch-1.9.7/tests/test_capture_extraction.py +523 -0
  78. mantisfetch-1.9.7/tests/test_capture_negotiate.py +401 -0
  79. mantisfetch-1.9.7/tests/test_chunk_atomic_blocks.py +175 -0
  80. mantisfetch-1.9.7/tests/test_compose_tunables.py +58 -0
  81. mantisfetch-1.9.7/tests/test_concurrency.py +215 -0
  82. mantisfetch-1.9.7/tests/test_csv_parse.py +81 -0
  83. mantisfetch-1.9.7/tests/test_deferred_summary_guard.py +207 -0
  84. mantisfetch-1.9.7/tests/test_deferred_write_vs_replace.py +296 -0
  85. mantisfetch-1.9.7/tests/test_delete_vs_deferred_writer.py +129 -0
  86. mantisfetch-1.9.7/tests/test_deliverables.py +251 -0
  87. mantisfetch-1.9.7/tests/test_doc_delete_authority.py +400 -0
  88. mantisfetch-1.9.7/tests/test_doc_id_lock_budget.py +144 -0
  89. mantisfetch-1.9.7/tests/test_doc_index_store.py +141 -0
  90. mantisfetch-1.9.7/tests/test_docx_zip_and_form_limits.py +80 -0
  91. mantisfetch-1.9.7/tests/test_dual_provider.py +487 -0
  92. mantisfetch-1.9.7/tests/test_extract_code_blocks.py +205 -0
  93. mantisfetch-1.9.7/tests/test_failure_sentinel.py +110 -0
  94. mantisfetch-1.9.7/tests/test_generic_parse_tables_and_slides.py +208 -0
  95. mantisfetch-1.9.7/tests/test_header_footer_strip.py +156 -0
  96. mantisfetch-1.9.7/tests/test_health.py +49 -0
  97. mantisfetch-1.9.7/tests/test_index_single_authority.py +319 -0
  98. mantisfetch-1.9.7/tests/test_interrupted_rewrite_recovery.py +943 -0
  99. mantisfetch-1.9.7/tests/test_layout_sidecar_contract.py +352 -0
  100. mantisfetch-1.9.7/tests/test_library_endpoints.py +1419 -0
  101. mantisfetch-1.9.7/tests/test_markdown_escaping.py +149 -0
  102. mantisfetch-1.9.7/tests/test_markdown_table_extraction.py +150 -0
  103. mantisfetch-1.9.7/tests/test_mcp_protocol_negotiation.py +278 -0
  104. mantisfetch-1.9.7/tests/test_mcp_result_budget.py +284 -0
  105. mantisfetch-1.9.7/tests/test_mcp_search.py +169 -0
  106. mantisfetch-1.9.7/tests/test_mcp_server.py +749 -0
  107. mantisfetch-1.9.7/tests/test_mcp_windows_and_guard.py +390 -0
  108. mantisfetch-1.9.7/tests/test_metrics.py +29 -0
  109. mantisfetch-1.9.7/tests/test_negotiate_final_url.py +102 -0
  110. mantisfetch-1.9.7/tests/test_no_invented_model.py +269 -0
  111. mantisfetch-1.9.7/tests/test_ocr_cache_fingerprint.py +295 -0
  112. mantisfetch-1.9.7/tests/test_ocr_cache_keeps_layout.py +131 -0
  113. mantisfetch-1.9.7/tests/test_ocr_prewarm_off_loop.py +145 -0
  114. mantisfetch-1.9.7/tests/test_ocr_truncation.py +112 -0
  115. mantisfetch-1.9.7/tests/test_ocr_worker_protocol.py +55 -0
  116. mantisfetch-1.9.7/tests/test_owner_scoped_discovery.py +592 -0
  117. mantisfetch-1.9.7/tests/test_packaging.py +84 -0
  118. mantisfetch-1.9.7/tests/test_paddle_ocr_worker_engine.py +183 -0
  119. mantisfetch-1.9.7/tests/test_parse_budget.py +488 -0
  120. mantisfetch-1.9.7/tests/test_parse_cancellation_safety.py +264 -0
  121. mantisfetch-1.9.7/tests/test_parse_failure_record.py +172 -0
  122. mantisfetch-1.9.7/tests/test_parse_queue.py +324 -0
  123. mantisfetch-1.9.7/tests/test_parse_upload_refusals.py +232 -0
  124. mantisfetch-1.9.7/tests/test_parsing_correctness.py +54 -0
  125. mantisfetch-1.9.7/tests/test_pdf_ocr_failure_fallback.py +152 -0
  126. mantisfetch-1.9.7/tests/test_pdf_ocr_render_memory.py +114 -0
  127. mantisfetch-1.9.7/tests/test_provider_error_contract.py +260 -0
  128. mantisfetch-1.9.7/tests/test_providers.py +583 -0
  129. mantisfetch-1.9.7/tests/test_raw_channel_store_only.py +702 -0
  130. mantisfetch-1.9.7/tests/test_real_doc_validation.py +94 -0
  131. mantisfetch-1.9.7/tests/test_recoverable_delete.py +374 -0
  132. mantisfetch-1.9.7/tests/test_region_crop_export.py +329 -0
  133. mantisfetch-1.9.7/tests/test_replace_rollback.py +451 -0
  134. mantisfetch-1.9.7/tests/test_request_body_ceiling.py +203 -0
  135. mantisfetch-1.9.7/tests/test_rest_auth.py +235 -0
  136. mantisfetch-1.9.7/tests/test_robustness.py +1267 -0
  137. mantisfetch-1.9.7/tests/test_schema_consistency.py +482 -0
  138. mantisfetch-1.9.7/tests/test_sdk.py +381 -0
  139. mantisfetch-1.9.7/tests/test_search_capture_budget.py +273 -0
  140. mantisfetch-1.9.7/tests/test_search_endpoints.py +254 -0
  141. mantisfetch-1.9.7/tests/test_search_fallback_throttle.py +121 -0
  142. mantisfetch-1.9.7/tests/test_search_index_lookups.py +134 -0
  143. mantisfetch-1.9.7/tests/test_search_providers.py +499 -0
  144. mantisfetch-1.9.7/tests/test_search_text_cache.py +106 -0
  145. mantisfetch-1.9.7/tests/test_search_throttle_queue.py +300 -0
  146. mantisfetch-1.9.7/tests/test_sectioning_and_locale.py +180 -0
  147. mantisfetch-1.9.7/tests/test_security.py +336 -0
  148. mantisfetch-1.9.7/tests/test_server_tls.py +44 -0
  149. mantisfetch-1.9.7/tests/test_sidecar_metrics.py +78 -0
  150. mantisfetch-1.9.7/tests/test_skill_contract.py +98 -0
  151. mantisfetch-1.9.7/tests/test_summary_floor.py +94 -0
  152. mantisfetch-1.9.7/tests/test_summary_llm_concurrency.py +63 -0
  153. mantisfetch-1.9.7/tests/test_summary_queue_bound.py +460 -0
  154. mantisfetch-1.9.7/tests/test_table_candidates.py +451 -0
  155. mantisfetch-1.9.7/tests/test_table_count_layout.py +124 -0
  156. mantisfetch-1.9.7/tests/test_table_metadata.py +153 -0
  157. mantisfetch-1.9.7/tests/test_tabular_output_size_flag.py +81 -0
  158. mantisfetch-1.9.7/tests/test_text_encoding.py +140 -0
  159. mantisfetch-1.9.7/tests/test_text_format_parse.py +23 -0
  160. mantisfetch-1.9.7/tests/test_upload_admission.py +255 -0
  161. mantisfetch-1.9.7/tests/test_web_capture.py +667 -0
  162. mantisfetch-1.9.7/tests/test_web_capture_error_pages.py +443 -0
  163. mantisfetch-1.9.7/tests/test_web_capture_library_readers.py +531 -0
  164. mantisfetch-1.9.7/tests/test_web_capture_summary.py +313 -0
  165. mantisfetch-1.9.7/tests/test_web_doc_id_allocation.py +25 -0
  166. mantisfetch-1.9.7/tests/test_web_summary_generation.py +379 -0
  167. mantisfetch-1.9.7/tests/test_word_embedded_images.py +421 -0
  168. mantisfetch-1.9.7/tests/test_xlsx_parse.py +83 -0
  169. mantisfetch-1.9.7/tests/test_xlsx_row_budget.py +435 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ready For AI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.