mirror of
https://github.com/infinition/Bjorn.git
synced 2026-03-19 02:00:24 +00:00
feat: Implement package management utilities with JSON endpoints for listing and uninstalling packages feat: Create plugin management utilities with endpoints for listing, configuring, and installing plugins feat: Develop schedule and trigger management utilities with CRUD operations for schedules and triggers
9 lines
370 B
Python
9 lines
370 B
Python
"""init_shared.py - Global singleton for shared state; import shared_data from here."""
|
|
|
|
from shared import SharedData
|
|
|
|
# Module-level initialization is thread-safe in CPython: the import lock
|
|
# guarantees that this module body executes at most once, even when multiple
|
|
# threads import it concurrently (see importlib._bootstrap._ModuleLock).
|
|
shared_data = SharedData()
|