Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Screenly/Anthias
/ functions
Functions
1,832 in github.com/Screenly/Anthias
⨍
Functions
1,832
◇
Types & classes
160
↳
Endpoints
84
Method
respawning_wrapper
(send: Any)
tests/test_media_player.py:1051
Function
restore_blank_state
()
tests/test_viewer.py:2138
Function
restore_shuffle_setting
()
tests/test_scheduler.py:114
Function
revalidate_asset_url
On-demand probe for a single asset. Triggered when the viewer hits an asset it can't display, so the sweep doesn't have to be the only path t
src/anthias_server/celery_tasks.py:1448
Function
revalidate_asset_urls
Refresh ``Asset.is_reachable`` for every enabled asset. Runs on the celery-beat schedule registered in ``setup_periodic_tasks``. Skips disabl
src/anthias_server/celery_tasks.py:1173
Function
rf
()
tests/test_error_pages.py:36
Function
sectionAllSelected
(section)
src/anthias_server/app/static/src/home.ts:292
Method
sectionAllSelected
(section: SectionKey)
src/anthias_server/app/static/src/home.ts:75
Function
sectionSomeSelected
(section)
src/anthias_server/app/static/src/home.ts:298
Method
sectionSomeSelected
(section: SectionKey)
src/anthias_server/app/static/src/home.ts:76
Function
seeded_assets
Three rows covering the local-file path (image+video) and the URL-backed path. Tests assert on names rather than ids so an eventual reordering
tests/test_migrate_to_screenly.py:63
Function
send_telemetry_task
()
src/anthias_server/celery_tasks.py:342
Method
set_asset
(self, uri: str, duration: int | str)
src/anthias_viewer/media_player.py:532
Function
set_browser_bus
Inject the AnthiasViewer D-Bus proxy. Called from ``anthias_viewer/__init__.py`` after the webview's ``Anthias service start`` handshake. ``M
src/anthias_viewer/media_player.py:36
Function
set_display_power
Send a CEC power_on / standby to the connected TV. Returns ``(ok, message)`` for direct surfacing to the operator as a toast. Stays synchrono
src/anthias_server/lib/diagnostics.py:107
Function
set_ip_addresses
()
src/anthias_host_agent/__main__.py:75
Function
set_send_to_webview
Inject the webview-gone-aware call wrapper (see ``_send_to_webview`` in anthias_viewer/__init__.py). Injected from setup() alongside ``set_bro
src/anthias_viewer/media_player.py:53
Function
settings_backup
Stream the backup archive as it is being built. The pre-#2987 shape — create_backup() to a staging file, then a FileResponse — sent zero resp
src/anthias_server/app/views.py:1324
Function
settings_data
()
tests/test_telemetry.py:19
Function
settings_display_power
(request: HttpRequest, state: str)
src/anthias_server/app/views.py:1417
Function
settings_env
()
tests/test_settings.py:96
Function
settings_reboot
(request: HttpRequest)
src/anthias_server/app/views.py:1397
Function
settings_recover
(request: HttpRequest)
src/anthias_server/app/views.py:1357
Function
settings_save
Mirror of api.views.v2.DeviceSettingsViewV2.patch. Touches the same settings primitives the API view does so the JSON and HTML write paths st
src/anthias_server/app/views.py:1245
Function
settings_shutdown
(request: HttpRequest)
src/anthias_server/app/views.py:1405
Function
settings_view
(request: HttpRequest)
src/anthias_server/app/views.py:1237
Function
setup_periodic_tasks
(sender: Any, **kwargs: Any)
src/anthias_server/celery_tasks.py:285
Function
shutdown_anthias
Background task to shutdown Anthias
src/anthias_server/celery_tasks.py:1139
Function
side_effect
(url: str, **kwargs: object)
tools/raspberry_pi_imager/tests/test_build_pi_imager_json.py:115
Function
sigalrm
Signal just throw an SigalrmError
src/anthias_viewer/utils.py:16
Function
sparse_guess_extension
(file_type: str)
tests/test_template_views.py:1957
Function
splash_page
(request: HttpRequest)
src/anthias_server/app/views.py:1493
Function
static_root
()
tests/test_views_files.py:214
Function
static_with_mime
(request: HttpRequest, filename: str)
src/anthias_server/app/views_files.py:106
Function
steal_during_sweep
(*args: object, **kwargs: object)
tests/test_celery_tasks.py:452
Method
stop
(self)
src/anthias_viewer/media_player.py:398
Function
syncVisibleIds
(activeIds, inactiveIds)
src/anthias_server/app/static/src/home.ts:282
Method
syncVisibleIds
(activeIds: string[], inactiveIds: string[])
src/anthias_server/app/static/src/home.ts:74
Function
system_info
()
src/anthias_server/app/page_context.py:59
Function
system_info
(request: HttpRequest)
src/anthias_server/app/views.py:1437
Function
telemetry_env
( fake_redis: MagicMock, settings_data: dict[str, Any], )
tests/test_telemetry.py:40
Function
test_24_hour_clock_play_window_end_to_end
Counterpart to the 12-hour regression: with the 24-hour clock enabled in Settings, the play-window pickers run without an AM/PM toggle, post H
tests/test_app.py:1515
Function
test_404_handler_uses_branded_template
End-to-end: with DEBUG off, an unknown URL hits Django's default 404 handler, which loads our 404.html.
tests/test_error_pages.py:54
Function
test_500_handler_returns_branded_body
500's signature differs (no `exception` kwarg) and the renderer skips context processors, so test it on its own.
tests/test_error_pages.py:88
Function
test_active_row_renders_with_drag_handle
( reset_assets: None, page: Page )
tests/test_app.py:497
Function
test_add_asset_modal_layers_over_full_schedule
Add-asset modal must layer correctly above a populated table. Asserts that the modal card has a non-zero bounding box inside the visible viewp
tests/test_app.py:386
Function
test_add_asset_modal_opens
(reset_assets: None, page: Page)
tests/test_app.py:539
Function
test_add_asset_via_image_upload
(reset_assets: None, page: Page)
tests/test_app.py:566
Function
test_add_asset_via_url
(reset_assets: None, page: Page)
tests/test_app.py:547
Function
test_add_asset_via_video_upload
(reset_assets: None, page: Page)
tests/test_app.py:591
Function
test_add_multiple_uploads_at_once
Regression for #3045: selecting several files in one go uploads every one of them. The file input carries ``multiple`` and uploadFiles() in ho
tests/test_app.py:665
Function
test_add_two_uploads_in_one_modal_session
( reset_assets: None, page: Page )
tests/test_app.py:636
Method
test_agrees_with_the_canonical_helper
( self, monkeypatch: pytest.MonkeyPatch )
tests/test_sentry.py:266
Function
test_alpine_click_handlers_fire_on_production_bundle
Regression for Bun --minify-identifiers renaming Alpine's runtime expression evaluator vars. With identifiers minified, ``@click="openAdd()"``
tests/test_app.py:283
Function
test_anthias_assets_blocks_192_lan_client
( factory: RequestFactory, assets_root: Path )
tests/test_views_files.py:158
Function
test_anthias_assets_blocks_public_client
( factory: RequestFactory, assets_root: Path )
tests/test_views_files.py:151
Function
test_anthias_assets_directory_request_404
( factory: RequestFactory, assets_root: Path )
tests/test_views_files.py:197
Function
test_anthias_assets_missing_file
( factory: RequestFactory, assets_root: Path )
tests/test_views_files.py:173
Function
test_anthias_assets_serves_file_for_docker_bridge_client
( factory: RequestFactory, assets_root: Path )
tests/test_views_files.py:144
Function
test_anthias_assets_symlink_escape_blocked
( factory: RequestFactory, assets_root: Path )
tests/test_views_files.py:183
Function
test_anthias_assets_traversal_blocked
( factory: RequestFactory, assets_root: Path )
tests/test_views_files.py:165
Method
test_appends_short_hash_when_env_present
( self, monkeypatch: pytest.MonkeyPatch )
tests/test_sentry.py:213
Function
test_apply_auth_settings_change_password_rejects_too_short
Same validator stack runs on password change.
tests/test_auth.py:523
Function
test_apply_auth_settings_change_password_requires_current
()
tests/test_auth.py:388
Function
test_apply_auth_settings_change_password_success
()
tests/test_auth.py:371
Function
test_apply_auth_settings_change_password_wrong_current
()
tests/test_auth.py:406
Function
test_apply_auth_settings_change_username_collision
Renaming the operator to a username that already exists must raise a friendly error instead of leaking IntegrityError.
tests/test_auth.py:685
Function
test_apply_auth_settings_change_username_success
()
tests/test_auth.py:422
Function
test_apply_auth_settings_disable_requires_current_password
()
tests/test_auth.py:441
Function
test_apply_auth_settings_disable_with_correct_password_succeeds
()
tests/test_auth.py:460
Function
test_apply_auth_settings_initial_enable_creates_superuser
Auth disabled → enabling for the first time creates a User with is_staff/is_superuser=True so the operator can also reach /admin/ via Django's
tests/test_auth.py:306
Function
test_apply_auth_settings_initial_enable_password_mismatch
()
tests/test_auth.py:356
Function
test_apply_auth_settings_initial_enable_rejects_short_password
``AUTH_PASSWORD_VALIDATORS`` is configured with MinimumLengthValidator (default 8). Initial enable must reject a too-short password instead of
tests/test_auth.py:503
Function
test_apply_auth_settings_initial_enable_requires_password
()
tests/test_auth.py:341
Function
test_apply_auth_settings_initial_enable_requires_username
()
tests/test_auth.py:326
Function
test_apply_auth_settings_noop_does_not_write_user_row
``apply_auth_settings`` runs on every settings POST (the form sends the whole page, including unrelated toggles like show_splash). When nothin
tests/test_auth.py:648
Function
test_apply_auth_settings_re_enable_with_correct_pwd_succeeds
Same setup as the privilege-escalation test, but with the correct current password — re-enable should succeed and may rotate the operator's us
tests/test_auth.py:594
Function
test_apply_auth_settings_re_enable_with_persisted_user_requires_pwd
Privilege-escalation guard: when auth is currently disabled (``auth_backend == ''``) but a User row already exists in the DB (e.g. preserved b
tests/test_auth.py:543
Function
test_apply_auth_settings_rejects_non_operator_session
If a recovery superuser was created via ``manage.py createsuperuser`` and that recovery account is the one currently logged in, ``apply_auth_s
tests/test_auth.py:616
Function
test_apply_auth_settings_rejects_unknown_backend
A hand-crafted form POST that smuggles an unknown auth_backend value (e.g. 'something-else') must be rejected before any DB or conf mutation.
tests/test_auth.py:478
Function
test_apply_wlr_power_noop_off_wayland
eglfs/linuxfb boards can't be powered off via wlr-randr; the call is a no-op there (the blank path paints black instead).
tests/test_viewer.py:2181
Function
test_apply_wlr_power_targets_all_outputs_including_disabled
Power-off/on must reach *disabled* outputs too, so unblank can turn a previously blanked (Enabled: no) connector back on.
tests/test_viewer.py:2147
Function
test_apply_wlr_transform_invokes_wlr_randr_per_output
On x86, list enabled outputs then push the transform to each.
tests/test_viewer.py:1481
Function
test_apply_wlr_transform_logs_warning_on_nonzero_exit
wlr-randr's exit code is informative — cage may not be ready yet, the output name can vanish between list and apply, etc. The helper must surf
tests/test_viewer.py:1559
Function
test_apply_wlr_transform_runs_on_pi5
Issue #3044: the wlr-randr path must actually fire on Pi 5 — previously gated behind an x86-only _is_wayland_board(), so the rotation menu was
tests/test_viewer.py:1254
Function
test_apply_wlr_transform_skipped_on_linuxfb
The wlr-randr binary isn't even shipped on Pi boards — make sure we never call it from a non-wayland viewer.
tests/test_viewer.py:1466
Function
test_asset_content
(api_client: APIClient, cleanup_asset_dir: None)
src/anthias_server/api/tests/test_v1_endpoints.py:42
Function
test_asset_ids_filter_emits_json_array
(bulk_assets: list[Asset])
tests/test_template_views.py:1619
Function
test_asset_ids_json_is_html_escaped_in_x_init
Regression for the Copilot review of #3048: the asset_ids JSON is inlined into a double-quoted x-init="…" attribute, so its own double quotes
tests/test_template_views.py:1660
Function
test_asset_loop_consumes_pending_rotation_bounce
asset_loop must consume the subscriber-set flag at the top of each tick — that's the main-thread side of the cross-thread handoff that keeps v
tests/test_viewer.py:1770
Function
test_asset_loop_does_not_recheck_missing_local_asset
()
tests/test_viewer.py:857
Function
test_asset_loop_rechecks_unreachable_remote_asset
()
tests/test_viewer.py:878
Function
test_asset_loop_retries_wayland_rotation
asset_loop must drive the Wayland startup-failure retry — Copilot review of #2882 flagged that without it, an early-boot wlr-randr failure (ca
tests/test_viewer.py:1793
Function
test_asset_row_no_error_pill_when_metadata_clean
The vanilla happy-path row (no metadata, not processing) shows the active-toggle, not the error pill.
tests/test_template_views.py:145
Function
test_asset_row_renders_error_pill_when_processing_failed
A row whose normalisation task failed (metadata.error_message populated, is_processing cleared) renders the warn-coloured "Failed" pill in pla
tests/test_template_views.py:109
Function
test_asset_row_shows_humanised_duration
( reset_assets: None, page: Page )
tests/test_app.py:524
Function
test_asset_table_partial
(client: Client, asset: Asset)
tests/test_template_views.py:102
Function
test_asset_table_partial_via_htmx_header
Write endpoints branch on HX-Request — exercise the HTMX path so the partial-rendering branch in _asset_table_response is hit.
tests/test_template_views.py:1679
Function
test_asset_table_renders_selection_controls
( client: Client, bulk_assets: list[Asset] )
tests/test_template_views.py:1629
Function
test_assets_bulk_action_delete
( client: Client, bulk_assets: list[Asset] )
tests/test_template_views.py:1128
← previous
next →
801–900 of 1,832, ranked by callers