Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deedy5/ddgs
/ functions
Functions
277 in github.com/deedy5/ddgs
⨍
Functions
277
◇
Types & classes
55
↳
Endpoints
28
Method
is_running
Check if DHT service is running.
ddgs/api_server/dht_service.py:242
Method
kbucket_distribution
Get peer count per k-bucket (256 buckets total).
ddgs/dht/libp2p_client.py:178
Method
listen_addrs
Get the listen addresses of this node.
ddgs/dht/libp2p_client.py:738
Function
mcp
Start DDGS MCP server over stdio for local MCP clients. Examples: ddgs mcp # Start MCP server using stdio tran
ddgs/cli.py:567
Function
news
CLI function to perform a DDGS news metasearch.
ddgs/cli.py:457
Method
parser
Get HTML parser.
ddgs/base.py:73
Function
pause_between_tests
()
tests/ddgs_test.py:9
Function
pause_between_tests
()
tests/cli_test.py:14
Method
peer_addrs
Get full peer addresses with /p2p/ suffix for connecting.
ddgs/dht/libp2p_client.py:752
Method
peer_id
Get the peer ID of this node.
ddgs/dht/libp2p_client.py:733
Method
port
Get the listen port.
ddgs/dht/libp2p_client.py:728
Method
post
Make a POST request to the HTTP client.
ddgs/http_client2.py:81
Method
post_extract_results
Post-process search results.
ddgs/engines/yahoo.py:55
Method
post_extract_results
Post-process search results.
ddgs/engines/bing_news.py:81
Method
post_extract_results
Post-process search results.
ddgs/engines/bing.py:76
Method
post_extract_results
Post-process search results.
ddgs/engines/google.py:77
Method
post_extract_results
Post-process search results.
ddgs/engines/annasarchive.py:49
Method
post_extract_results
Post-process search results.
ddgs/engines/duckduckgo.py:54
Method
post_extract_results
Post-process search results.
ddgs/engines/yahoo_news.py:94
Method
query_success_rate
Get DHT query success rate (0-1).
ddgs/dht/libp2p_client.py:157
Function
root
Root endpoint with basic service information.
ddgs/api_server/api.py:137
Method
routing_table_size
Get total number of peers in DHT routing table.
ddgs/dht/libp2p_client.py:171
Function
search_books
Perform a book search using DDGS. Args: query: Books search query string max_results: Maximum number of results to return
ddgs/api_server/mcp.py:200
Function
search_books
Perform a book search.
ddgs/api_server/api.py:381
Function
search_books_get
Perform a book search via GET request.
ddgs/api_server/api.py:400
Function
search_images
Perform an image search using DDGS. Args: query: Image search query string region: Region for search (e.g., us-en, uk-en, ru-ru)
ddgs/api_server/mcp.py:59
Function
search_images
Perform an image search.
ddgs/api_server/api.py:201
Function
search_images_get
Perform an image search via GET request.
ddgs/api_server/api.py:228
Function
search_news
Perform a news search using DDGS. Args: query: News search query string region: Region for search (e.g., us-en, uk-en, ru-ru)
ddgs/api_server/mcp.py:113
Function
search_news
Perform a news search.
ddgs/api_server/api.py:268
Function
search_news_get
Perform a news search via GET request.
ddgs/api_server/api.py:290
Function
search_text
Perform a text search using DDGS. Args: query: Search query string region: Region for search (e.g., us-en, uk-en, ru-ru)
ddgs/api_server/mcp.py:20
Function
search_text
Perform a text search.
ddgs/api_server/api.py:149
Function
search_text_get
Perform a text search via GET request.
ddgs/api_server/api.py:171
Function
search_videos
Perform a video search using DDGS. Args: query: Video search query string region: Region for search (e.g., us-en, uk-en, ru-ru)
ddgs/api_server/mcp.py:152
Function
search_videos
Perform a video search.
ddgs/api_server/api.py:320
Function
search_videos_get
Perform a video search via GET request.
ddgs/api_server/api.py:345
Method
select
Select the best value (first one).
ddgs/dht/libp2p_client.py:111
Method
start
Start the DHT client and connect to the network. Args: timeout: Maximum time to wait for service to start. Returns:
ddgs/dht/libp2p_client.py:366
Method
stop
Stop the DHT service.
ddgs/api_server/dht_service.py:97
Function
test_books_command
()
tests/cli_test.py:43
Function
test_books_search
()
tests/ddgs_test.py:43
Function
test_bootstrap_local_only_fallback
Test that client works correctly even when bootstrap is unreachable.
tests/dht_test.py:323
Function
test_bootstrap_network_connectivity
Test that client can connect to public bootstrap network.
tests/dht_test.py:252
Function
test_bootstrap_value_replication
Test that value stored on one client propagates to another via bootstrap network. IMPORTANT: This test is expected to fail right now. Kademlia do
tests/dht_test.py:279
Function
test_cache_ttl
Test cache TTL expiration.
tests/dht_test.py:146
Function
test_context_manager
()
tests/ddgs_test.py:13
Function
test_dht_put_and_get_between_instances
Test DHT put/get between two libp2p instances. Important note: This test has realistic propagation delays. Kademlia requires time for routing
tests/dht_test.py:83
Function
test_dht_query_timeout
Test DHT query timeout functionality.
tests/dht_test.py:160
Function
test_extract
()
tests/ddgs_test.py:49
Function
test_extract_content
()
tests/ddgs_test.py:64
Function
test_extract_text_plain
()
tests/ddgs_test.py:58
Function
test_images_command
()
tests/cli_test.py:28
Function
test_images_search
()
tests/ddgs_test.py:25
Function
test_images_workflow
Combined test for images search and download functionality.
tests/cli_test.py:72
Function
test_libp2p_client_start
Test that libp2p client can start.
tests/dht_test.py:24
Function
test_libp2p_two_instances_connect
Test that two libp2p instances can connect to each other. Note: This test currently fails on localhost due to a known issue in py-libp2p, but
tests/dht_test.py:37
Function
test_local_cache_eviction
Test local cache eviction when max size is reached.
tests/dht_test.py:178
Function
test_negative_cache
Test negative cache functionality.
tests/dht_test.py:198
Function
test_network_client_invalidate
Test DhtClient cache invalidation.
tests/dht_test.py:217
Function
test_network_client_local_cache
Test DhtClient local cache (no DHT).
tests/dht_test.py:132
Function
test_news_command
()
tests/cli_test.py:33
Function
test_news_search
()
tests/ddgs_test.py:31
Function
test_peer_connection_error_handling
Test that connection failures are handled gracefully.
tests/dht_test.py:238
Function
test_text_command
()
tests/cli_test.py:23
Function
test_text_search
()
tests/ddgs_test.py:19
Function
test_text_workflow
Combined test for text search, save, and download functionality.
tests/cli_test.py:48
Function
test_version_command
()
tests/cli_test.py:18
Function
test_videos_command
()
tests/cli_test.py:38
Function
test_videos_search
()
tests/ddgs_test.py:37
Function
text
CLI function to perform a DDGS text metasearch.
ddgs/cli.py:220
Method
text_markdown
Get response body as Markdown text.
ddgs/http_client.py:25
Method
text_plain
Get response body as plain text.
ddgs/http_client.py:30
Method
text_rich
Get response body as rich text.
ddgs/http_client.py:35
Method
validate
Validate a key-value pair.
ddgs/dht/libp2p_client.py:105
Function
version
Print and return version.
ddgs/cli.py:176
Function
videos
CLI function to perform a DDGS videos metasearch.
ddgs/cli.py:398
← previous
201–277 of 277, ranked by callers