Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Osmantic/ODS
/ functions
Functions
5,548 in github.com/Osmantic/ODS
⨍
Functions
5,548
◇
Types & classes
474
↳
Endpoints
174
↓ 557 callers
Method
json
()
ods/extensions/services/dashboard-api/tests/test_models.py:265
↓ 555 callers
Method
get
(self, url, **_kwargs)
ods/extensions/services/dashboard-api/tests/test_models.py:278
↓ 526 callers
Method
get
(self, key: str, default: object | None = None)
ods/extensions/services/dashboard-api/main.py:98
↓ 367 callers
Method
post
(self, url)
ods/extensions/services/dashboard-api/tests/test_remote_provider_status.py:1055
↓ 98 callers
Method
run
Execute load test with all agents
ods/tests/dashboard-load-test.py:105
↓ 94 callers
Function
_patch_mutation_config
Patch config values for mutation endpoint tests.
ods/extensions/services/dashboard-api/tests/test_extensions.py:432
↓ 85 callers
Function
run
(topology_path, model_size_mb, enabled_services=None)
ods/tests/test-assign-gpus.py:12
↓ 72 callers
Method
_do_model_activate
Inner activate logic — called with _model_activate_lock held.
ods/bin/ods-host-agent.py:7290
↓ 68 callers
Method
parse_response
(self)
ods/extensions/services/dashboard-api/tests/test_host_agent.py:2005
↓ 68 callers
Function
print
()
ods/extensions/services/dashboard/src/pages/Invites.jsx:684
↓ 61 callers
Function
_write_model_activation_fixture
( tmp_path, gpu_backend="nvidia", lemonade=False, lemonade_api_key=None, )
ods/extensions/services/dashboard-api/tests/test_model_activate.py:2397
↓ 61 callers
Method
get
Get a provider instance by name. Creates a new instance with the given config. Does not cache instances with custom configs.
ods/extensions/services/token-spy/providers/registry.py:29
↓ 58 callers
Function
next
()
ods/extensions/services/dashboard/src/pages/FirstBoot.jsx:94
↓ 53 callers
Function
json_response
(handler, code: int, body: dict)
ods/bin/ods-host-agent.py:4019
↓ 50 callers
Method
add
(self, path: str, message: str)
ods/scripts/validate-golden-paths.py:22
↓ 45 callers
Method
set
(self, key: str, value: object, ttl: float)
ods/extensions/services/dashboard-api/main.py:108
↓ 44 callers
Function
_setup_library_ext
Create a library extension directory with compose.yaml and manifest.
ods/extensions/services/dashboard-api/tests/test_extensions.py:403
↓ 44 callers
Function
make_client
Factory: returns (client, main_module) with state loaded. Optionally accepts extra env overrides applied before the (re)import.
ods/extensions/services/ape/tests/conftest.py:61
↓ 40 callers
Function
_patch_model_router_paths
(monkeypatch, tmp_path)
ods/extensions/services/dashboard-api/tests/test_models.py:1475
↓ 40 callers
Method
close
(self)
ods/extensions/services/dashboard-api/tests/test_talk.py:511
↓ 36 callers
Function
check_auth
(handler)
ods/bin/ods-host-agent.py:4085
↓ 36 callers
Method
parse_response
(self)
ods/extensions/services/dashboard-api/tests/test_model_activate.py:2291
↓ 36 callers
Function
write_state
(runtime="Concrete.gguf", endpoint="llama-server-default", queue=False, route_seq=7, seq=N
ods/extensions/services/model-router/tests/test_router.py:72
↓ 35 callers
Function
_agent_viable_for_release
(model, host=None)
ods/tests/test-model-library-coverage.py:50
↓ 33 callers
Method
run
(*args, **kwargs)
ods/extensions/services/dashboard-api/tests/test_host_agent.py:6208
↓ 32 callers
Function
_gpu
(name="NVIDIA GeForce RTX 4060", total_mb=8192, backend="nvidia")
ods/extensions/services/dashboard-api/tests/test_performance_oracle.py:19
↓ 30 callers
Method
clear
(self)
ods/extensions/services/dashboard-api/tests/test_host_agent.py:5245
↓ 29 callers
Function
parallelism
(output)
ods/tests/test-assign-gpus.py:31
↓ 29 callers
Method
start
(self)
ods/extensions/services/model-router/app/main.py:141
↓ 29 callers
Method
write
(self, _payload)
ods/extensions/services/dashboard-api/tests/test_model_activate.py:2355
↓ 27 callers
Function
build_models_payload
(gpu_info: Optional[GPUInfo], loaded_model: Optional[str], live_tps: float, install_d
ods/extensions/services/dashboard-api/performance_oracle.py:1266
↓ 26 callers
Function
_write_model_library
(install_dir, models)
ods/extensions/services/dashboard-api/tests/test_models.py:1451
↓ 26 callers
Function
load_extension_manifests
Load service and feature definitions from extension manifests. Returns a 3-tuple: (services, features, errors) where *errors* is a list of ``
ods/extensions/services/dashboard-api/config.py:295
↓ 26 callers
Method
scrub
Scrub PII from text, replace with tokens. Returns scrubbed text.
ods/extensions/services/privacy-shield/pii_scrubber.py:73
↓ 25 callers
Method
read
(self, size: int)
ods/extensions/services/dashboard-api/gguf_inspector.py:95
↓ 25 callers
Method
shutdown
(self)
ods/extensions/services/dashboard-api/tests/test_host_agent.py:149
↓ 25 callers
Method
start
(self)
ods/extensions/services/dashboard-api/tests/test_host_agent.py:4223
↓ 24 callers
Function
_make_catalog_ext
(ext_id, name="Test", category="optional", gpu_backends=None, env_vars=None, features=No
ods/extensions/services/dashboard-api/tests/test_extensions.py:19
↓ 24 callers
Function
assert_true
(condition: bool, message: str)
ods/tests/contracts/test-remote-provider-egress-policy.py:68
↓ 23 callers
Method
_prepare
(self, monkeypatch, tmp_path, *, enabled=True)
ods/extensions/services/dashboard-api/tests/test_extensions.py:3430
↓ 23 callers
Function
_setup_user_ext
Create a user-installed extension directory.
ods/extensions/services/dashboard-api/tests/test_extensions.py:417
↓ 22 callers
Function
apply_template
Apply a template by enabling its listed services (additive only). Uses the same dep-aware enable flow as enable_extension with auto_enable_de
ods/extensions/services/dashboard-api/routers/templates.py:153
↓ 22 callers
Function
inspect_gguf
Return normalized GGUF metadata, degrading to ``unknown`` on failure.
ods/extensions/services/dashboard-api/gguf_inspector.py:180
↓ 22 callers
Method
json
(self)
ods/extensions/services/dashboard-api/tests/test_remote_provider_status.py:359
↓ 21 callers
Method
addEventListener
()
ods/extensions/services/dashboard/src/pages/ODSTalk.test.jsx:518
↓ 21 callers
Method
delete
(self, env: dict[str, str])
ods/bin/model_switchboard/adapters.py:370
↓ 21 callers
Method
urlopen
(url, timeout)
ods/extensions/services/dashboard-api/tests/test_host_agent.py:6286
↓ 20 callers
Function
_patch_extensions_config
Apply standard patches for extensions router tests.
ods/extensions/services/dashboard-api/tests/test_extensions.py:55
↓ 20 callers
Function
render
(args: argparse.Namespace)
ods/scripts/render-runtime-configs.py:731
↓ 20 callers
Method
request
(self, method, url, headers)
ods/extensions/services/dashboard-api/tests/test_remote_provider_status.py:372
↓ 20 callers
Method
skip
(self, size: int)
ods/extensions/services/dashboard-api/gguf_inspector.py:102
↓ 19 callers
Function
_verify
(client, tool="read_file", args=None, session="s1")
ods/extensions/services/ape/tests/test_main.py:14
↓ 19 callers
Function
check_service_health
Check if a service is healthy by hitting its health endpoint. *timeout* overrides the session-level timeout for a single probe. The catalog
ods/extensions/services/dashboard-api/helpers.py:623
↓ 19 callers
Method
get
(self, path: Path)
ods/extensions/services/dashboard-api/helpers.py:32
↓ 19 callers
Function
get_bootstrap_status
Get bootstrap download progress if active.
ods/extensions/services/dashboard-api/helpers.py:904
↓ 19 callers
Function
llama
(output)
ods/tests/test-assign-gpus.py:28
↓ 19 callers
Method
load
(self, items)
ods/examples/sample-code.py:52
↓ 19 callers
Function
run_renderer
(*args: str)
ods/tests/test-render-runtime-configs.py:30
↓ 18 callers
Function
_write
(tmp_path, name, data: bytes)
ods/extensions/services/dashboard-api/tests/test_gguf_inspector.py:57
↓ 18 callers
Function
fixture_path
(name)
ods/tests/test-assign-gpus.py:9
↓ 18 callers
Method
is_alive
(self)
ods/extensions/services/dashboard-api/tests/test_host_agent.py:2977
↓ 18 callers
Function
load_env
Parse .env file, return dict of key=value pairs.
ods/bin/ods-host-agent.py:1746
↓ 18 callers
Function
normalize_key
(value: Any)
ods/extensions/services/dashboard-api/performance_oracle.py:51
↓ 18 callers
Function
plan_route
Build a safe public route description from non-secret remote metadata.
ods/bin/remote_provider/policy.py:368
↓ 18 callers
Method
read
(self, _size=-1)
ods/extensions/services/dashboard-api/tests/test_host_agent.py:6283
↓ 17 callers
Method
_setup_env
( self, tmp_path, monkeypatch, library_models=None, expected_payload=b
ods/extensions/services/dashboard-api/tests/test_host_agent.py:5254
↓ 17 callers
Function
build_gguf
Encode ``kvs`` (list of ``(key, value_type, value)``) as a GGUF blob.
ods/extensions/services/dashboard-api/tests/test_gguf_inspector.py:48
↓ 16 callers
Function
_check_lemonade_health
Check if Lemonade health response indicates a model is loaded. Lemonade returns {"status": "ok", "model_loaded": null} when healthy but no mo
ods/bin/ods-host-agent.py:8798
↓ 16 callers
Function
_scan_compose_content
Reject compose files containing dangerous directives.
ods/extensions/services/dashboard-api/routers/extensions.py:510
↓ 16 callers
Function
read_json_body
(handler)
ods/bin/ods-host-agent.py:4098
↓ 15 callers
Method
_handle_model_download
Start async model download. Only one download at a time. Supports both single-file and split-file (gguf_parts) models. For split mode
ods/bin/ods-host-agent.py:6516
↓ 15 callers
Function
_init_flow
Bootstrap a valid nonce for ``skill_id``. Returns the state string. Every callback happy-path test starts here — mirrors what Hermes does on `
ods/extensions/services/dashboard-api/tests/test_oauth_passthrough.py:44
↓ 15 callers
Function
_model
()
ods/extensions/services/dashboard-api/tests/test_performance_oracle.py:31
↓ 15 callers
Function
_patch_state_path
(monkeypatch, path)
ods/extensions/services/dashboard-api/tests/test_remote_provider_status.py:50
↓ 15 callers
Method
aclose
(self)
ods/extensions/services/dashboard-api/lemonade_client.py:121
↓ 15 callers
Function
file_by_surface
(payload: dict[str, object], surface: str)
ods/tests/test-render-runtime-configs.py:42
↓ 14 callers
Function
_official_model_catalog
()
ods/extensions/services/dashboard-api/tests/test_performance_oracle.py:46
↓ 14 callers
Function
_write_amd_gpu_plan_fixture
(tmp_path, monkeypatch)
ods/extensions/services/dashboard-api/tests/test_model_activate.py:2695
↓ 14 callers
Function
_write_nvidia_gpu_plan_fixture
(tmp_path, monkeypatch)
ods/extensions/services/dashboard-api/tests/test_model_activate.py:2586
↓ 14 callers
Function
assert_true
(condition: bool, message: str)
ods/tests/contracts/test-remote-provider-egress-service.py:41
↓ 14 callers
Function
calculate_feature_status
Calculate whether a feature can be enabled and its status.
ods/extensions/services/dashboard-api/routers/features.py:19
↓ 14 callers
Function
get_model_info
Get current model info from .env config.
ods/extensions/services/dashboard-api/helpers.py:815
↓ 14 callers
Method
wait
(self)
ods/extensions/services/dashboard-api/tests/test_setup_sentinel.py:43
↓ 13 callers
Function
_compute_env_apply_plan
( previous_values: dict[str, str], next_values: dict[str, str], active_services: Optional[set[str]
ods/extensions/services/dashboard-api/settings.py:445
↓ 13 callers
Function
_iso_now
()
ods/bin/ods-host-agent.py:3687
↓ 13 callers
Function
_record
(path, model="qwen3.5-9b", runtime="Qwen3.5-9B-Q4_K_M.gguf", backend="llama-server", endpoint="lla
ods/extensions/services/dashboard-api/tests/test_model_state.py:24
↓ 13 callers
Function
_rewrite_build_context
Rewrite build.context in a staged compose.yaml to an absolute path. Library extensions ship `build: { context: ., ... }` so they're portable
ods/extensions/services/dashboard-api/routers/extensions.py:1519
↓ 13 callers
Function
_route_state
( model: str = "qwen/remote:latest", *, peer: dict[str, object] | None = None, status: dict[st
ods/extensions/services/dashboard-api/tests/test_remote_provider_status.py:8
↓ 13 callers
Function
get_loaded_model
Query llama-server for actually loaded model name.
ods/extensions/services/dashboard-api/helpers.py:528
↓ 13 callers
Function
model_app_compatibility
( model: dict[str, Any], performance: Optional[dict[str, Any]] = None, runtime_context: Optional[d
ods/extensions/services/dashboard-api/performance_oracle.py:449
↓ 13 callers
Function
read
(path: Path)
ods/tests/contracts/test-network-exposure-contracts.py:17
↓ 12 callers
Function
_parse_mem_value
Parse Docker memory string like '256MiB' or '4GiB' to MB.
ods/bin/ods-host-agent.py:3238
↓ 12 callers
Function
_verify
(client, payload, session="s1")
ods/extensions/services/ape/tests/test_windowed_governance_contract.py:32
↓ 12 callers
Function
assert_true
(condition: bool, message: str)
ods/tests/contracts/test-remote-provider-ssh-tunnel-service.py:38
↓ 12 callers
Function
assert_true
(condition: bool, message: str)
ods/tests/contracts/test-network-exposure-contracts.py:64
↓ 12 callers
Function
dir_size_gb
Calculate total size of a directory in GB. Returns 0.0 if path doesn't exist. Skips symlinks to avoid following links outside DATA_DIR and double
ods/extensions/services/dashboard-api/helpers.py:768
↓ 12 callers
Method
get
(self, url, **kwargs)
ods/extensions/services/dashboard-api/tests/test_setup.py:290
↓ 12 callers
Function
get_all_services
Get all service health statuses. Uses ``return_exceptions=True`` so that one misbehaving service cannot take down the entire status response.
ods/extensions/services/dashboard-api/helpers.py:681
↓ 12 callers
Method
refresh
Query cluster status from smart proxy
ods/extensions/services/dashboard-api/agent_monitor.py:50
↓ 12 callers
Function
result
(ok: bool, detail: str = "", **extras: Any)
ods/bin/model_switchboard/adapters.py:24
next →
1–100 of 5,548, ranked by callers