meerschaum 2.9.0rc2__py3-none-any.whl → 2.9.1__py3-none-any.whl
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.
- meerschaum/api/dash/callbacks/__init__.py +5 -2
- meerschaum/api/dash/callbacks/custom.py +17 -25
- meerschaum/api/dash/callbacks/dashboard.py +5 -21
- meerschaum/api/dash/callbacks/settings/__init__.py +8 -0
- meerschaum/api/dash/callbacks/settings/password_reset.py +76 -0
- meerschaum/api/dash/components.py +110 -7
- meerschaum/api/dash/pages/__init__.py +1 -0
- meerschaum/api/dash/pages/settings/__init__.py +8 -0
- meerschaum/api/dash/pages/settings/password_reset.py +63 -0
- meerschaum/api/resources/static/css/dash.css +7 -0
- meerschaum/api/routes/_pipes.py +76 -36
- meerschaum/config/_version.py +1 -1
- meerschaum/connectors/__init__.py +1 -0
- meerschaum/connectors/api/_pipes.py +79 -30
- meerschaum/connectors/sql/_pipes.py +38 -5
- meerschaum/connectors/valkey/_ValkeyConnector.py +2 -0
- meerschaum/connectors/valkey/_pipes.py +51 -39
- meerschaum/core/Pipe/__init__.py +1 -0
- meerschaum/core/Pipe/_sync.py +64 -4
- meerschaum/plugins/__init__.py +26 -4
- meerschaum/utils/dataframe.py +58 -3
- meerschaum/utils/dtypes/__init__.py +45 -17
- meerschaum/utils/dtypes/sql.py +182 -3
- meerschaum/utils/misc.py +1 -1
- meerschaum/utils/packages/_packages.py +6 -3
- meerschaum/utils/sql.py +122 -6
- meerschaum/utils/venv/__init__.py +4 -1
- {meerschaum-2.9.0rc2.dist-info → meerschaum-2.9.1.dist-info}/METADATA +14 -9
- {meerschaum-2.9.0rc2.dist-info → meerschaum-2.9.1.dist-info}/RECORD +35 -36
- {meerschaum-2.9.0rc2.dist-info → meerschaum-2.9.1.dist-info}/WHEEL +1 -1
- meerschaum/_internal/gui/__init__.py +0 -43
- meerschaum/_internal/gui/app/__init__.py +0 -50
- meerschaum/_internal/gui/app/_windows.py +0 -74
- meerschaum/_internal/gui/app/actions.py +0 -30
- meerschaum/_internal/gui/app/pipes.py +0 -47
- {meerschaum-2.9.0rc2.dist-info → meerschaum-2.9.1.dist-info}/LICENSE +0 -0
- {meerschaum-2.9.0rc2.dist-info → meerschaum-2.9.1.dist-info}/NOTICE +0 -0
- {meerschaum-2.9.0rc2.dist-info → meerschaum-2.9.1.dist-info}/entry_points.txt +0 -0
- {meerschaum-2.9.0rc2.dist-info → meerschaum-2.9.1.dist-info}/top_level.txt +0 -0
- {meerschaum-2.9.0rc2.dist-info → meerschaum-2.9.1.dist-info}/zip-safe +0 -0
@@ -1,30 +0,0 @@
|
|
1
|
-
#! /usr/bin/env python3
|
2
|
-
# -*- coding: utf-8 -*-
|
3
|
-
# vim:fenc=utf-8
|
4
|
-
|
5
|
-
"""
|
6
|
-
Wrap the Meerschaum actions into Toga commands.
|
7
|
-
"""
|
8
|
-
|
9
|
-
from meerschaum.utils.packages import attempt_import
|
10
|
-
toga = attempt_import('toga', lazy=False, venv=None)
|
11
|
-
|
12
|
-
from meerschaum.config._paths import PACKAGE_ROOT_PATH
|
13
|
-
icon_path = PACKAGE_ROOT_PATH / 'api' / 'dash' / 'assets' / 'logo_500x500.png'
|
14
|
-
|
15
|
-
def add_actions_as_commands(app) -> None:
|
16
|
-
"""Add the standard Meerschaum actions as commands."""
|
17
|
-
from meerschaum.actions import actions
|
18
|
-
commands = []
|
19
|
-
for action, fn in actions.items():
|
20
|
-
try:
|
21
|
-
doc = fn.__doc__
|
22
|
-
except Exception as e:
|
23
|
-
doc = "No help available."
|
24
|
-
commands.append(toga.Command(_action_to_command_wrapper, label=action, tooltip=doc, icon=icon_path))
|
25
|
-
app.commands.add(*commands)
|
26
|
-
# app.main_window.toolbar.add(*commands)
|
27
|
-
|
28
|
-
|
29
|
-
def _action_to_command_wrapper(widget, **kw):
|
30
|
-
print(widget.key)
|
@@ -1,47 +0,0 @@
|
|
1
|
-
#! /usr/bin/env python3
|
2
|
-
# -*- coding: utf-8 -*-
|
3
|
-
# vim:fenc=utf-8
|
4
|
-
|
5
|
-
"""
|
6
|
-
Interact with Meerschaum Pipes via the GUI.
|
7
|
-
"""
|
8
|
-
|
9
|
-
from meerschaum._internal.gui.app import toga
|
10
|
-
|
11
|
-
def build_pipes_tree(**kw) -> toga.Tree:
|
12
|
-
"""Retrieve pipes and return a `toga.Tree` object."""
|
13
|
-
from meerschaum.utils.formatting import ANSI, CHARSET, UNICODE
|
14
|
-
from meerschaum.config import get_config
|
15
|
-
from meerschaum import get_pipes
|
16
|
-
|
17
|
-
icons = {'connector': '', 'metric': '', 'location': '',}
|
18
|
-
if UNICODE:
|
19
|
-
icons['connector'] = get_config('formatting', 'emoji', 'connector')
|
20
|
-
icons['metric'] = get_config('formatting', 'emoji', 'metric')
|
21
|
-
icons['location'] = get_config('formatting', 'emoji', 'location')
|
22
|
-
|
23
|
-
kw.pop('as_list', None)
|
24
|
-
pipes = get_pipes(as_list=False, **kw)
|
25
|
-
tree = toga.Tree(
|
26
|
-
headings = ["Pipes"],
|
27
|
-
style = toga.style.Pack(flex=1, padding=10, direction='column'),
|
28
|
-
on_select = _pipes_tree_on_select_handler,
|
29
|
-
)
|
30
|
-
for ck in pipes:
|
31
|
-
ck_root = tree.data.append(None, pipes=(icons['connector'] + ' ' + ck))
|
32
|
-
for mk in pipes[ck]:
|
33
|
-
mk_root = tree.data.append(ck_root, pipes=(icons['metric'] + ' ' + mk))
|
34
|
-
|
35
|
-
for lk in pipes[ck][mk]:
|
36
|
-
_lk = lk if lk is not None else "None"
|
37
|
-
tree.data.append(mk_root, pipes=(icons['location'] + ' ' + _lk + ' '))
|
38
|
-
return tree
|
39
|
-
|
40
|
-
|
41
|
-
def _pipes_tree_on_select_handler(
|
42
|
-
widget: toga.Widget,
|
43
|
-
node: toga.sources.tree_source.Node,
|
44
|
-
):
|
45
|
-
pass
|
46
|
-
# self.right_box._children = [toga.Label("memes")]
|
47
|
-
# self.label.text = 'memes'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|