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
Function
assets_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
Function
assets_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
Function
assets_control
Previous / Next playback. Dispatches the same Redis pub/sub command the API mixin sends.
src/anthias_server/app/views.py:1166
Function
assets_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
Function
assets_delete
(request: HttpRequest, asset_id: str)
src/anthias_server/app/views.py:717
Function
assets_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
Function
assets_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
Function
assets_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
Function
assets_root
()
tests/test_views_files.py:124
Function
assets_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
Function
assets_toggle
(request: HttpRequest, asset_id: str)
src/anthias_server/app/views.py:699
Function
assets_update
(request: HttpRequest, asset_id: str)
src/anthias_server/app/views.py:575
Function
assets_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
Function
authed_operator
()
tests/test_auth.py:718
Method
authenticate
(self, request)
src/anthias_server/lib/auth.py:208
Method
authenticate_credentials
( # type: ignore[no-untyped-def] self, userid, password, request=None )
src/anthias_server/lib/auth.py:233
Function
authorized
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
Function
backup_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
Function
bare_metal_no_pending
Each test starts with a clean Redis fake (no debounce key set).
tests/test_splash_page.py:99
Function
bindFlatpickr
()
src/anthias_server/app/static/src/home.ts:153
Function
boom
(*_a: Any, **_k: Any)
tests/test_utils.py:331
Function
boom
(_path: str)
tests/test_template_views.py:2311
Function
boom
(staging: str, final_uri: str)
tests/test_processing.py:442
Function
browser_context_args
( browser_context_args: dict[str, Any], )
tests/conftest.py:349
Function
browser_type_launch_args
( browser_type_launch_args: dict[str, Any], )
tests/conftest.py:366
Function
bulkSucceeded
(event: Event)
src/anthias_server/app/static/src/home.ts:723
Function
bulk_assets
Three assets — two webpages and one video — for bulk tests.
tests/test_template_views.py:1042
Function
cec_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
Function
cec_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
Function
cleanup
()
src/anthias_server/celery_tasks.py:359
Function
cleanup_asset_dir
()
src/anthias_server/api/tests/test_v1_endpoints.py:28
Function
clearSelection
()
src/anthias_server/app/static/src/home.ts:314
Function
client
()
tests/test_login_view.py:18
Function
client
()
tests/test_template_views.py:28
Function
closeBulkEdit
()
src/anthias_server/app/static/src/home.ts:320
Function
closeModal
()
src/anthias_server/app/static/src/home.ts:233
Method
closeModal
()
src/anthias_server/app/static/src/home.ts:65
Function
closePreview
()
src/anthias_server/app/static/src/home.ts:257
Method
closePreview
()
src/anthias_server/app/static/src/home.ts:66
Function
counting_handler
(route: Route, request: Request)
tests/test_migrate_to_screenly.py:345
Function
custom_exception_handler
( exc: Exception, context: dict[str, Any] )
src/anthias_server/api/helpers.py:46
Function
decorated
(*args: P.args, **kwargs: P.kwargs)
src/anthias_server/lib/auth.py:396
Function
decorator
(view: ViewFunc)
src/anthias_server/app/views_files.py:71
Function
device_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
Function
device_settings_url
()
src/anthias_server/api/tests/test_v2_endpoints.py:28
Method
disconnect
(self, code: int)
src/anthias_server/app/consumers.py:18
Function
dismiss
(id: number)
src/anthias_server/app/static/src/vendor.ts:61
Function
dropFiles
(event: DragEvent)
src/anthias_server/app/static/src/home.ts:413
Method
dropFiles
(event: DragEvent)
src/anthias_server/app/static/src/home.ts:69
Function
eager_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
Function
eager_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
Function
eager_celery_reconcile
()
tests/test_celery_tasks.py:1544
Function
factory
()
tests/test_views_files.py:29
Method
fake_command
(*args: Any, **kwargs: Any)
tests/test_viewer.py:2115
Function
fake_consume
(pubsub_arg: Any)
tests/test_messaging.py:271
Function
fake_ioctl
(fd: Any, request: int, buf: bytearray)
tests/test_media_player.py:699
Function
fake_open
(path: str, *args: Any, **kwargs: Any)
tests/test_media_player.py:369
Function
fake_open
(path: str, *_a: Any, **_k: Any)
tests/test_utils.py:304
Function
fake_open
(path: str, *open_args: Any, **kwargs: Any)
tests/test_gst_fbdev_player.py:131
Function
fake_redis
(redis_data: dict[str, str])
tests/test_github.py:21
Function
fake_redis
(redis_data: dict[str, str])
tests/test_telemetry.py:29
Method
fake_scandir
(path: str)
tests/test_whitenoise_resilient.py:70
Method
fake_scandir
(path: str)
tests/test_whitenoise_resilient.py:149
Function
fake_set
(key: str, value: Any)
tests/test_host_agent_board_subtype.py:212
Function
fake_set_subtype
(rdb: Any)
tests/test_host_agent_board_subtype.py:206
Function
fake_set_total_mem
(rdb: Any)
tests/test_host_agent_board_subtype.py:209
Function
fake_sleep
(delay: float)
tests/test_messaging.py:284
Method
fake_sleep
(_seconds: float)
tests/test_viewer.py:2068
Function
fake_spawn
(_startup_timeout: float)
tests/test_viewer.py:291
Function
fake_sysfs
(path: str)
tests/test_template_views.py:2227
Function
fake_url_fails
(url: str)
tests/test_celery_tasks.py:407
Method
fake_wait
(_deadline: float)
tests/test_viewer.py:2112
Function
fake_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
Function
fallbackCopyToClipboard
(text: string)
src/anthias_server/app/static/src/home.ts:692
Function
generate_asset_id
()
src/anthias_server/app/models.py:42
Method
get
(self, request: Request)
src/anthias_server/api/views/v2.py:336
Method
get
(self, request: Request)
src/anthias_server/api/views/v2.py:347
Method
get
(self, request: Request, asset_id: str)
src/anthias_server/api/views/v2.py:434
Method
get
(self, request: Request)
src/anthias_server/api/views/v2.py:583
Method
get
(self, request: Request)
src/anthias_server/api/views/v2.py:814
Method
get
(self, request: Request)
src/anthias_server/api/views/v2.py:861
Method
get
(self, request: Request)
src/anthias_server/api/views/v2.py:1011
Method
get
(self, request: Request, format: str | None = None)
src/anthias_server/api/views/v1.py:141
Method
get
(self, request: Request)
src/anthias_server/api/views/v1.py:223
Method
get
(self, request: Request)
src/anthias_server/api/views/v1_2.py:34
Method
get
(self, request: Request, asset_id: str)
src/anthias_server/api/views/v1_2.py:103
Method
get
( self, request: Request, asset_id: str, format: str | None = None, )
src/anthias_server/api/views/mixins.py:300
Method
get
(self, request: Request, command: str)
src/anthias_server/api/views/mixins.py:372
Method
get
(self, request: Request)
src/anthias_server/api/views/v1_1.py:28
Method
get
(self, request: Request, asset_id: str)
src/anthias_server/api/views/v1_1.py:76
Function
get_active_connections
:param bus: pydbus.bus.Bus :param fields: list :return: list
src/anthias_common/utils.py:407
Function
get_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
Function
get_balena_supervisor_version
()
src/anthias_common/utils.py:154
Method
get_configdir
(self)
src/anthias_server/settings.py:162
Function
get_debian_version
()
src/anthias_server/lib/diagnostics.py:290
Function
get_display_power
()
src/anthias_server/celery_tasks.py:310
Function
get_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
Function
get_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
Function
get_git_hash
()
src/anthias_server/lib/diagnostics.py:211
Method
get_instance
(cls)
src/anthias_server/settings.py:184
← previous
next →
601–700 of 1,832, ranked by callers