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.
- mantisfetch-1.9.7/LICENSE +21 -0
- mantisfetch-1.9.7/PKG-INFO +783 -0
- mantisfetch-1.9.7/README.md +755 -0
- mantisfetch-1.9.7/i18n.py +290 -0
- mantisfetch-1.9.7/mantisfetch.egg-info/PKG-INFO +783 -0
- mantisfetch-1.9.7/mantisfetch.egg-info/SOURCES.txt +167 -0
- mantisfetch-1.9.7/mantisfetch.egg-info/dependency_links.txt +1 -0
- mantisfetch-1.9.7/mantisfetch.egg-info/requires.txt +15 -0
- mantisfetch-1.9.7/mantisfetch.egg-info/top_level.txt +8 -0
- mantisfetch-1.9.7/mantisfetch_common/__init__.py +13 -0
- mantisfetch-1.9.7/mantisfetch_common/actor.py +125 -0
- mantisfetch-1.9.7/mantisfetch_common/allowed_hosts.py +66 -0
- mantisfetch-1.9.7/mantisfetch_common/atomic.py +53 -0
- mantisfetch-1.9.7/mantisfetch_common/doc_index_store.py +274 -0
- mantisfetch-1.9.7/mantisfetch_common/http_headers.py +42 -0
- mantisfetch-1.9.7/mantisfetch_common/metrics.py +76 -0
- mantisfetch-1.9.7/mantisfetch_common/paths.py +42 -0
- mantisfetch-1.9.7/mantisfetch_common/search_cache.py +97 -0
- mantisfetch-1.9.7/mantisfetch_common/storage.py +88 -0
- mantisfetch-1.9.7/mantisfetch_deliverables.py +171 -0
- mantisfetch-1.9.7/mantisfetch_server.py +457 -0
- mantisfetch-1.9.7/providers/__init__.py +231 -0
- mantisfetch-1.9.7/providers/base.py +94 -0
- mantisfetch-1.9.7/providers/errors.py +179 -0
- mantisfetch-1.9.7/providers/failover.py +166 -0
- mantisfetch-1.9.7/providers/gemini.py +273 -0
- mantisfetch-1.9.7/providers/openai_compat.py +396 -0
- mantisfetch-1.9.7/providers/search/__init__.py +288 -0
- mantisfetch-1.9.7/providers/search/base.py +138 -0
- mantisfetch-1.9.7/providers/search/bocha.py +115 -0
- mantisfetch-1.9.7/providers/search/brave.py +92 -0
- mantisfetch-1.9.7/providers/search/searxng.py +86 -0
- mantisfetch-1.9.7/providers/search/tavily.py +98 -0
- mantisfetch-1.9.7/providers/sentinel.py +64 -0
- mantisfetch-1.9.7/providers/vendor_profiles.py +72 -0
- mantisfetch-1.9.7/pyproject.toml +84 -0
- mantisfetch-1.9.7/services/browser/mantisfetch_browser/__init__.py +4310 -0
- mantisfetch-1.9.7/services/browser/mantisfetch_browser/extract.py +449 -0
- mantisfetch-1.9.7/services/browser/mantisfetch_browser/models.py +412 -0
- mantisfetch-1.9.7/services/browser/mantisfetch_browser/negotiate.py +337 -0
- mantisfetch-1.9.7/services/browser/mantisfetch_browser/ranking.py +335 -0
- mantisfetch-1.9.7/services/browser/mantisfetch_browser/readability.js +2812 -0
- mantisfetch-1.9.7/services/browser/mantisfetch_browser/security.py +174 -0
- mantisfetch-1.9.7/services/browser/mantisfetch_browser/session.py +148 -0
- mantisfetch-1.9.7/services/browser/mantisfetch_browser/vision.py +178 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/__init__.py +7549 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/config_profiles/document/bid_cn.json +80 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/config_profiles/document/contract_cn.json +170 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/config_profiles/field/contract_cn.json +138 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/images.py +207 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/models.py +295 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/ocr/__init__.py +1 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/ocr/engines.py +396 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/ocr/tables.py +467 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/ocr_text.py +403 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/paddle_ocr_worker.py +310 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/pdf.py +755 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/pdf_planning.py +350 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/profiles.py +475 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/regions.py +553 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/sectioning.py +739 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/storage.py +796 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/summaries.py +481 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/tabular.py +416 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/text_utils.py +177 -0
- mantisfetch-1.9.7/services/docreader/mantisfetch_docreader/word.py +415 -0
- mantisfetch-1.9.7/services/mcp/mantisfetch_mcp/__init__.py +1655 -0
- mantisfetch-1.9.7/setup.cfg +4 -0
- mantisfetch-1.9.7/tests/test_action_budget_packer.py +126 -0
- mantisfetch-1.9.7/tests/test_action_hardening.py +387 -0
- mantisfetch-1.9.7/tests/test_agent_eval_papercuts.py +115 -0
- mantisfetch-1.9.7/tests/test_api_contract.py +105 -0
- mantisfetch-1.9.7/tests/test_atomic_guards.py +140 -0
- mantisfetch-1.9.7/tests/test_browser_evaluate_smoke.py +362 -0
- mantisfetch-1.9.7/tests/test_capture_concurrency_queue.py +290 -0
- mantisfetch-1.9.7/tests/test_capture_digest_and_brief.py +247 -0
- mantisfetch-1.9.7/tests/test_capture_extraction.py +523 -0
- mantisfetch-1.9.7/tests/test_capture_negotiate.py +401 -0
- mantisfetch-1.9.7/tests/test_chunk_atomic_blocks.py +175 -0
- mantisfetch-1.9.7/tests/test_compose_tunables.py +58 -0
- mantisfetch-1.9.7/tests/test_concurrency.py +215 -0
- mantisfetch-1.9.7/tests/test_csv_parse.py +81 -0
- mantisfetch-1.9.7/tests/test_deferred_summary_guard.py +207 -0
- mantisfetch-1.9.7/tests/test_deferred_write_vs_replace.py +296 -0
- mantisfetch-1.9.7/tests/test_delete_vs_deferred_writer.py +129 -0
- mantisfetch-1.9.7/tests/test_deliverables.py +251 -0
- mantisfetch-1.9.7/tests/test_doc_delete_authority.py +400 -0
- mantisfetch-1.9.7/tests/test_doc_id_lock_budget.py +144 -0
- mantisfetch-1.9.7/tests/test_doc_index_store.py +141 -0
- mantisfetch-1.9.7/tests/test_docx_zip_and_form_limits.py +80 -0
- mantisfetch-1.9.7/tests/test_dual_provider.py +487 -0
- mantisfetch-1.9.7/tests/test_extract_code_blocks.py +205 -0
- mantisfetch-1.9.7/tests/test_failure_sentinel.py +110 -0
- mantisfetch-1.9.7/tests/test_generic_parse_tables_and_slides.py +208 -0
- mantisfetch-1.9.7/tests/test_header_footer_strip.py +156 -0
- mantisfetch-1.9.7/tests/test_health.py +49 -0
- mantisfetch-1.9.7/tests/test_index_single_authority.py +319 -0
- mantisfetch-1.9.7/tests/test_interrupted_rewrite_recovery.py +943 -0
- mantisfetch-1.9.7/tests/test_layout_sidecar_contract.py +352 -0
- mantisfetch-1.9.7/tests/test_library_endpoints.py +1419 -0
- mantisfetch-1.9.7/tests/test_markdown_escaping.py +149 -0
- mantisfetch-1.9.7/tests/test_markdown_table_extraction.py +150 -0
- mantisfetch-1.9.7/tests/test_mcp_protocol_negotiation.py +278 -0
- mantisfetch-1.9.7/tests/test_mcp_result_budget.py +284 -0
- mantisfetch-1.9.7/tests/test_mcp_search.py +169 -0
- mantisfetch-1.9.7/tests/test_mcp_server.py +749 -0
- mantisfetch-1.9.7/tests/test_mcp_windows_and_guard.py +390 -0
- mantisfetch-1.9.7/tests/test_metrics.py +29 -0
- mantisfetch-1.9.7/tests/test_negotiate_final_url.py +102 -0
- mantisfetch-1.9.7/tests/test_no_invented_model.py +269 -0
- mantisfetch-1.9.7/tests/test_ocr_cache_fingerprint.py +295 -0
- mantisfetch-1.9.7/tests/test_ocr_cache_keeps_layout.py +131 -0
- mantisfetch-1.9.7/tests/test_ocr_prewarm_off_loop.py +145 -0
- mantisfetch-1.9.7/tests/test_ocr_truncation.py +112 -0
- mantisfetch-1.9.7/tests/test_ocr_worker_protocol.py +55 -0
- mantisfetch-1.9.7/tests/test_owner_scoped_discovery.py +592 -0
- mantisfetch-1.9.7/tests/test_packaging.py +84 -0
- mantisfetch-1.9.7/tests/test_paddle_ocr_worker_engine.py +183 -0
- mantisfetch-1.9.7/tests/test_parse_budget.py +488 -0
- mantisfetch-1.9.7/tests/test_parse_cancellation_safety.py +264 -0
- mantisfetch-1.9.7/tests/test_parse_failure_record.py +172 -0
- mantisfetch-1.9.7/tests/test_parse_queue.py +324 -0
- mantisfetch-1.9.7/tests/test_parse_upload_refusals.py +232 -0
- mantisfetch-1.9.7/tests/test_parsing_correctness.py +54 -0
- mantisfetch-1.9.7/tests/test_pdf_ocr_failure_fallback.py +152 -0
- mantisfetch-1.9.7/tests/test_pdf_ocr_render_memory.py +114 -0
- mantisfetch-1.9.7/tests/test_provider_error_contract.py +260 -0
- mantisfetch-1.9.7/tests/test_providers.py +583 -0
- mantisfetch-1.9.7/tests/test_raw_channel_store_only.py +702 -0
- mantisfetch-1.9.7/tests/test_real_doc_validation.py +94 -0
- mantisfetch-1.9.7/tests/test_recoverable_delete.py +374 -0
- mantisfetch-1.9.7/tests/test_region_crop_export.py +329 -0
- mantisfetch-1.9.7/tests/test_replace_rollback.py +451 -0
- mantisfetch-1.9.7/tests/test_request_body_ceiling.py +203 -0
- mantisfetch-1.9.7/tests/test_rest_auth.py +235 -0
- mantisfetch-1.9.7/tests/test_robustness.py +1267 -0
- mantisfetch-1.9.7/tests/test_schema_consistency.py +482 -0
- mantisfetch-1.9.7/tests/test_sdk.py +381 -0
- mantisfetch-1.9.7/tests/test_search_capture_budget.py +273 -0
- mantisfetch-1.9.7/tests/test_search_endpoints.py +254 -0
- mantisfetch-1.9.7/tests/test_search_fallback_throttle.py +121 -0
- mantisfetch-1.9.7/tests/test_search_index_lookups.py +134 -0
- mantisfetch-1.9.7/tests/test_search_providers.py +499 -0
- mantisfetch-1.9.7/tests/test_search_text_cache.py +106 -0
- mantisfetch-1.9.7/tests/test_search_throttle_queue.py +300 -0
- mantisfetch-1.9.7/tests/test_sectioning_and_locale.py +180 -0
- mantisfetch-1.9.7/tests/test_security.py +336 -0
- mantisfetch-1.9.7/tests/test_server_tls.py +44 -0
- mantisfetch-1.9.7/tests/test_sidecar_metrics.py +78 -0
- mantisfetch-1.9.7/tests/test_skill_contract.py +98 -0
- mantisfetch-1.9.7/tests/test_summary_floor.py +94 -0
- mantisfetch-1.9.7/tests/test_summary_llm_concurrency.py +63 -0
- mantisfetch-1.9.7/tests/test_summary_queue_bound.py +460 -0
- mantisfetch-1.9.7/tests/test_table_candidates.py +451 -0
- mantisfetch-1.9.7/tests/test_table_count_layout.py +124 -0
- mantisfetch-1.9.7/tests/test_table_metadata.py +153 -0
- mantisfetch-1.9.7/tests/test_tabular_output_size_flag.py +81 -0
- mantisfetch-1.9.7/tests/test_text_encoding.py +140 -0
- mantisfetch-1.9.7/tests/test_text_format_parse.py +23 -0
- mantisfetch-1.9.7/tests/test_upload_admission.py +255 -0
- mantisfetch-1.9.7/tests/test_web_capture.py +667 -0
- mantisfetch-1.9.7/tests/test_web_capture_error_pages.py +443 -0
- mantisfetch-1.9.7/tests/test_web_capture_library_readers.py +531 -0
- mantisfetch-1.9.7/tests/test_web_capture_summary.py +313 -0
- mantisfetch-1.9.7/tests/test_web_doc_id_allocation.py +25 -0
- mantisfetch-1.9.7/tests/test_web_summary_generation.py +379 -0
- mantisfetch-1.9.7/tests/test_word_embedded_images.py +421 -0
- mantisfetch-1.9.7/tests/test_xlsx_parse.py +83 -0
- 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.
|