ovos-utils

August 14, 2026 · View on GitHub

Shared utility library used by all OVOS components. Provides logging, process lifecycle management, a testing-friendly fake message bus, event scheduling, file utilities, network checks, audio playback, and XDG path helpers.


Module Overview

ModuleDescription
ovos_utils.logLOG — OVOS-wide logging class with optional file rotation
ovos_utils.process_utilsProcessStatus, RuntimeRequirements, PIDLock, MonotonicEvent
ovos_utils.fakebusFakeBus, AsyncFakeBus, FakeMessage — in-process bus for testing without a live WebSocket
ovos_utils.eventsEventContainer, EventSchedulerInterface, handler wrappers
ovos_utils.file_utilsResource resolution, vocab loading, FileWatcher
ovos_utils.network_utilsget_ip(), is_connected_dns(), is_connected_http(), check_captive_portal()
ovos_utils.soundplay_audio(), get_sound_duration()
ovos_utils.thread_utilscreate_daemon(), create_killable_daemon(), wait_for_exit_signal(), threaded_timeout
ovos_utils.xdg_utilsXDG Base Directory helpers (xdg_config_home(), xdg_data_home(), etc.)
ovos_utils.bracket_expansionDialog template {option1|option2} expansion
ovos_utils.decoratorsclassproperty, resting_screen_handler, skill_api_method, etc.
ovos_utils.json_helperJSON load/save helpers
ovos_utils.list_utilsflatten_list() and related helpers
ovos_utils.parseUtterance parsing helpers
ovos_utils.dialogDialog file loading
ovos_utils.lang/Language normalization utilities
ovos_utils.ssmlSSML tag helpers
ovos_utils.timeTimezone-aware now_local(), get_config_tz()
ovos_utils.systemsystem_info() and related helpers
ovos_utils.guiGUI interface utilities
ovos_utils.skillsSkill ID helpers
ovos_utils.ocpOCP (media player) helpers
ovos_utils.signalIPC signal file helpers
ovos_utils.smtp_utilsEmail-sending utilities

Installation

pip install ovos-utils

ovos-utils is a dependency of ovos-bus-client, ovos-config, ovos-workshop, and virtually every other OVOS package. Most projects get it transitively.


Environment Variables

VariableUsed byDescription
OVOS_DEFAULT_LOG_NAMELOGDefault logger name (default: OVOS)
OVOS_DEFAULT_LOG_LEVELLOGDefault log level (default: INFO)
OVOS_CONFIG_BASE_FOLDERLOG, PIDLockXDG base folder name (default: mycroft)

Further Reading

  • LoggingLOG, init_service_logger(), log_deprecation(), deprecated decorator
  • Process UtilitiesProcessStatus, RuntimeRequirements, PIDLock, MonotonicEvent
  • FakeBusFakeBus, AsyncFakeBus, FakeMessage — in-process message bus for testing
  • EventsEventContainer, EventSchedulerInterface, handler wrappers
  • Utilities — file, network, sound, threading, XDG helpers
  • Prerelease Quirks — behavior changes since the last stable release