mirror of
https://github.com/infinition/Bjorn.git
synced 2026-03-19 10:10:24 +00:00
feat: Add login page with dynamic RGB effects and password toggle functionality
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
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
#init_shared.py
|
||||
# Description:
|
||||
# This file, init_shared.py, is responsible for initializing and providing access to shared data across different modules in the Bjorn project.
|
||||
#
|
||||
# Key functionalities include:
|
||||
# - Importing the `SharedData` class from the `shared` module.
|
||||
# - Creating an instance of `SharedData` named `shared_data` that holds common configuration, paths, and other resources.
|
||||
# - Ensuring that all modules importing `shared_data` will have access to the same instance, promoting consistency and ease of data management throughout the project.
|
||||
|
||||
"""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()
|
||||
|
||||
Reference in New Issue
Block a user