bear-utils 0.7.12__tar.gz → 0.7.13__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bear_utils-0.7.12 → bear_utils-0.7.13}/PKG-INFO +2 -2
- {bear_utils-0.7.12 → bear_utils-0.7.13}/README.md +1 -1
- {bear_utils-0.7.12 → bear_utils-0.7.13}/pyproject.toml +1 -1
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/__init__.py +3 -1
- bear_utils-0.7.13/src/bear_utils/constants/date_related.py +23 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/extras/_tools.py +36 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/_styles.py +0 -2
- bear_utils-0.7.13/src/bear_utils/time/__init__.py +30 -0
- bear_utils-0.7.12/src/bear_utils/constants/date_related.py +0 -1
- bear_utils-0.7.12/src/bear_utils/time/__init__.py +0 -13
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/ai/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/ai/ai_helpers/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/ai/ai_helpers/_common.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/ai/ai_helpers/_config.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/ai/ai_helpers/_parsers.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/ai/ai_helpers/_types.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/cache/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/cli/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/cli/commands.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/cli/prompt_helpers.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/cli/shell/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/cli/shell/_base_command.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/cli/shell/_base_shell.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/cli/shell/_common.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/config/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/config/config_manager.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/config/dir_manager.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/config/settings_manager.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/constants/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/constants/_exceptions.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/constants/_lazy_typing.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/constants/time_related.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/database/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/database/_db_manager.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/events/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/events/events_class.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/events/events_module.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/extras/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/extras/_async_helpers.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/extras/platform_utils.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/extras/wrappers/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/extras/wrappers/add_methods.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/files/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/files/file_handlers/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/files/file_handlers/_base_file_handler.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/files/file_handlers/file_handler_factory.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/files/file_handlers/json_file_handler.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/files/file_handlers/log_file_handler.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/files/file_handlers/txt_file_handler.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/files/file_handlers/yaml_file_handler.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/files/ignore_parser.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/graphics/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/graphics/bear_gradient.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/graphics/image_helpers.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/gui/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/gui/gui_tools/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/gui/gui_tools/_settings.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/gui/gui_tools/_types.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/gui/gui_tools/qt_app.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/gui/gui_tools/qt_color_picker.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/gui/gui_tools/qt_file_handler.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/gui/gui_tools/qt_input_dialog.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/_common.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/_console_junk.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/loggers/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/loggers/_base_logger.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/loggers/_base_logger.pyi +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/loggers/_buffer_logger.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/loggers/_console_logger.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/loggers/_console_logger.pyi +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/loggers/_file_logger.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/loggers/_level_sin.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/loggers/_logger.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/loggers/_sub_logger.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/loggers/_sub_logger.pyi +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/loggers.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/monitoring/__init__.py +0 -0
- {bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/monitoring/host_monitor.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: bear-utils
|
3
|
-
Version: 0.7.
|
3
|
+
Version: 0.7.13
|
4
4
|
Summary: Various utilities for Bear programmers, including a rich logging utility, a disk cache, and a SQLite database wrapper amongst other things.
|
5
5
|
Author: chaz
|
6
6
|
Author-email: bright.lid5647@fastmail.com
|
@@ -23,7 +23,7 @@ Requires-Dist: singleton-base (>=1.0.5)
|
|
23
23
|
Requires-Dist: sqlalchemy (>=2.0.40,<3.0.0)
|
24
24
|
Description-Content-Type: text/markdown
|
25
25
|
|
26
|
-
# Bear Utils v# Bear Utils v0.7.
|
26
|
+
# Bear Utils v# Bear Utils v0.7.13
|
27
27
|
|
28
28
|
Personal set of tools and utilities for Python projects, focusing on modularity and ease of use. This library includes components for caching, database management, logging, time handling, file operations, CLI prompts, image processing, clipboard interaction, gradient utilities, event systems, and async helpers.
|
29
29
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Bear Utils v# Bear Utils v0.7.
|
1
|
+
# Bear Utils v# Bear Utils v0.7.13
|
2
2
|
|
3
3
|
Personal set of tools and utilities for Python projects, focusing on modularity and ease of use. This library includes components for caching, database management, logging, time handling, file operations, CLI prompts, image processing, clipboard interaction, gradient utilities, event systems, and async helpers.
|
4
4
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "bear-utils"
|
3
|
-
version = "0.7.
|
3
|
+
version = "0.7.13"
|
4
4
|
description = "Various utilities for Bear programmers, including a rich logging utility, a disk cache, and a SQLite database wrapper amongst other things."
|
5
5
|
authors = [{ name = "chaz", email = "bright.lid5647@fastmail.com" }]
|
6
6
|
readme = "README.md"
|
@@ -1,3 +1,5 @@
|
|
1
|
+
from importlib.metadata import version
|
2
|
+
|
1
3
|
from bear_epoch_time import EpochTimestamp, TimeTools
|
2
4
|
|
3
5
|
from .cache import CacheWrapper, cache, cache_factory
|
@@ -10,4 +12,4 @@ from .logging.logger_manager._common import VERBOSE_CONSOLE_FORMAT
|
|
10
12
|
from .logging.logger_manager._styles import VERBOSE
|
11
13
|
from .logging.loggers import BaseLogger, BufferLogger, ConsoleLogger, FileLogger
|
12
14
|
|
13
|
-
__version__ = "
|
15
|
+
__version__: str = version("bear-utils")
|
@@ -0,0 +1,23 @@
|
|
1
|
+
from bear_epoch_time.constants.date_related import (
|
2
|
+
DATE_FORMAT,
|
3
|
+
DATE_TIME_FORMAT,
|
4
|
+
DT_FORMAT_WITH_SECONDS,
|
5
|
+
DT_FORMAT_WITH_TZ,
|
6
|
+
DT_FORMAT_WITH_TZ_AND_SECONDS,
|
7
|
+
ET_TIME_ZONE,
|
8
|
+
PT_TIME_ZONE,
|
9
|
+
TIME_FORMAT_WITH_SECONDS,
|
10
|
+
UTC_TIME_ZONE,
|
11
|
+
)
|
12
|
+
|
13
|
+
__all__ = [
|
14
|
+
"DATE_FORMAT",
|
15
|
+
"DATE_TIME_FORMAT",
|
16
|
+
"DT_FORMAT_WITH_SECONDS",
|
17
|
+
"DT_FORMAT_WITH_TZ",
|
18
|
+
"DT_FORMAT_WITH_TZ_AND_SECONDS",
|
19
|
+
"ET_TIME_ZONE",
|
20
|
+
"PT_TIME_ZONE",
|
21
|
+
"TIME_FORMAT_WITH_SECONDS",
|
22
|
+
"UTC_TIME_ZONE",
|
23
|
+
]
|
@@ -129,6 +129,20 @@ def copy_to_clipboard(output: str) -> int:
|
|
129
129
|
return loop.run_until_complete(clipboard_manager.copy(output))
|
130
130
|
|
131
131
|
|
132
|
+
async def copy_to_clipboard_async(output: str) -> int:
|
133
|
+
"""
|
134
|
+
Asynchronously copy the output to the clipboard.
|
135
|
+
|
136
|
+
Args:
|
137
|
+
output (str): The output to copy to the clipboard.
|
138
|
+
|
139
|
+
Returns:
|
140
|
+
int: The return code of the command.
|
141
|
+
"""
|
142
|
+
clipboard_manager = ClipboardManager()
|
143
|
+
return await clipboard_manager.copy(output)
|
144
|
+
|
145
|
+
|
132
146
|
def paste_from_clipboard() -> str:
|
133
147
|
"""
|
134
148
|
Paste the output from the clipboard.
|
@@ -141,6 +155,17 @@ def paste_from_clipboard() -> str:
|
|
141
155
|
return loop.run_until_complete(clipboard_manager.paste())
|
142
156
|
|
143
157
|
|
158
|
+
async def paste_from_clipboard_async() -> str:
|
159
|
+
"""
|
160
|
+
Asynchronously paste the output from the clipboard.
|
161
|
+
|
162
|
+
Returns:
|
163
|
+
str: The content of the clipboard.
|
164
|
+
"""
|
165
|
+
clipboard_manager = ClipboardManager()
|
166
|
+
return await clipboard_manager.paste()
|
167
|
+
|
168
|
+
|
144
169
|
def clear_clipboard() -> int:
|
145
170
|
"""
|
146
171
|
Clear the clipboard.
|
@@ -153,6 +178,17 @@ def clear_clipboard() -> int:
|
|
153
178
|
return loop.run_until_complete(clipboard_manager.clear())
|
154
179
|
|
155
180
|
|
181
|
+
async def clear_clipboard_async() -> int:
|
182
|
+
"""
|
183
|
+
Asynchronously clear the clipboard.
|
184
|
+
|
185
|
+
Returns:
|
186
|
+
int: The return code of the command.
|
187
|
+
"""
|
188
|
+
clipboard_manager = ClipboardManager()
|
189
|
+
return await clipboard_manager.clear()
|
190
|
+
|
191
|
+
|
156
192
|
def fmt_header(
|
157
193
|
title: str,
|
158
194
|
sep: str = "#",
|
@@ -0,0 +1,30 @@
|
|
1
|
+
from bear_epoch_time import EpochTimestamp, TimerData, TimeTools, add_ord_suffix, create_timer, timer
|
2
|
+
from bear_epoch_time.constants.date_related import (
|
3
|
+
DATE_FORMAT,
|
4
|
+
DATE_TIME_FORMAT,
|
5
|
+
DT_FORMAT_WITH_SECONDS,
|
6
|
+
DT_FORMAT_WITH_TZ,
|
7
|
+
DT_FORMAT_WITH_TZ_AND_SECONDS,
|
8
|
+
ET_TIME_ZONE,
|
9
|
+
PT_TIME_ZONE,
|
10
|
+
TIME_FORMAT_WITH_SECONDS,
|
11
|
+
UTC_TIME_ZONE,
|
12
|
+
)
|
13
|
+
|
14
|
+
__all__ = [
|
15
|
+
"EpochTimestamp",
|
16
|
+
"TimerData",
|
17
|
+
"create_timer",
|
18
|
+
"timer",
|
19
|
+
"TimeTools",
|
20
|
+
"add_ord_suffix",
|
21
|
+
"DATE_FORMAT",
|
22
|
+
"DATE_TIME_FORMAT",
|
23
|
+
"DT_FORMAT_WITH_SECONDS",
|
24
|
+
"DT_FORMAT_WITH_TZ",
|
25
|
+
"DT_FORMAT_WITH_TZ_AND_SECONDS",
|
26
|
+
"ET_TIME_ZONE",
|
27
|
+
"PT_TIME_ZONE",
|
28
|
+
"TIME_FORMAT_WITH_SECONDS",
|
29
|
+
"UTC_TIME_ZONE",
|
30
|
+
]
|
@@ -1 +0,0 @@
|
|
1
|
-
from bear_epoch_time.constants.date_related import DATE_FORMAT, DATE_TIME_FORMAT
|
@@ -1,13 +0,0 @@
|
|
1
|
-
from bear_epoch_time import EpochTimestamp, TimerData, TimeTools, add_ord_suffix, create_timer, timer
|
2
|
-
from bear_epoch_time.constants.date_related import DATE_FORMAT, DATE_TIME_FORMAT
|
3
|
-
|
4
|
-
__all__ = [
|
5
|
-
"EpochTimestamp",
|
6
|
-
"TimerData",
|
7
|
-
"create_timer",
|
8
|
-
"timer",
|
9
|
-
"TimeTools",
|
10
|
-
"add_ord_suffix",
|
11
|
-
"DATE_FORMAT",
|
12
|
-
"DATE_TIME_FORMAT",
|
13
|
-
]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/files/file_handlers/_base_file_handler.py
RENAMED
File without changes
|
{bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/files/file_handlers/file_handler_factory.py
RENAMED
File without changes
|
{bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/files/file_handlers/json_file_handler.py
RENAMED
File without changes
|
{bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/files/file_handlers/log_file_handler.py
RENAMED
File without changes
|
{bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/files/file_handlers/txt_file_handler.py
RENAMED
File without changes
|
{bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/files/file_handlers/yaml_file_handler.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/_console_junk.py
RENAMED
File without changes
|
{bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/loggers/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/loggers/_level_sin.py
RENAMED
File without changes
|
{bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/loggers/_logger.py
RENAMED
File without changes
|
{bear_utils-0.7.12 → bear_utils-0.7.13}/src/bear_utils/logging/logger_manager/loggers/_sub_logger.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|