Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Thysrael/Horizon
/ functions
Functions
669 in github.com/Thysrael/Horizon
⨍
Functions
669
◇
Types & classes
97
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
Function
analyze_content
(input_items)
tests/test_balanced_digest.py:169
Function
collect_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
Method
complete
Generate completion using Claude. Args: system: System prompt user: User prompt temperature: Sampling tem
src/ai/client.py:136
Method
complete
Generate completion using Gemini. Args: system: System prompt user: User prompt temperature: Sampling tem
src/ai/client.py:477
Method
complete
(self, system, user, temperature=None, max_tokens=None)
tests/test_chained_client.py:20
Function
enrich_important_items
(input_items)
tests/test_balanced_digest.py:178
Function
expand_twitter_discussion
(input_items)
tests/test_balanced_digest.py:175
Method
extract_tweets
(obj)
src/scrapers/twitter_playwright.py:211
Function
fake_analyze_item
(item)
tests/test_analyzer.py:25
Function
fake_sleep
(seconds)
tests/test_analyzer.py:28
Method
fetch
Fetch items from all enabled OpenBB watchlists. Args: since: Only return items published strictly after this time. Retur
src/scrapers/openbb.py:79
Method
fetch
Fetch content items published since the given time. Args: since: Only fetch items published after this time Returns:
src/scrapers/base.py:25
Method
fetch
Fetch GitHub content items. Args: since: Only fetch items published after this time Returns: List[ContentIte
src/scrapers/github.py:43
Method
fetch
(self, since: datetime)
src/scrapers/telegram.py:28
Method
fetch
(self, since: datetime)
src/scrapers/twitter_playwright.py:71
Method
fetch
Fetch trending repos for each configured language and apply filters.
src/scrapers/ossinsight.py:35
Method
fetch
(self, since: datetime)
src/scrapers/hackernews.py:26
Method
fetch
(self, since: datetime)
src/scrapers/twitter.py:30
Function
fetch_all_sources
(since)
tests/test_balanced_digest.py:166
Method
fetch_all_sources
(self, since)
tests/test_mcp_service_smoke.py:95
Method
handle_response
(response)
src/scrapers/twitter_playwright.py:205
Function
handler
(request: httpx.Request)
tests/test_reddit.py:122
Function
handler
(request: httpx.Request)
tests/test_twitter.py:118
Function
hz_enrich_items
Enrich filtered items into the enriched stage.
src/mcp/server.py:218
Function
hz_fetch_items
Fetch and deduplicate content into the raw stage.
src/mcp/server.py:152
Function
hz_filter_items
Filter scored items into the filtered stage.
src/mcp/server.py:194
Function
hz_generate_summary
Generate a markdown summary from a stage.
src/mcp/server.py:238
Function
hz_get_run_meta
Read run metadata.
src/mcp/server.py:314
Function
hz_get_run_stage
Read items from a run stage.
src/mcp/server.py:336
Function
hz_get_run_summary
Read a generated run summary.
src/mcp/server.py:358
Function
hz_list_runs
List recent runs and stage states.
src/mcp/server.py:292
Function
hz_run_pipeline
Run fetch -> score -> filter -> enrich -> summarize in one call.
src/mcp/server.py:262
Function
hz_score_items
Score a stage into the scored stage.
src/mcp/server.py:174
Function
hz_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
Function
hz_validate_config
Validate Horizon config and required environment variables.
src/mcp/server.py:132
Method
list_runs
List recent runs and stage availability.
src/mcp/service.py:56
Function
main
Main entry point for the setup wizard.
src/setup/wizard.py:354
Function
match_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
Method
merge_cross_source_duplicates
(self, items)
tests/test_mcp_service_smoke.py:98
Function
merge_topic_duplicates
(input_items)
tests/test_balanced_digest.py:172
Method
merge_topic_duplicates
(self, items)
tests/test_mcp_service_smoke.py:132
Method
normalize_url
(url: str)
src/orchestrator.py:390
Function
print_config_template
Print configuration template.
src/main.py:89
Method
process_queue
(context_idx: int, queue: list[str], is_retry: bool = False)
src/scrapers/twitter_playwright.py:140
Function
r_effective_config
Effective default config resolved from local Horizon path.
src/mcp/server.py:491
Function
r_metrics
In-memory metrics snapshot.
src/mcp/server.py:447
Function
r_run_items
Run stage items resource.
src/mcp/server.py:471
Function
r_run_meta
Run metadata resource.
src/mcp/server.py:461
Function
r_run_summary
Run summary resource.
src/mcp/server.py:481
Function
r_runs
Recent run list.
src/mcp/server.py:454
Function
r_server_info
Server metadata resource.
src/mcp/server.py:436
Function
reset_usage
Reset all accumulated usage (useful for tests).
src/ai/tokens.py:64
Function
resolve_tag_alias
Resolve a tag or alias to its canonical form (lowercased).
src/setup/tag_aliases.py:116
Method
route_handler
(route)
src/scrapers/twitter_playwright.py:253
Method
run_store
(self)
src/mcp/service.py:51
Function
search_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
Method
test_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
Method
test_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
Method
test_2xx_non_json_body_prints_green
Non-JSON 2xx response body prints as green (no error code check possible).
tests/test_webhook.py:1415
Method
test_2xx_slack_ok_false_prints_yellow_warning
Slack returns HTTP 200 with ok=false — should be yellow warning.
tests/test_webhook.py:1391
Method
test_2xx_success_prints_response
(self)
tests/test_webhook.py:1316
Method
test_3xx_redirect_prints_warning
(self)
tests/test_webhook.py:1439
Method
test_4xx_client_error_prints_warning
(self)
tests/test_webhook.py:1462
Method
test_5xx_server_error_prints_warning
(self)
tests/test_webhook.py:1484
Function
test_ai_recommendations_available_for_ollama_without_api_key
()
tests/test_setup_wizard.py:34
← previous
next →
301–400 of 669, ranked by callers