MCPcopy Index your code

hub / github.com/Screenly/Anthias / functions

Functions1,832 in github.com/Screenly/Anthias

Functionassets_bulk_action
Enable / disable / delete a set of assets in one request. Backs the home-page bulk-action bar. ``action`` is one of enable/disable/delete and
src/anthias_server/app/views.py:758
Functionassets_bulk_update
Apply common schedule fields to a set of assets at once. Mirrors the per-asset ``assets_update`` parsing for dates, duration, time-of-day, an
src/anthias_server/app/views.py:838
Functionassets_control
Previous / Next playback. Dispatches the same Redis pub/sub command the API mixin sends.
src/anthias_server/app/views.py:1166
Functionassets_create
URI-based asset add (the Add modal's URI tab). Mirrors the minimum field-set the React modal sent: uri, derived mimetype, default duration win
src/anthias_server/app/views.py:193
Functionassets_delete
(request: HttpRequest, asset_id: str)
src/anthias_server/app/views.py:717
Functionassets_download
Stream the asset's content back the way React's download button did: redirect to the URL for url-mimetypes, FileResponse for files.
src/anthias_server/app/views.py:1108
Functionassets_order
Mirrors api.helpers.save_active_assets_ordering — same comma-csv body that React's @dnd-kit handler POSTs.
src/anthias_server/app/views.py:729
Functionassets_preview
Serve an uploaded asset inline so the preview modal can embed it in <img>/<video>. URL-typed assets (webpage/streaming) redirect to the source
src/anthias_server/app/views.py:1138
Functionassets_root
()
tests/test_views_files.py:124
Functionassets_table_partial
HTMX endpoint for the table area only — re-rendered every 5s by the home page and after every successful write.
src/anthias_server/app/views.py:183
Functionassets_toggle
(request: HttpRequest, asset_id: str)
src/anthias_server/app/views.py:699
Functionassets_update
(request: HttpRequest, asset_id: str)
src/anthias_server/app/views.py:575
Functionassets_upload
File upload tab. Mirrors api.views.mixins.FileAssetViewMixin.post: move the upload into assetdir, create an Asset row, return the table partia
src/anthias_server/app/views.py:325
Functionauthed_operator
()
tests/test_auth.py:718
Methodauthenticate
(self, request)
src/anthias_server/lib/auth.py:208
Methodauthenticate_credentials
( # type: ignore[no-untyped-def] self, userid, password, request=None )
src/anthias_server/lib/auth.py:233
Functionauthorized
Feature-flagged ``@login_required`` shim. * When ``settings['auth_backend']`` is empty the call passes through — devices left on the defaul
src/anthias_server/lib/auth.py:368
Functionbackup_home
Exercises create_backup() / recover() under a temporary $HOME so a developer running the test on a real workstation never has their ~/anthias
tests/test_backup_helper.py:26
Functionbare_metal_no_pending
Each test starts with a clean Redis fake (no debounce key set).
tests/test_splash_page.py:99
FunctionbindFlatpickr
()
src/anthias_server/app/static/src/home.ts:153
Functionboom
(*_a: Any, **_k: Any)
tests/test_utils.py:331
Functionboom
(_path: str)
tests/test_template_views.py:2311
Functionboom
(staging: str, final_uri: str)
tests/test_processing.py:442
Functionbrowser_context_args
( browser_context_args: dict[str, Any], )
tests/conftest.py:349
Functionbrowser_type_launch_args
( browser_type_launch_args: dict[str, Any], )
tests/conftest.py:366
FunctionbulkSucceeded
(event: Event)
src/anthias_server/app/static/src/home.ts:723
Functionbulk_assets
Three assets — two webpages and one video — for bulk tests.
tests/test_template_views.py:1042
Functioncec_available
Cheap render-time gate for whether to show CEC controls. Probes only for the device nodes libcec consumes — `/dev/cec0` on mainline kernels (
src/anthias_server/lib/diagnostics.py:168
Functioncec_stub_device
Create a stub `/dev/vchiq` so `diagnostics.cec_available()` returns True. /dev is tmpfs+writable in the test container; we create a plain file
tests/test_app.py:1900
Functioncleanup
()
src/anthias_server/celery_tasks.py:359
Functioncleanup_asset_dir
()
src/anthias_server/api/tests/test_v1_endpoints.py:28
FunctionclearSelection
()
src/anthias_server/app/static/src/home.ts:314
Functionclient
()
tests/test_login_view.py:18
Functionclient
()
tests/test_template_views.py:28
FunctioncloseBulkEdit
()
src/anthias_server/app/static/src/home.ts:320
FunctioncloseModal
()
src/anthias_server/app/static/src/home.ts:233
MethodcloseModal
()
src/anthias_server/app/static/src/home.ts:65
FunctionclosePreview
()
src/anthias_server/app/static/src/home.ts:257
MethodclosePreview
()
src/anthias_server/app/static/src/home.ts:66
Functioncounting_handler
(route: Route, request: Request)
tests/test_migrate_to_screenly.py:345
Functioncustom_exception_handler
( exc: Exception, context: dict[str, Any] )
src/anthias_server/api/helpers.py:46
Functiondecorated
(*args: P.args, **kwargs: P.kwargs)
src/anthias_server/lib/auth.py:396
Functiondecorator
(view: ViewFunc)
src/anthias_server/app/views_files.py:71
Functiondevice_settings
Form values + dropdown choices for /settings. Pulls from the live settings object (no API hop). Adds the page-only state the React component
src/anthias_server/app/page_context.py:196
Functiondevice_settings_url
()
src/anthias_server/api/tests/test_v2_endpoints.py:28
Methoddisconnect
(self, code: int)
src/anthias_server/app/consumers.py:18
Functiondismiss
(id: number)
src/anthias_server/app/static/src/vendor.ts:61
FunctiondropFiles
(event: DragEvent)
src/anthias_server/app/static/src/home.ts:413
MethoddropFiles
(event: DragEvent)
src/anthias_server/app/static/src/home.ts:69
Functioneager_celery
Periodic sweep flips Asset.is_reachable based on url_fails. The probe itself is exercised by tests/test_utils.py — here we cover the disp
tests/test_celery_tasks.py:291
Functioneager_celery_recheck
On-demand single-asset probe. Cooldown- and concurrency-safe via an atomic Redis SETNX lock per asset (TTL = RECHECK_COOLDOWN_S).
tests/test_celery_tasks.py:487
Functioneager_celery_reconcile
()
tests/test_celery_tasks.py:1544
Functionfactory
()
tests/test_views_files.py:29
Methodfake_command
(*args: Any, **kwargs: Any)
tests/test_viewer.py:2115
Functionfake_consume
(pubsub_arg: Any)
tests/test_messaging.py:271
Functionfake_ioctl
(fd: Any, request: int, buf: bytearray)
tests/test_media_player.py:699
Functionfake_open
(path: str, *args: Any, **kwargs: Any)
tests/test_media_player.py:369
Functionfake_open
(path: str, *_a: Any, **_k: Any)
tests/test_utils.py:304
Functionfake_open
(path: str, *open_args: Any, **kwargs: Any)
tests/test_gst_fbdev_player.py:131
Functionfake_redis
(redis_data: dict[str, str])
tests/test_github.py:21
Functionfake_redis
(redis_data: dict[str, str])
tests/test_telemetry.py:29
Methodfake_scandir
(path: str)
tests/test_whitenoise_resilient.py:70
Methodfake_scandir
(path: str)
tests/test_whitenoise_resilient.py:149
Functionfake_set
(key: str, value: Any)
tests/test_host_agent_board_subtype.py:212
Functionfake_set_subtype
(rdb: Any)
tests/test_host_agent_board_subtype.py:206
Functionfake_set_total_mem
(rdb: Any)
tests/test_host_agent_board_subtype.py:209
Functionfake_sleep
(delay: float)
tests/test_messaging.py:284
Methodfake_sleep
(_seconds: float)
tests/test_viewer.py:2068
Functionfake_spawn
(_startup_timeout: float)
tests/test_viewer.py:291
Functionfake_sysfs
(path: str)
tests/test_template_views.py:2227
Functionfake_url_fails
(url: str)
tests/test_celery_tasks.py:407
Methodfake_wait
(_deadline: float)
tests/test_viewer.py:2112
Functionfake_youtube_dl
Patch ``yt_dlp.YoutubeDL`` with a context-manager-shaped mock. The task does ``with YoutubeDL(opts) as ydl: ydl.extract_info(...)``, so the f
tests/test_celery_tasks.py:705
FunctionfallbackCopyToClipboard
(text: string)
src/anthias_server/app/static/src/home.ts:692
Functiongenerate_asset_id
()
src/anthias_server/app/models.py:42
Methodget
(self, request: Request)
src/anthias_server/api/views/v2.py:336
Methodget
(self, request: Request)
src/anthias_server/api/views/v2.py:347
Methodget
(self, request: Request, asset_id: str)
src/anthias_server/api/views/v2.py:434
Methodget
(self, request: Request)
src/anthias_server/api/views/v2.py:583
Methodget
(self, request: Request)
src/anthias_server/api/views/v2.py:814
Methodget
(self, request: Request)
src/anthias_server/api/views/v2.py:861
Methodget
(self, request: Request)
src/anthias_server/api/views/v2.py:1011
Methodget
(self, request: Request, format: str | None = None)
src/anthias_server/api/views/v1.py:141
Methodget
(self, request: Request)
src/anthias_server/api/views/v1.py:223
Methodget
(self, request: Request)
src/anthias_server/api/views/v1_2.py:34
Methodget
(self, request: Request, asset_id: str)
src/anthias_server/api/views/v1_2.py:103
Methodget
( self, request: Request, asset_id: str, format: str | None = None, )
src/anthias_server/api/views/mixins.py:300
Methodget
(self, request: Request, command: str)
src/anthias_server/api/views/mixins.py:372
Methodget
(self, request: Request)
src/anthias_server/api/views/v1_1.py:28
Methodget
(self, request: Request, asset_id: str)
src/anthias_server/api/views/v1_1.py:76
Functionget_active_connections
:param bus: pydbus.bus.Bus :param fields: list :return: list
src/anthias_common/utils.py:407
Functionget_anthias_version
The combined label, used by the v2 info API so external clients get a single human-readable string. Format: - on master/main: ``v2026
src/anthias_server/lib/diagnostics.py:250
Functionget_balena_supervisor_version
()
src/anthias_common/utils.py:154
Methodget_configdir
(self)
src/anthias_server/settings.py:162
Functionget_debian_version
()
src/anthias_server/lib/diagnostics.py:290
Functionget_display_power
()
src/anthias_server/celery_tasks.py:310
Functionget_display_power
Queries the TV using CEC. The CEC stack can block inside libcec (no HDMI link, TV asleep, adapter unresponsive) in a C call that ignores
src/anthias_server/lib/diagnostics.py:80
Functionget_friendly_device_model
Operator-facing label for the host the player is running on. Pi: whatever the firmware Model line reads ('Raspberry Pi 5 Model B Rev 1.
src/anthias_common/device_helper.py:66
Functionget_git_hash
()
src/anthias_server/lib/diagnostics.py:211
Methodget_instance
(cls)
src/anthias_server/settings.py:184
← previousnext →601–700 of 1,832, ranked by callers