mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-07-15 17:31:46 +00:00
hatch fmt
This commit is contained in:
parent
2e3f4267cd
commit
dc128720c7
@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2025-present onyx-and-iris <code@onyxandiris.online>
|
# SPDX-FileCopyrightText: 2025-present onyx-and-iris <code@onyxandiris.online>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
__version__ = "0.20.0"
|
__version__ = '0.20.0'
|
||||||
|
@ -4,4 +4,4 @@
|
|||||||
|
|
||||||
from .app import app
|
from .app import app
|
||||||
|
|
||||||
__all__ = ["app"]
|
__all__ = ['app']
|
||||||
|
@ -16,6 +16,7 @@ class Settings(UserDict):
|
|||||||
The settings are expected to be in uppercase and should start with 'OBS_'.
|
The settings are expected to be in uppercase and should start with 'OBS_'.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
-------
|
||||||
settings = Settings()
|
settings = Settings()
|
||||||
host = settings['OBS_HOST']
|
host = settings['OBS_HOST']
|
||||||
settings['OBS_PORT'] = 4455
|
settings['OBS_PORT'] = 4455
|
||||||
@ -64,12 +65,15 @@ def get(key: str) -> SettingsValue:
|
|||||||
"""Get a setting value by key.
|
"""Get a setting value by key.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
----
|
||||||
key (str): The key of the setting to retrieve.
|
key (str): The key of the setting to retrieve.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
-------
|
||||||
The value of the setting.
|
The value of the setting.
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
|
------
|
||||||
KeyError: If the key does not exist in the settings.
|
KeyError: If the key does not exist in the settings.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user