MCPcopy Index your code

hub / github.com/Screenly/Anthias / functions

Functions1,832 in github.com/Screenly/Anthias

↓ 3 callersFunctionstopAutoplay
()
website/assets/js/slider.ts:194
↓ 3 callersFunctionstream_backup
Yield a backup tar.gz as it is being built. The download path used to write the whole archive to disk before sending the first byte. tar+gzip
src/anthias_server/lib/backup_helper.py:82
↓ 3 callersFunctionteardown
(playbin: Any)
src/anthias_viewer/gst_fbdev_player.py:307
↓ 3 callersFunctionverify_password
Verify a password against a Django-format stored hash.
src/anthias_server/lib/auth.py:125
↓ 2 callersMethod__init__
(self)
src/anthias_viewer/media_player.py:263
↓ 2 callersFunction_alpine_state
Read ``window.Alpine.$data(homeRoot)`` and return ``expression`` as a JSON-decoded Python value. Returns ``None`` when the home-app x-data roo
tests/test_app.py:103
↓ 2 callersFunction_apply_wlr_power
Turn every wlroots output on or off via ``wlr-randr``. This is the Wayland half of display blanking: the compositor owns the connector, so ``
src/anthias_viewer/__init__.py:382
↓ 2 callersFunction_assert_mock_calls
Assert that all mocks were called exactly once.
src/anthias_server/api/tests/test_info_endpoints.py:28
↓ 2 callersFunction_assert_response_data
Assert that the response data matches the expected data.
src/anthias_server/api/tests/test_info_endpoints.py:34
↓ 2 callersFunction_asset_is_local_file
(asset: dict[str, Any])
src/anthias_viewer/__init__.py:1319
↓ 2 callersFunction_bulk_ids
Pull the comma-separated asset_id list the bulk-action bar POSTs. Same wire shape as ``assets_order`` ('ids' = "a,b,c"). Each segment is stri
src/anthias_server/app/views.py:740
↓ 2 callersFunction_call_static
( factory: RequestFactory, filename: str, remote_addr: str, **extra: Any, )
tests/test_views_files.py:224
↓ 2 callersFunction_call_webview
Run ``send`` through the injected respawn-on-death wrapper when available, else call it directly. A webview-gone error is handled (respawn + r
src/anthias_viewer/media_player.py:61
↓ 2 callersFunction_check_asset_reachability
Return True if the asset's URI is reachable. Local files: existence check. Remote URIs: defer to ``url_fails``, which knows about both HTTP(S
src/anthias_server/celery_tasks.py:1154
↓ 2 callersFunction_coerce
(value: Any)
src/anthias_server/app/templatetags/asset_filters.py:164
↓ 2 callersFunction_delete_asset
(client: APIClient, asset_id: str, version: str)
src/anthias_server/api/tests/test_assets.py:61
↓ 2 callersFunction_exceeds_low_ram_pixel_cap
``True`` when this board is low-RAM and the asset exceeds 1080p. Returns ``False`` when the host's MemTotal couldn't be measured (host_agent
src/anthias_server/processing.py:910
↓ 2 callersFunction_extract_group_id
Pull the first asset-group ``id`` out of a Screenly response. Handles both shapes Screenly returns for asset-group endpoints: a list of rows
src/anthias_server/lib/screenly_migration.py:109
↓ 2 callersFunction_extract_screenly_error
Pull a one-line error string out of a non-OK Screenly response. Screenly's error bodies are JSON with either ``error`` or ``detail``, but a m
src/anthias_server/lib/screenly_migration.py:340
↓ 2 callersFunction_fallback_verdict
Return the last verdict cached for this exact local release, or ``False`` if there isn't one (don't claim "up to date" when we don't actually
src/anthias_server/lib/github.py:139
↓ 2 callersFunction_ffmpeg_reencode_recipe
Return an ``ffmpeg`` command line the operator can run on their workstation to transcode an unsupported upload into a codec (and, optionally,
src/anthias_server/processing.py:962
↓ 2 callersFunction_format_ip_urls
Format a whitespace-separated IP string into clickable URLs. Tolerates malformed input: callers can pass leftover sentinel strings (e.g. 'Unk
src/anthias_server/api/views/v2.py:248
↓ 2 callersFunction_handbrake_steps
Return a decision-free, point-and-click HandBrake walkthrough — for operators who'd rather not paste a command into a terminal. Built around
src/anthias_server/processing.py:1042
↓ 2 callersFunction_is_webview_gone_error
(exc: Exception)
src/anthias_viewer/__init__.py:880
↓ 2 callersFunction_label
(value: datetime)
src/anthias_server/app/templatetags/asset_filters.py:245
↓ 2 callersFunction_looks_virtual
(value: str)
src/anthias_common/device_helper.py:112
↓ 2 callersFunction_make_asset
(asset_id: str, uri: str)
tests/test_celery_tasks.py:70
↓ 2 callersFunction_make_fake_redis
A dict-backed Redis mock matching the surface our code uses. String ops (get/set/delete/expire/exists/flushdb/publish) and list ops (rpu
tests/conftest.py:114
↓ 2 callersFunction_make_operator
Single NOSONAR-suppressed call site for the test User factory so Sonar's S6437 doesn't fire on every test that needs an operator row.
src/anthias_server/api/tests/test_v2_endpoints.py:242
↓ 2 callersFunction_make_user
Same idea as ``_make_operator`` but for a regular (non-staff) user — used only by ``test_operator_username_returns_first_superuser`` to verify
tests/test_auth.py:288
↓ 2 callersFunction_mean_center_luminance
Render the white page in headless Chromium and return the mean luminance (0-255) of the centre of the screenshot. Launches through the suite'
tests/test_webview_dark_mode.py:51
↓ 2 callersMethod_middleware
(self)
tests/test_whitenoise_resilient.py:130
↓ 2 callersFunction_normalise_play_days
Return a sorted, deduped list of weekday ints. Raises ValidationError for items outside [1..7] or for an empty selection. Empty `play_days` i
src/anthias_server/api/serializers/v2.py:30
↓ 2 callersFunction_now_window
Yesterday → tomorrow so every seed renders on the home page. Module-level seed constants below call ``_seed()`` (and therefore ``_now_window(
tests/_seed_data.py:32
↓ 2 callersFunction_persisted_operator
The first persisted operator-account User row, if any. Used by ``apply_auth_settings`` to detect the case where auth is *currently* disabled
src/anthias_server/lib/auth.py:485
↓ 2 callersFunction_phrase_with_kind
( kind: str, delta: timedelta, soon_label: str, verb: str, future: bool, secondary: st
src/anthias_server/app/templatetags/asset_filters.py:304
↓ 2 callersFunction_populate_legacy_layout
(home: str)
tests/test_migrate_legacy_paths.py:43
↓ 2 callersFunction_post_default_duration
(value: int)
tests/test_app.py:1451
↓ 2 callersFunction_prettify_upload_name
Turn 'My_day-2.mp4' into 'My Day 2'. Strips the file extension, normalises common separators (underscores, hyphens, dots within the stem) int
src/anthias_server/app/views.py:117
↓ 2 callersFunction_publish_refresh
Best-effort host_agent refresh, debounced. At a 2s poll cadence, host_agent's set_ip_addresses takes longer than one poll interval (it does a
src/anthias_server/api/views/v2.py:211
↓ 2 callersFunction_read_iface_mac
Read /sys/class/net/<iface>/address; skip placeholder zeros.
src/anthias_common/utils.py:344
↓ 2 callersFunction_read_sysfs
(path: str)
src/anthias_common/device_helper.py:26
↓ 2 callersFunction_relative_phrase
Compact relative duration: 'in 3 days' / '2 days ago' / 'in 5h'.
src/anthias_server/app/templatetags/asset_filters.py:320
↓ 2 callersFunction_require_current_password_correct
Shared guard for any settings change that needs the operator to re-prove their current password (changing the backend, username, or password).
src/anthias_server/lib/auth.py:510
↓ 2 callersFunction_rotated_mpv_settings
Build a settings mock that answers `audio_output` like the default fixture but also surfaces `screen_rotation`. Used by the mpv rotation tests
tests/test_media_player.py:875
↓ 2 callersFunction_serialised_image_bytes
Return a raw-PNG byte buffer — compatible with the URL reachability probe (which only checks for a local file's existence on schemeless paths)
tests/test_processing.py:2166
↓ 2 callersFunction_set_clock_toggle
Flip the 'Use 24-hour clock' switch through the browser and save. Goes through uvicorn (not settings.save() in this process) because the serve
tests/test_app.py:1498
↓ 2 callersFunction_set_date_format
(page: Page, value: str)
tests/test_app.py:1562
↓ 2 callersFunction_set_name
(value: str)
tests/test_app.py:1618
↓ 2 callersFunction_split_origin
Return ``(hostname, port)`` for a URL or bare ``Host`` value. ``default_scheme`` is the scheme to fall back to when ``value`` is a bare ``Hos
src/anthias_server/lib/csrf.py:52
↓ 2 callersFunction_stub_browser_stdout_static
sh.RunningCommand.process.stdout is a @property that returns the latest accumulated buffer on each access. Use PropertyMock so the test e
tests/test_viewer.py:170
↓ 2 callersFunction_trim_cec_detail
Sanitize an arbitrarily-sized libcec / Python error blob into a one-line, length-capped toast / JSON message. libcec (and the in-subprocess P
src/anthias_server/lib/diagnostics.py:151
↓ 2 callersFunction_update_asset
( client: APIClient, asset_id: str, data: dict[str, Any], version: str, )
src/anthias_server/api/tests/test_assets.py:44
↓ 2 callersFunction_url_path_ext
Return the lowercase extension of the URL's path component, with the leading dot. Empty string when the URL has no extension. Splits on ``url
src/anthias_common/remote_video.py:102
↓ 2 callersFunction_url_scheme
(uri: str)
src/anthias_common/remote_video.py:117
↓ 2 callersFunction_validate_password_strength
Run the project's ``AUTH_PASSWORD_VALIDATORS`` against the proposed password and translate any rejection into ``AuthSettingsError`` so the HTM
src/anthias_server/lib/auth.py:527
↓ 2 callersFunction_validate_time_window
Both play_time_from and play_time_to must be set, or neither. The model treats either side being null as "no time-of-day filter", so a partia
src/anthias_server/api/serializers/v2.py:66
↓ 2 callersFunction_verdict_cache_key
(local_release: str)
src/anthias_server/lib/github.py:135
↓ 2 callersFunction_wlr_output_names
List connector names known to the wlroots compositor. By default only *enabled* outputs are returned. Pass ``include_disabled=True`` to list
src/anthias_viewer/__init__.py:249
↓ 2 callersFunctionadd_default_assets
()
src/anthias_server/app/helpers.py:79
↓ 2 callersFunctionasset_recheck_queue_key
Endpoint-side queue debounce key (TTL = QUEUE_DEBOUNCE).
src/anthias_server/celery_tasks.py:197
↓ 2 callersFunctionastream_backup
Async front-end to stream_backup() for the ASGI download view. StreamingHttpResponse only *streams* an asynchronous iterator under ASGI. Hand
src/anthias_server/lib/backup_helper.py:141
↓ 2 callersMethodbindFlatpickr
()
src/anthias_server/app/static/src/home.ts:67
↓ 2 callersMethodconvert
(self, _mode: str)
tests/test_processing.py:373
↓ 2 callersFunctioncreate_backup
(name: str = default_archive_name)
src/anthias_server/lib/backup_helper.py:196
↓ 2 callersFunctioncsrfToken
()
src/anthias_server/app/static/src/home.ts:110
↓ 2 callersFunctiondispatch_remote_video_download
Queue the Celery worker to fetch *source_uri* into the row. Mirrors ``anthias_common.youtube.dispatch_download``. Stamps ``metadata.processin
src/anthias_common/remote_video.py:265
↓ 2 callersFunctionfinalize_asset_update
Post-save housekeeping shared by v1_2/v2 ``AssetView.update``. Reorders the active-asset list around the just-saved row's new activeness (an
src/anthias_server/api/helpers.py:74
↓ 2 callersFunctiongenerate_perfect_paper_password
Generates a password using 64 characters from "Perfect Paper Password" system by Steve Gibson :param pw_length: int :param has_symbo
src/anthias_common/utils.py:637
↓ 2 callersMethodget_anthias_version
(self)
src/anthias_server/api/views/v2.py:884
↓ 2 callersFunctionget_balena_device_info
Fetch device info from the Balena supervisor. The optional timeout is for callers on a hot path (e.g. the splash polling endpoint) that need
src/anthias_common/utils.py:130
↓ 2 callersFunctionget_browser_bus
()
src/anthias_viewer/media_player.py:49
↓ 2 callersFunctionget_device_type
()
src/anthias_common/device_helper.py:130
↓ 2 callersFunctionget_git_branch
()
src/anthias_server/lib/diagnostics.py:203
↓ 2 callersFunctionget_git_short_hash
()
src/anthias_server/lib/diagnostics.py:207
↓ 2 callersFunctionget_latest_tag
()
tools/raspberry_pi_imager/build_pi_imager_json.py:73
↓ 2 callersFunctionget_node_mac_address
Returns the MAC address.
src/anthias_common/utils.py:302
↓ 2 callersFunctionget_unique_name
(name: str)
src/anthias_server/api/serializers/__init__.py:18
↓ 2 callersFunctionget_user_agent
Return the canonical Anthias ``User-Agent`` string. Format: ``Anthias/<release> (+<homepage>)`` — the standard ``Product/Version (+URL)`` con
src/anthias_common/http.py:40
↓ 2 callersMethodhas_window_filter
True if this asset has any day-of-week or time-of-day filter set. A time-of-day filter only applies when both endpoints are set — _ma
src/anthias_server/app/models.py:114
↓ 2 callersFunctionhome_seed_assets
A representative 6-asset schedule for marketing-quality home captures and the ``test_home_renders_with_full_schedule`` layout- regression test
tests/_seed_data.py:123
↓ 2 callersFunctionhoverResume
()
website/assets/js/slider.ts:304
↓ 2 callersMethodinit
()
src/anthias_server/app/static/src/home.ts:60
↓ 2 callersFunctionis_demo_node
Check if the environment variable IS_DEMO_NODE is set to 1 :return: bool
src/anthias_common/utils.py:629
↓ 2 callersFunctionis_docker
()
src/anthias_common/utils.py:663
↓ 2 callersFunctionload_settings
Load settings and set the log level.
src/anthias_viewer/__init__.py:1053
↓ 2 callersFunctionmain
()
tools/raspberry_pi_imager/build_pi_imager_json.py:151
↓ 2 callersFunctionmetaContent
(name: string)
src/anthias_server/app/static/src/home.ts:103
↓ 2 callersFunctionneeds_image_normalisation
``True`` if the upload's extension is in ``NORMALIZE_IMAGE_EXTS``. The set covers HEIC / HEIF / TIFF / BMP / ICO / TGA / JPEG 2000 family / A
src/anthias_server/processing.py:115
↓ 2 callersFunctionnormalize_image_asset
Convert every extension in ``processing.NORMALIZE_IMAGE_EXTS`` (HEIC / HEIF / TIFF / BMP / ICO / TGA / JPEG 2000 family / AVIF) to lossless We
src/anthias_server/celery_tasks.py:1568
↓ 2 callersFunctionnormalize_os
balenaOS 6.1.24+rev4' -> '6.1.24+rev4' (the form os-update wants).
bin/balena_fleet_maintenance.py:115
↓ 2 callersFunctionparse_args
(argv: list[str])
src/anthias_viewer/gst_fbdev_player.py:168
↓ 2 callersFunctionparse_cpu_info
Extracts the various Raspberry Pi related data from the CPU.
src/anthias_common/device_helper.py:1
↓ 2 callersFunctionparse_os_version
Normalize 'balenaOS 6.1.24+rev4' / 'v6.12.3+rev4' to a comparable tuple (major, minor, patch, rev). Unparseable -> all zeros (treated as oldes
bin/balena_fleet_maintenance.py:95
↓ 2 callersFunctionpinned_version
Human-readable version of the release the device is pinned to.
bin/balena_unpin_devices.py:305
↓ 2 callersMethodplay
(self)
src/anthias_viewer/media_player.py:363
↓ 2 callersFunctionrefresh
()
src/anthias_server/app/static/src/home.ts:586
↓ 2 callersFunctionremove_default_assets
()
src/anthias_server/app/helpers.py:111
↓ 2 callersFunctionrender
(ips: string[])
src/anthias_server/app/static/src/splash.ts:82
↓ 2 callersMethodreset
Drop the cached player so the next ``get_instance`` rebuilds it. Both players now re-read ``screen_rotation`` per play() (GstFbdevMed
src/anthias_viewer/media_player.py:665
← previousnext →201–300 of 1,832, ranked by callers