MCPcopy Create free account

hub / github.com/Thysrael/Horizon / functions

Functions669 in github.com/Thysrael/Horizon

Method__init__
(self, data_dir: str = "data")
src/storage/manager.py:56
Method__init__
Initialize Anthropic client. Args: config: AI configuration
src/ai/client.py:117
Method__init__
Initialize OpenAI-compatible client. Args: config: AI configuration
src/ai/client.py:200
Method__init__
Initialize Azure OpenAI client. Args: config: AI configuration
src/ai/client.py:342
Method__init__
Initialize Gemini client. Args: config: AI configuration
src/ai/client.py:462
Method__init__
( self, configs: List[AIConfig], clients: Optional[List[AIClient]] = None, cli
src/ai/client.py:549
Method__init__
(self, ai_client: AIClient)
src/ai/analyzer.py:21
Method__init__
(self)
src/ai/summarizer.py:67
Method__init__
(self, ai_client: AIClient)
src/ai/enricher.py:30
Method__init__
(self, config: EmailConfig, console=None)
src/services/email.py:28
Method__init__
(self, config: WebhookConfig, console=None)
src/services/webhook.py:221
Method__init__
(self, runs_root: Path | None = None)
src/mcp/service.py:46
Method__init__
Initialize RSS scraper. Args: sources: List of RSS feed configurations http_client: Shared async HTTP client
src/scrapers/rss.py:23
Method__init__
Initialize the scraper. Args: config: OpenBB source configuration. http_client: Shared httpx client (unused here; kep
src/scrapers/openbb.py:47
Method__init__
Initialize the scraper. Args: config: GDELT source configuration. http_client: Shared async HTTP client.
src/scrapers/gdelt.py:42
Method__init__
Initialize scraper. Args: config: Scraper-specific configuration http_client: Shared async HTTP client
src/scrapers/base.py:14
Method__init__
Initialize GitHub scraper. Args: sources: List of GitHub source configurations http_client: Shared async HTTP client
src/scrapers/github.py:18
Method__init__
(self, config: TelegramConfig, http_client: httpx.AsyncClient)
src/scrapers/telegram.py:24
Method__init__
(self, config: TwitterConfig, http_client=None)
src/scrapers/twitter_playwright.py:67
Method__init__
Initialize scraper. Args: config: OSS Insight source configuration http_client: Shared async HTTP client
src/scrapers/ossinsight.py:24
Method__init__
(self, config: HackerNewsConfig, http_client: httpx.AsyncClient)
src/scrapers/hackernews.py:22
Method__init__
(self, config: TwitterConfig, http_client: httpx.AsyncClient)
src/scrapers/twitter.py:26
Method__init__
(self, config: RedditConfig, http_client: httpx.AsyncClient)
src/scrapers/reddit.py:49
Method__init__
Initialize the scraper. Args: config: Google News source configuration. http_client: Shared async HTTP client.
src/scrapers/google_news.py:52
Method__init__
(self, server, port)
tests/test_email.py:10
Method__init__
(self, server, port)
tests/test_email.py:33
Method__init__
(self, result=None, exc=None)
tests/test_chained_client.py:15
Method__init__
(self, *clients)
tests/test_chained_client.py:30
Method__post_init__
(self)
src/mcp/run_store.py:30
Method__str__
(self)
src/mcp/errors.py:17
Method_generate_summary
Generate daily summary. Args: items: Important items to include (already enriched with background/related) date: Date
src/orchestrator.py:705
Method_process
(item: ContentItem, index: int, progress_task)
src/ai/analyzer.py:49
Method_process
(item: ContentItem, progress_task)
src/ai/enricher.py:48
Function_replace
(match: re.Match)
src/ai/markdown_utils.py:65
Function_replace
(match: re.Match)
src/services/webhook.py:82
Functionanalyze_content
(input_items)
tests/test_balanced_digest.py:169
Functioncollect_sources_from_domains
Flatten matched domains into a deduplicated list of source configs. Args: matched_domains: Output from match_domains(). Returns:
src/setup/presets.py:181
Methodcomplete
Generate completion using Claude. Args: system: System prompt user: User prompt temperature: Sampling tem
src/ai/client.py:136
Methodcomplete
Generate completion using Gemini. Args: system: System prompt user: User prompt temperature: Sampling tem
src/ai/client.py:477
Methodcomplete
(self, system, user, temperature=None, max_tokens=None)
tests/test_chained_client.py:20
Functionenrich_important_items
(input_items)
tests/test_balanced_digest.py:178
Functionexpand_twitter_discussion
(input_items)
tests/test_balanced_digest.py:175
Methodextract_tweets
(obj)
src/scrapers/twitter_playwright.py:211
Functionfake_analyze_item
(item)
tests/test_analyzer.py:25
Functionfake_sleep
(seconds)
tests/test_analyzer.py:28
Methodfetch
Fetch items from all enabled OpenBB watchlists. Args: since: Only return items published strictly after this time. Retur
src/scrapers/openbb.py:79
Methodfetch
Fetch content items published since the given time. Args: since: Only fetch items published after this time Returns:
src/scrapers/base.py:25
Methodfetch
Fetch GitHub content items. Args: since: Only fetch items published after this time Returns: List[ContentIte
src/scrapers/github.py:43
Methodfetch
(self, since: datetime)
src/scrapers/telegram.py:28
Methodfetch
(self, since: datetime)
src/scrapers/twitter_playwright.py:71
Methodfetch
Fetch trending repos for each configured language and apply filters.
src/scrapers/ossinsight.py:35
Methodfetch
(self, since: datetime)
src/scrapers/hackernews.py:26
Methodfetch
(self, since: datetime)
src/scrapers/twitter.py:30
Functionfetch_all_sources
(since)
tests/test_balanced_digest.py:166
Methodfetch_all_sources
(self, since)
tests/test_mcp_service_smoke.py:95
Methodhandle_response
(response)
src/scrapers/twitter_playwright.py:205
Functionhandler
(request: httpx.Request)
tests/test_reddit.py:122
Functionhandler
(request: httpx.Request)
tests/test_twitter.py:118
Functionhz_enrich_items
Enrich filtered items into the enriched stage.
src/mcp/server.py:218
Functionhz_fetch_items
Fetch and deduplicate content into the raw stage.
src/mcp/server.py:152
Functionhz_filter_items
Filter scored items into the filtered stage.
src/mcp/server.py:194
Functionhz_generate_summary
Generate a markdown summary from a stage.
src/mcp/server.py:238
Functionhz_get_run_meta
Read run metadata.
src/mcp/server.py:314
Functionhz_get_run_stage
Read items from a run stage.
src/mcp/server.py:336
Functionhz_get_run_summary
Read a generated run summary.
src/mcp/server.py:358
Functionhz_list_runs
List recent runs and stage states.
src/mcp/server.py:292
Functionhz_run_pipeline
Run fetch -> score -> filter -> enrich -> summarize in one call.
src/mcp/server.py:262
Functionhz_score_items
Score a stage into the scored stage.
src/mcp/server.py:174
Functionhz_send_webhook
Send a webhook notification with the given variables. Uses the webhook URL (from environment variable), request_body template, and headers fr
src/mcp/server.py:402
Functionhz_validate_config
Validate Horizon config and required environment variables.
src/mcp/server.py:132
Methodlist_runs
List recent runs and stage availability.
src/mcp/service.py:56
Functionmain
Main entry point for the setup wizard.
src/setup/wizard.py:354
Functionmatch_domains
Match user interest description against preset domains. Performs case-insensitive keyword matching against domain keywords and source tags. R
src/setup/presets.py:137
Methodmerge_cross_source_duplicates
(self, items)
tests/test_mcp_service_smoke.py:98
Functionmerge_topic_duplicates
(input_items)
tests/test_balanced_digest.py:172
Methodmerge_topic_duplicates
(self, items)
tests/test_mcp_service_smoke.py:132
Methodnormalize_url
(url: str)
src/orchestrator.py:390
Functionprint_config_template
Print configuration template.
src/main.py:89
Methodprocess_queue
(context_idx: int, queue: list[str], is_retry: bool = False)
src/scrapers/twitter_playwright.py:140
Functionr_effective_config
Effective default config resolved from local Horizon path.
src/mcp/server.py:491
Functionr_metrics
In-memory metrics snapshot.
src/mcp/server.py:447
Functionr_run_items
Run stage items resource.
src/mcp/server.py:471
Functionr_run_meta
Run metadata resource.
src/mcp/server.py:461
Functionr_run_summary
Run summary resource.
src/mcp/server.py:481
Functionr_runs
Recent run list.
src/mcp/server.py:454
Functionr_server_info
Server metadata resource.
src/mcp/server.py:436
Functionreset_usage
Reset all accumulated usage (useful for tests).
src/ai/tokens.py:64
Functionresolve_tag_alias
Resolve a tag or alias to its canonical form (lowercased).
src/setup/tag_aliases.py:116
Methodroute_handler
(route)
src/scrapers/twitter_playwright.py:253
Methodrun_store
(self)
src/mcp/service.py:51
Functionsearch_related
Search HN + Reddit for each item concurrently. Returns {item.id: [related_stories]}. Deduplicates by URL against each item's own URL.
src/search.py:66
Methodtest_2xx_dingtalk_error_code_prints_yellow_warning
DingTalk returns HTTP 200 with errcode=400 in body — should be yellow warning.
tests/test_webhook.py:1366
Methodtest_2xx_feishu_error_code_prints_yellow_warning
Feishu returns HTTP 200 with code=19001 in body — should be yellow warning.
tests/test_webhook.py:1341
Methodtest_2xx_non_json_body_prints_green
Non-JSON 2xx response body prints as green (no error code check possible).
tests/test_webhook.py:1415
Methodtest_2xx_slack_ok_false_prints_yellow_warning
Slack returns HTTP 200 with ok=false — should be yellow warning.
tests/test_webhook.py:1391
Methodtest_2xx_success_prints_response
(self)
tests/test_webhook.py:1316
Methodtest_3xx_redirect_prints_warning
(self)
tests/test_webhook.py:1439
Methodtest_4xx_client_error_prints_warning
(self)
tests/test_webhook.py:1462
Methodtest_5xx_server_error_prints_warning
(self)
tests/test_webhook.py:1484
Functiontest_ai_recommendations_available_for_ollama_without_api_key
()
tests/test_setup_wizard.py:34
← previousnext →301–400 of 669, ranked by callers